joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5758d0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5aa5b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x71f36c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00594bca
mov edx, dword [0x71f36c]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x57592a
mov dword [esp + 0x1c], ebx
jmp 0x575931
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.00596e9e
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.005927ce
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x575982
mov dword [esp + 0x14], ebx
jmp 0x575989
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x5759a4
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x57599e
cmp eax, 2
jne 0x5759a4
mov dword [esp + 0x18], edi
jmp 0x5759a8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x5759b6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00594200
mov edi, eax
cmp edi, ebx
jne 0x5759c6
xor eax, eax
jmp 0x5759c9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5759f1
mov ecx, esi
call fcn.00596e9e
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x575a0d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x575a2c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x575a2c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.00592695
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.00592695
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x594bca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x594c02
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00592b3c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00592b14
jmp 0x594c0e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x596547
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x596589
call fcn.0059cec5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x596589
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x596580
xor eax, eax
jmp 0x596591
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00596597
pop edi
pop esi
pop ebx
ret 4

Function at 0x59d3f5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x59d423
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x59d441
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0059d35b
jmp 0x59d441
mov eax, dword [esi + 0x14]
test eax, eax
je 0x59d441
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0059d35b
test edi, edi
mov eax, edi
jne 0x59d42b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5a0177
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5a019f
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5a01b0
push 2
call edi
test ax, ax
jge 0x5a01b0
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00594200
cmp dword [esi + 0x30], ebx
jne 0x5a028a
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00594200
cmp eax, dword [esp + 0x34]
jne 0x5a028a
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5a0226
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5a026b
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5a028a
cmp eax, 0x205
je 0x5a028a
cmp eax, 0x201
je 0x5a028a
cmp eax, 0x204
je 0x5a028a
cmp eax, ebx
jne 0x5a0251
cmp dword [esp + 0x1c], 0x1b
je 0x5a028a
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x779220]
jbe 0x5a0280
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5a01e3
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4078ff
pop dword [ebp - 8]
mov eax, 0x4078ff
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xe1fecd9d
add dword [ebp - 0x18], 0x6c5377ae
mov dword [ebp - 0x14], 0x17d49643
sub dword [ebp - 0x14], 0xe5a149fe
mov dword [ebp - 0x10], 0xe18bc17b
sub dword [ebp - 0x10], 0x953f7d4d
mov dword [ebp - 0xc], 0x4a709590
add dword [ebp - 0xc], 0xb58f6a70
lea eax, [ebp - 0x18]
push eax
mov eax, 0x787c7667
add eax, 0x87c5ba0d
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xe10fb17d
sub dword [ebp - 0x18], 0x6c9d4827
mov dword [ebp - 0x14], 0x7c0d1a53
sub dword [ebp - 0x14], 0x3aa0b8de
mov dword [ebp - 0x10], 0x24b8c62a
add dword [ebp - 0x10], 0x3eb6a642
mov dword [ebp - 0xc], 0xd635b144
sub dword [ebp - 0xc], 0xd635b144
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xa12e324a
sub eax, 0xa0ec0126
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3bae6
push 0
call eax
mov ecx, 0x3ffc
xor edi, edi
add edi, eax
mov ebx, 0x1490cfc7
sub ebx, 0x144d8bc7
add ebx, dword [ebp - 8]
mov edx, 0xbf67c4fd
mov dword [ebp - 4], 0x1dc93288
mov esi, dword [ebx]
xor dword [ebp - 4], edx
xor esi, edx
xor dword [ebp - 4], ebx
mov dword [edi], esi
add dword [ebp - 4], 0xa9eda2d3
add edi, 0x27024c55
add edi, 0xd8fdb3af
add ebx, 0x750ffe88
sub ebx, 0x750ffe84
loop 0x407a12
add eax, 0xeaeed4a5
sub eax, 0xeaede1e2
xor ebx, ebx
add ebx, eax
add eax, 0xa6aecb92
add eax, 0x59513473
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x404390
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00404fe0
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x414458
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x404452
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x40444b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [edi + 4]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0x3a8
call ebp
mov esi, eax
test esi, esi
jle 0x404436
lea edx, [esi + 1]
push edx
call fcn.004041d0
mov edi, eax
add esp, 4
test edi, edi
je 0x404428
mov eax, dword [ebx]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call ebp
mov byte [eax + edi], 0
push edi
lea ecx, [esp + 0x20]
call fcn.00405270
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4043e2
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x404465
push eax
call fcn.00405410
add esp, 4
mov edi, dword [esp + 0x28]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.004041d0
mov dword [eax], 1
mov edx, dword [esp + 0x2c]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [ebx], eax
mov dword [esp + 0x18], 0x414454
call fcn.004051e0
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x405610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x405631
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x40568b
inc edi
cmp edi, esi
jl 0x405625
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4056c0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x40567a
cmp byte [eax], bl
je 0x405695
cmp byte [eax + 1], bl
je 0x40569e
cmp byte [eax + 2], bl
je 0x4056a8
cmp byte [eax + 3], bl
je 0x4056b4
add eax, 4
cmp eax, edi
jb 0x405651
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x412a9d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x412acb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412ae9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00412a03
jmp 0x412ae9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x412ae9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00412a03
test edi, edi
mov eax, edi
jne 0x412ad3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40202a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
call fcn.00410870
add esp, 0xc
mov dword [ebp - 0x210], esi
cmp ebx, esi
je 0x4020f2
push edi
mov edi, 0x4261a4
push edi
call fcn.00411448
pop ecx
test eax, eax
je 0x4020f1
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [fcn.00422120]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411463
push 0x42619c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004109e2
add esp, 0x18
cmp dword [ebp - 0x210], 0
je 0x4020f1
push dword [ebp - 0x210]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00411722
push dword [ebp - 0x210]
call fcn.00410c67
add esp, 0x14
mov dword [ebp - 0x214], esi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop esi
call fcn.004107c7
leave
ret

