joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055bd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x4055e0
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00405556
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x405636
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x405681
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x405696
cmp dword [esi + 0x18], 0x64
jbe 0x405707
mov ecx, esi
call fcn.00404f1c
jmp 0x405707
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4056a7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.00408d20
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.00408a5f
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00408e13
push ebx
mov ecx, esi
call fcn.00404e22
test al, al
jne 0x4056e3
push ebx
mov ecx, esi
call fcn.00404e52
push ebx
mov ecx, esi
call fcn.00405282
push ebx
mov esi, eax
call fcn.00408a78
cmp esi, edi
je 0x405707
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00408a78
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4087fd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00408726
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
sub edi, dword [ebp - 0x24]
sub esi, eax
sub esi, dword [ebp - 0x20]
inc edi
inc esi
cmp byte [ebp - 1], 0
je 0x40888a
cmp byte [ebp + 0x10], 0
jne 0x4088ca
imul eax, dword [ebp - 8]
push 0x206
cdq
push 0x64
pop ecx
idiv ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [ebp + 0x10], 0
jne 0x4088ca
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.00408642
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push dword [ebp + 8]
sub esi, eax
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp + 8], 0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], eax
jmp 0x4089c0
cmp dword [ebp + 8], 0x200
jge 0x4089c8
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x444], 0
je 0x40893e
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.00408642
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebp - 1], 0
je 0x4089aa
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x204
inc eax
imul eax, dword [ebp - 8]
cdq
push 0x64
pop ecx
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc eax
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
sub eax, esi
imul eax, dword [ebp - 8]
cdq
idiv ecx
push eax
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x34]
sar ecx, 1
sub eax, ecx
sub eax, dword [ebp - 0x24]
push 0x64
imul eax, dword [ebp - 0xc]
pop ecx
cdq
idiv ecx
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
je 0x4089c8
inc dword [ebp + 8]
test eax, eax
jne 0x4088ee
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408baa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408be2
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408be6
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x408bed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408c25
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408c29
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x40969c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42407c], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4096fe
mov ecx, dword [0x42272c]
call fcn.00404d05
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40d69e
push 0
push 0xc2
push edi
call esi
mov byte [0x42407c], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x3c], eax
je 0x40974e
mov ecx, dword [ebp - 0x38]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0xa0
mov dword [ebp - 0x3c], 0x40000001
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x409798
mov eax, dword [ebp - 0x38]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x40d6d4
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a09f
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 0x420]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [0x42407d], 0
jne 0x40a12e
push 6
push dword [0x40f014]
lea eax, [ebp - 0x420]
push eax
call fcn.00406f90
push eax
call fcn.00408f59
test eax, eax
jne 0x40a12e
push 0x40d2c8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408d20
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408c76
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret

Function at 0x40a1ed
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
mov dword [0x4237d8], esi
cmp dword [0x4237e8], ebx
je 0x40a217
push 0x7d
call fcn.004089e6
push eax
push esi
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x4237e8]
mov dword [0x4237d4], ebx
mov dword [0x4237d0], esi
cmp eax, ebx
je 0x40a267
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42408c], ebx
jne 0x40a25e
cmp byte [0x42407c], bl
jne 0x40a25e
push ebx
push esi
push 0x111
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a25e
call fcn.00409183
cmp dword [0x4237e0], 2
jne 0x40a259
cmp byte [0x4237f0], bl
pop esi
pop ebx
je 0x40a276
jmp fcn.0040a09f
ret

Function at 0x40a2a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x4237f8], bl
je 0x40a321
cmp byte [0x422730], bl
je 0x40a321
push esi
push 0x422730
lea esi, [ebp - 0x408]
call fcn.0040a277
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x40a321
push dword [ebp + 8]
call fcn.00408d20
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40a326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x4237f8], 0
je 0x40a3a8
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040a277
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40a3a8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a39f
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.00408e13
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40a500
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x4237ce], 0
mov eax, dword [ebp + 0x10]
mov dword [0x423740], eax
mov eax, dword [ebp + 0x14]
mov dword [0x423744], eax
mov eax, dword [ebp + 0x18]
mov dword [0x423738], eax
je 0x40a530
xor eax, eax
inc eax
jmp 0x40a559
cmp byte [0x4237cf], 0
je 0x40a53e
push 2
pop eax
jmp 0x40a559
push dword [ebp + 0xc]
push 0x4097ed
push dword [0x4237e8]
push str.REPLACEFILEDLG
push dword [0x42373c]
call esi
dec eax
je 0x40a5ba
dec eax
je 0x40a599
dec eax
je 0x40a5b3
dec eax
jne 0x40a58c
push dword [ebp + 0xc]
push 0x409ae9
push dword [0x4237e8]
push str.RENAMEDLG
push dword [0x42373c]
call esi
test eax, eax
je 0x40a50a
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a5cb
dec eax
je 0x40a5a1
dec eax
jne 0x40a5cb
mov byte [0x4237cf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a5cb
mov eax, dword [ebp + 8]
mov dword [0x4237e0], 1
mov byte [eax], 0x43
jmp 0x40a5cb
mov byte [0x4237ce], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40a66d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408d20
cmp eax, 0x3f6
jae 0x40a881
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408c76
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a6b5
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a6b8
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a6fd
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a6d9
jmp 0x40a6cd
cmp byte [eax + esi], 0x22
je 0x40a6d5
inc eax
cmp byte [eax + esi], bl
jne 0x40a6c7
jmp 0x40a6d9
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a6f0
cmp byte [eax + esi + 1], 0x2f
je 0x40a6f0
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a6c0
jmp 0x40a6fd
add eax, esi
cmp byte [eax], 0x20
jne 0x40a6f9
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a711
cmp byte [0x423bfa], bl
je 0x40a711
mov dword [ebp - 0x30], 0x423bfa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.0040713e
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a73d
push str..inf
push eax
call fcn.00408f36
test eax, eax
jne 0x40a73d
mov dword [ebp - 0x38], 0x40d744
push ebx
push dword [ebp - 0x34]
call fcn.00403525
mov byte [ebp - 1], al
cmp al, bl
je 0x40a765
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00403611
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40a7a4
cmp byte [ebp - 1], bl
jne 0x40a7a4
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408e13
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408f7e
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00403525
test al, al
je 0x40a87f
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40a7d6
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40a87f
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4237f0], bl
jne 0x40a7ec
cmp byte [ebp + 8], bl
je 0x40a823
mov eax, dword [0x4237e8]
cmp eax, ebx
je 0x40a80d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a80d
push ebx
push dword [0x4237e8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040a060
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a842
push str..exe
push dword [ebp - 8]
call fcn.00408f36
test eax, eax
je 0x40a870
cmp byte [0x4237f0], bl
je 0x40a856
cmp byte [ebp + 8], bl
jne 0x40a856
push 0x1b58
jmp 0x40a86a
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
je 0x40a87f
push 1
push dword [0x4237e8]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40bb93
Capabilities:
Accept command line arguments
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x428bb0
call fcn.0040c9ea
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40bbcf
push esi
call fcn.00409dfb
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x423338
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.004069f0
test eax, eax
je 0x40bc05
push 0x400
push 0x422b38
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40bc0d
xor eax, eax
mov word [0x422b38], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x4237c8], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x4237c8]
mov dword [0x422b34], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x422b30], eax
call fcn.0040cc30
push esi
mov ecx, 0x4240a4
call fcn.004089cf
lea ecx, [ebp - 0x40]
call fcn.00404ce2
lea ecx, [ebp - 0x24]
call fcn.00404ce2
push 0x64
call fcn.004095f7
push 0x64
mov dword [ebp - 0x28], eax
call fcn.004095f7
push ebx
push 0x40b47b
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x42272c], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x422728], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x4237e8], ebx
mov dword [0x422728], ebx
mov dword [0x42272c], ebx
call fcn.00404cf8
lea ecx, [ebp - 0x40]
call fcn.00404cf8
lea ecx, [ebp - 8]
call fcn.0040cca8
cmp byte [0x4237f0], bl
je 0x40bcce
call fcn.0040a09f
push 0x80
push ebx
push 0x423748
call fcn.00408c76
cmp dword [0x42408c], ebx
jbe 0x40bcf1
push dword [0x424080]
call fcn.00408a78
push dword [0x422b34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x422b30]
cmp eax, ebx
je 0x40bd0b
push eax
call esi
cmp dword [0x424098], ebx
jne 0x40bd2a
cmp dword [0x4237e0], ebx
je 0x40bd2a
push 0xff
mov ecx, 0x424098
call fcn.004017e1
mov eax, dword [0x424090]
mov dword [0x4237e0], 2
cmp eax, ebx
je 0x40bd43
push eax
call fcn.0040a060
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x424098]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c44d
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x421688]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x40f0d0]
mov ecx, dword [0x421690]
mov dword [0x421688], eax
movzx eax, al
add eax, dword [0x42168c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x42168c], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x40f0d0]
mov eax, dword [esp + 4]
mov dword [0x421690], ecx
ret 4
Function at 0x40c4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c4a7
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408ca3
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c42d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c44d
inc esi
cmp esi, 0xc
jl 0x40c4ff
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c53a
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c546
or eax, 0xffffffff
jmp 0x40c58b
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c568
mov edx, dword [0x40f920]
jg 0x40c564
cmp eax, edx
jbe 0x40c568
mov edi, edx
jmp 0x40c56a
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c584
dec edi
call fcn.0040c42d
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c44d
inc esi
test edi, edi
jne 0x40c572
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x401595
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015c7
test dl, 7
je 0x4015c7
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42da20]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015a7
cmp esi, 8
jb 0x401657
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42da20]
xor ecx, dword [eax*4 + 0x42de20]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e220]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42ea20]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x42ee20]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f220]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x42e620]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42f620]
mov ebx, ecx
sub edi, 1
jne 0x4015d6
pop edi
test esi, esi
je 0x401673
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42da20]
inc edx
sub esi, 1
jne 0x40165b
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c17
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401c30
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401ca3
mov ecx, esi
call fcn.00401d04
test al, al
je 0x401c6b
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401c6b
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c17
jmp 0x401ca6
cmp dword [esi + 0xc], 1
jne 0x401c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401c80
xor eax, eax
jmp 0x401ca6
cmp dword [esi + 0xc], 0
jne 0x401c9e
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401c9e
push ebx
jmp 0x401c5f
or eax, 0xffffffff
jmp 0x401ca6
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8