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.00408d1a
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.00408a59
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00408e0d
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.00408a72
cmp esi, edi
je 0x405707
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00408a72
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4087f7
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.00408720
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 0x408884
cmp byte [ebp + 0x10], 0
jne 0x4088c4
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 0x4088c4
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.0040863c
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 0x4089ba
cmp dword [ebp + 8], 0x200
jge 0x4089c2
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 0x408938
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.0040863c
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebp - 1], 0
je 0x4089a4
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 0x4089c2
inc dword [ebp + 8]
test eax, eax
jne 0x4088e8
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408ba4
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 0x408bdc
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408be0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x408be7
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 0x408c1f
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408c23
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x409696
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 0x4096f8
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 0x40d6ae
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 0x409748
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 0x409792
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 0x40d6e4
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a099
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 0x40a128
push 6
push dword [0x40f014]
lea eax, [ebp - 0x420]
push eax
call fcn.00406f83
push eax
call fcn.00408f53
test eax, eax
jne 0x40a128
push 0x40d2d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408d1a
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408c70
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 0x40a1e7
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 0x40a211
push 0x7d
call fcn.004089e0
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 0x40a261
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42408c], ebx
jne 0x40a258
cmp byte [0x42407c], bl
jne 0x40a258
push ebx
push esi
push 0x111
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a258
call fcn.0040917d
cmp dword [0x4237e0], 2
jne 0x40a253
cmp byte [0x4237f0], bl
pop esi
pop ebx
je 0x40a270
jmp fcn.0040a099
ret

Function at 0x40a29f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x4237f8], bl
je 0x40a31b
cmp byte [0x422730], bl
je 0x40a31b
push esi
push 0x422730
lea esi, [ebp - 0x408]
call fcn.0040a271
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 0x40a31b
push dword [ebp + 8]
call fcn.00408d1a
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 0x40a320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x4237f8], 0
je 0x40a3a2
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040a271
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 0x40a3a2
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 0x40a399
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.00408e0d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40a4fa
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 0x40a52a
xor eax, eax
inc eax
jmp 0x40a553
cmp byte [0x4237cf], 0
je 0x40a538
push 2
pop eax
jmp 0x40a553
push dword [ebp + 0xc]
push 0x4097e7
push dword [0x4237e8]
push str.REPLACEFILEDLG
push dword [0x42373c]
call esi
dec eax
je 0x40a5b4
dec eax
je 0x40a593
dec eax
je 0x40a5ad
dec eax
jne 0x40a586
push dword [ebp + 0xc]
push 0x409ae3
push dword [0x4237e8]
push str.RENAMEDLG
push dword [0x42373c]
call esi
test eax, eax
je 0x40a504
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a5c5
dec eax
je 0x40a59b
dec eax
jne 0x40a5c5
mov byte [0x4237cf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a5c5
mov eax, dword [ebp + 8]
mov dword [0x4237e0], 1
mov byte [eax], 0x43
jmp 0x40a5c5
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 0x40a667
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408d1a
cmp eax, 0x3f6
jae 0x40a87b
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408c70
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a6af
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a6b2
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a6f7
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a6d3
jmp 0x40a6c7
cmp byte [eax + esi], 0x22
je 0x40a6cf
inc eax
cmp byte [eax + esi], bl
jne 0x40a6c1
jmp 0x40a6d3
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a6ea
cmp byte [eax + esi + 1], 0x2f
je 0x40a6ea
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a6ba
jmp 0x40a6f7
add eax, esi
cmp byte [eax], 0x20
jne 0x40a6f3
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a70b
cmp byte [0x423bfa], bl
je 0x40a70b
mov dword [ebp - 0x30], 0x423bfa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407131
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a737
push str..inf
push eax
call fcn.00408f30
test eax, eax
jne 0x40a737
mov dword [ebp - 0x38], 0x40d754
push ebx
push dword [ebp - 0x34]
call fcn.00403525
mov byte [ebp - 1], al
cmp al, bl
je 0x40a75f
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 0x40a79e
cmp byte [ebp - 1], bl
jne 0x40a79e
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408e0d
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408f78
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00403525
test al, al
je 0x40a879
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 0x40a7d0
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 0x40a879
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4237f0], bl
jne 0x40a7e6
cmp byte [ebp + 8], bl
je 0x40a81d
mov eax, dword [0x4237e8]
cmp eax, ebx
je 0x40a807
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a807
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.0040a05a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a83c
push str..exe
push dword [ebp - 8]
call fcn.00408f30
test eax, eax
je 0x40a86a
cmp byte [0x4237f0], bl
je 0x40a850
cmp byte [ebp + 8], bl
jne 0x40a850
push 0x1b58
jmp 0x40a864
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 0x40a879
push 1
push dword [0x4237e8]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40bbf7
Capabilities:
Accept command line arguments
Read file via mapping
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.0040caa8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40bc7f
push esi
call fcn.00409df5
cmp byte [0x4237f9], bl
je 0x40bc73
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40bc6a
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40bc63
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bc7f
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x423338
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call fcn.004069f0
test eax, eax
je 0x40bcb6
push edi
push 0x422b38
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40bcbe
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.0040ccee
push esi
mov ecx, 0x4240a4
call fcn.004089c9
lea ecx, [ebp - 0x40]
call fcn.00404ce2
lea ecx, [ebp - 0x24]
call fcn.00404ce2
push 0x64
call fcn.004095f1
push 0x64
mov dword [ebp - 0x28], eax
call fcn.004095f1
push ebx
push 0x40b47d
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.0040cd66
cmp byte [0x4237f0], bl
je 0x40bd7f
call fcn.0040a099
push 0x80
push ebx
push 0x423748
call fcn.00408c70
cmp dword [0x42408c], ebx
jbe 0x40bda2
push dword [0x424080]
call fcn.00408a72
push dword [0x422b34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x422b30]
cmp eax, ebx
je 0x40bdbc
push eax
call esi
cmp dword [0x424098], ebx
jne 0x40bddb
cmp dword [0x4237e0], ebx
je 0x40bddb
push 0xff
mov ecx, 0x424098
call fcn.004017e1
mov eax, dword [0x424090]
mov dword [0x4237e0], 2
cmp eax, ebx
je 0x40bdf4
push eax
call fcn.0040a05a
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x424098]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40c50b
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 0x40c59e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c565
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408c9d
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c4eb
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c50b
inc esi
cmp esi, 0xc
jl 0x40c5bd
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c5f8
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c604
or eax, 0xffffffff
jmp 0x40c649
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c626
mov edx, dword [0x40f920]
jg 0x40c622
cmp eax, edx
jbe 0x40c626
mov edi, edx
jmp 0x40c628
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c642
dec edi
call fcn.0040c4eb
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c50b
inc esi
test edi, edi
jne 0x40c630
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x446062
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
pop esp
in al, dx
test esi, eax
test al, 0xd4
fist dword [edx - 0x4e8d0df0]
xchg edx, eax
adc dl, dh
jb 0x446020
jl 0x4460c1
invalid

Function at 0x44a410
Capabilities:
Accept command line arguments
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
adc eax, sym.imp.KERNEL32.dll_GetCommandLineW
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov edi, eax
call ebx
test ax, ax
jge 0x44a43a
or dword [esi], 0x2000000
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]

Function at 0x491226
Capabilities:
Encode data using xor

Disassembly:
mov dword [edi - 0x62], ebp
sti
cld
or al, 0x86
xor esi, dword [ecx + 0x5b30026f]
dec esp
xor byte [ebx + 0x3e], bl
dec esp
and dword [esi], edi
imul esi, dword ds:[esi + 0x6b], 0x72
leave
pop es
jl 0x491231
fiadd word [edx]
mov edi, 0xce99f670
mov cl, 0x96
movsb byte es:[edi], byte [esi]
test eax, 0x40435fc2
hlt
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ed0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4407263c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x51ff4a98
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219