Function at 0x4021ef
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push 0x3e8
mov dword [ebp - 4], edi
call dword [0x422138]
push 0x42619c
mov esi, 0x42cea8
lea eax, [ebp - 4]
push esi
push eax
call fcn.004109e2
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x4022fd
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.00411b8c
push dword [ebp - 4]
call fcn.00411d9c
mov edi, eax
push edi
call fcn.00411e01
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.00411b8c
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.00411722
add esp, 0x30
cmp edi, eax
jne 0x4022de
call dword [0x422134]
push eax
call fcn.00411acf
pop ecx
call fcn.00411ae1
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x428378]
fmul qword [0x428370]
fadd qword [0x428368]
call fcn.004132b0
cmp edi, eax
jl 0x4022de
sub ebx, eax
push eax
add ebx, edi
call fcn.004021ac
push dword [ebp - 4]
call fcn.00410c67
pop ecx
pop ecx
push esi
call dword [0x422118]
push 0x425eac
lea eax, [ebp - 4]
push esi
push eax
call fcn.004109e2
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x4022fc
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.00410b80
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4022ed
push dword [ebp - 4]
call fcn.00410c67
pop ecx
cmp dword [ebp - 8], 0
je 0x4022fc
push dword [ebp - 8]
call fcn.004107bc
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403768
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x40382d
cmp esi, 0xa
jb 0x40382d
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.004107d6
pop ecx
mov ebx, eax
push ebx
push dword [ebp + 8]
lea edi, [ebp - 0xc]
mov ecx, esi
call fcn.004036fa
pop ecx
pop ecx
test eax, eax
je 0x403824
push 0x425eac
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004109e2
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4037d4
mov dword [ebp - 8], 0xfffffffe
jmp 0x403840
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.00410b80
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x4037f3
mov dword [ebp - 8], 0xfffffffe
jmp 0x403831
mov esi, dword [0x422134]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.00410b80
add esp, 0x10
jmp 0x403831
mov dword [ebp - 8], 0xfffffffd
jmp 0x403831
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x403840
push dword [ebp - 4]
call fcn.00410c67
pop ecx
test ebx, ebx
je 0x40384b
push ebx
call fcn.004108ea
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405122
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40512d
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4051e1
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427ce8]
add ecx, 8
sub edi, 8
dec esi
jne 0x405144
pop ebx
test edi, edi
je 0x4051fa
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x427ce8]
inc ecx
dec edi
jne 0x4051e5
pop esi
not eax
pop edi
ret

Function at 0x4051ff
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x427ce8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x427ce8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41ce78
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 0x41cea9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce91
add dl, dl
jne 0x41ceb4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf05
xor eax, eax
add dl, dl
jne 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfa2
add dl, dl
jne 0x41ced0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cedb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cee6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cefb
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cea0
mov eax, 1
add dl, dl
jne 0x41cf13
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf1e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf0a
sub eax, ebx
mov ebx, 1
jne 0x41cf51
mov ecx, 1
add dl, dl
jne 0x41cf37
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf2e
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cea0
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf68
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf73
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf5f
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 0x41cea0
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfc3
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 0x41cea0
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 0x41e6ac
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 0x626b6b
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 0x41e75d
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 0x41e746
test esi, esi
jbe 0x41e75d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41e738
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 0x41e75d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e715
jmp 0x41e75d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e75d
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 0x626b72
ret
Function at 0x41f044
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x6275f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f07f
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f098
lea eax, [ebp - 0x10]
mov edx, dword [0x64230c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f0ab
lea eax, [ebp - 0x10]
mov edx, dword [0x64230c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f0b7
adc edx, 0
mov edx, dword [edx*4 + 0x641154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f1b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f1b8
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f1b8
cmp dx, 0x150
ja 0x41f1b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f1b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f1dd
inc ebx
cmp ebx, 0x19
jne 0x41f071
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6275fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret