joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e79d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4e7a1a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e7a1a
call fcn.004e72b8
test eax, eax
je 0x4e7a1a
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00402f90
xor eax, eax
inc eax
jmp 0x4e7c32
cmp dword [ebx + 4], 0x100
push edi
jne 0x4e7c29
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4e7b17
push 0x11
call edi
test ax, ax
jl 0x4e7b17
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e7b17
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e7a8a
cmp eax, 0x20
jbe 0x4e7b17
cmp eax, 0x24
jbe 0x4e7a7d
cmp eax, 0x26
je 0x4e7a7d
cmp eax, 0x28
jne 0x4e7b17
call fcn.004e72b8
test eax, eax
je 0x4e7b17
mov ecx, esi
call fcn.0040be54
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e72b8
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e7abf
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00402f90
jmp 0x4e7c24
call fcn.00409302
test eax, eax
je 0x4e7c24
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040938c
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4e7aed
xor edi, edi
jmp 0x4e7af0
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.00409302
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4e7c24
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4e7bf3
sub eax, 0x12
je 0x4e7bcb
sub eax, 0xb
je 0x4e7b39
dec eax
dec eax
jne 0x4e7c29
push 0x12
call edi
test ax, ax
jl 0x4e7c29
push 0x11
call edi
test ax, ax
jl 0x4e7c29
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e7c29
call fcn.004e72b8
test eax, eax
jne 0x4e7c24
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e7232
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00407f56
test eax, eax
je 0x4e7c24
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00407f56
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4e7c24
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e7bdf
push 0
call fcn.004e7232
mov ecx, esi
call fcn.00408a85
test eax, eax
je 0x4e7c29
mov ecx, esi
call fcn.00408a85
jmp 0x4e7c1d
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00407f56
test eax, eax
je 0x4e7c29
push dword [esi + 0x20]
call edi
push eax
call fcn.00407f56
push 0
push esi
mov ecx, eax
call fcn.0040c914
mov ecx, eax
call fcn.0040be54
xor eax, eax
inc eax
jmp 0x4e7c31
push ebx
mov ecx, esi
call fcn.00405d22
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4fcdad
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x4fcded
test edi, edi
jl 0x4fcded
cmp al, 0x20
je 0x4fcde2
cmp word [ebp + 8], 0x71
jne 0x4fcded
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x501d7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x571674]
jne 0x501d84
repz ret
jmp fcn.00508954

Function at 0x5157d8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00508bca
and dword [ebp - 4], 0
cmp dword [0x5789b4], 0
mov ebx, eax
jne 0x515889
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51593a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54f818
push edi
call esi
test eax, eax
je 0x51593a
push eax
call fcn.00508b58
mov dword [esp], 0x54f808
push edi
mov dword [0x5789b4], eax
call esi
push eax
call fcn.00508b58
mov dword [esp], 0x54f7f4
push edi
mov dword [0x5789b8], eax
call esi
push eax
call fcn.00508b58
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5789bc], eax
call esi
push eax
call fcn.00508b58
pop ecx
mov dword [0x5789c4], eax
test eax, eax
je 0x515889
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00508b58
pop ecx
mov dword [0x5789c0], eax
mov eax, dword [0x5789c0]
cmp eax, ebx
je 0x5158e1
cmp dword [0x5789c4], ebx
je 0x5158e1
push eax
call fcn.00508bd3
push dword [0x5789c4]
mov esi, eax
call fcn.00508bd3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5158e1
test edi, edi
je 0x5158e1
call esi
test eax, eax
je 0x5158d8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5158d8
test byte [ebp - 0xc], 1
jne 0x5158e1
or dword [ebp + 0x10], 0x200000
jmp 0x51591a
mov eax, dword [0x5789b8]
cmp eax, ebx
je 0x51591a
push eax
call fcn.00508bd3
pop ecx
test eax, eax
je 0x51591a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51591a
mov eax, dword [0x5789bc]
cmp eax, ebx
je 0x51591a
push eax
call fcn.00508bd3
pop ecx
test eax, eax
je 0x51591a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5789b4]
call fcn.00508bd3
pop ecx
test eax, eax
je 0x51593a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51593c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10150d4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10222038]
jne 0x10150d55
repz ret
jmp fcn.10153a78

Function at 0x1015440f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1014f936
and dword [ebp - 4], 0
cmp dword [0x10222d6c], 0
mov ebx, eax
jne 0x101544c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10154571
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10154571
push eax
call fcn.1014f8c4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10222d6c], eax
call esi
push eax
call fcn.1014f8c4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10222d70], eax
call esi
push eax
call fcn.1014f8c4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10222d74], eax
call esi
push eax
call fcn.1014f8c4
pop ecx
mov dword [0x10222d7c], eax
test eax, eax
je 0x101544c0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1014f8c4
pop ecx
mov dword [0x10222d78], eax
mov eax, dword [0x10222d78]
cmp eax, ebx
je 0x10154518
cmp dword [0x10222d7c], ebx
je 0x10154518
push eax
call fcn.1014f93f
push dword [0x10222d7c]
mov esi, eax
call fcn.1014f93f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10154518
test edi, edi
je 0x10154518
call esi
test eax, eax
je 0x1015450f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1015450f
test byte [ebp - 0xc], 1
jne 0x10154518
or dword [ebp + 0x10], 0x200000
jmp 0x10154551
mov eax, dword [0x10222d70]
cmp eax, ebx
je 0x10154551
push eax
call fcn.1014f93f
pop ecx
test eax, eax
je 0x10154551
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10154551
mov eax, dword [0x10222d74]
cmp eax, ebx
je 0x10154551
push eax
call fcn.1014f93f
pop ecx
test eax, eax
je 0x10154551
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10222d6c]
call fcn.1014f93f
pop ecx
test eax, eax
je 0x10154571
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10154573
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101551d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
mov dword [0x10221398], 0x23d1
mov dword [ebp - 0x30], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x1015527e
lea eax, [0x1020c444]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x1022139c]
add esi, 0x831
mov dword [0x1022139c], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call fcn.10155550
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.10155ac0
mov ecx, eax
mov dword [0x102213b8], eax
mov eax, esp
mov edx, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [0x10221398], 0x829
mov ecx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
jmp 0x101552ce
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x2b3
mov ecx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x101551f8
jmp 0x1015527e
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.101553a0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x2b3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x101552ce
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
call fcn.10155a20
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x29000
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x143000
mov ecx, dword [ebp - 0x48]
add ecx, 0xc5fb
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
mov dword [0x1022139c], 0xe43
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10155400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102213a0], 0
mov dword [0x102213a4], 0
mov dword [0x102213b0], 0
mov dword [0x10221398], 0x819
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x10155542
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x102213a0]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x102213a0], edx
mov dword [0x10221398], 0x110a
mov esi, dword [0x102213a4]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x102213a4], edx
mov ecx, dword [0x102213a0]
mov bl, byte [edi + ecx]
mov byte [0x102213a8], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x102213a8]
mov ecx, dword [0x102213a4]
mov byte [edi + ecx], bl
mov ecx, dword [0x102213a0]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x102213a4]
movzx edx, byte [edi + edx]
add edx, ecx
mov ecx, dword [0x10221398]
add ecx, 0x154a
mov dword [0x10221398], ecx
and edx, 0xff
mov dword [0x102213b0], edx
mov ecx, dword [0x1022139c]
add ecx, 0x880
mov dword [0x1022139c], ecx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x10155459
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10155760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10155760]
mov dword [0x10221398], 0x183f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x1015579d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x1015579d
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x10155779
Function at 0x10155fc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102213a4], 0
mov byte [0x102213a8], 0
mov dword [0x10221398], 0x719
mov dword [0x102213a0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1022139c]
add eax, 0xfffff13a
mov dword [0x10221398], eax
mov eax, dword [0x102213a0]
add eax, 1
mov dword [0x102213a0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10156005
mov dword [0x102213a0], 0
mov dword [0x102213ac], 0
mov eax, dword [0x102213a4]
mov dword [ebp - 0x20], eax
mov eax, 0x100
mov ecx, dword [0x102213a0]
mov edx, dword [ebp - 0x18]
movzx esi, byte [edx + ecx]
mov edi, dword [ebp - 0x20]
add esi, edi
mov dword [ebp - 0x24], eax
mov eax, ecx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add esi, edx
mov dword [0x102213ac], esi
mov dword [0x1022139c], 0xde7
mov eax, esi
cdq
mov esi, dword [ebp - 0x24]
idiv esi
mov dword [0x102213a4], edx
mov edx, dword [0x102213a0]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov byte [0x102213a8], cl
mov edx, dword [0x10221398]
add edx, 0x17b0
mov dword [0x10221398], edx
mov edx, dword [0x102213a4]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [0x102213a0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x10221398], 0x20e9
mov cl, byte [0x102213a8]
mov edx, dword [0x102213a4]
mov byte [esi + edx], cl
mov edx, dword [0x102213a0]
add edx, 1
mov dword [0x102213a0], edx
cmp edx, 0x100
jl 0x10156044
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101561e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x10221398], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10156277
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x10]
mov word [ebp - 0x16], dx
mov ax, word [ebp - 0x16]
cmp ax, 0x6c
je 0x101562e3
jmp 0x101562fa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2], 0x6f
je 0x101562a6
jmp 0x101562fa
mov eax, dword [ebp - 0x20]
mov dword [0x10221398], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x10156238
jmp 0x101562fa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
je 0x10156256
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
jl 0x10156277
jmp 0x10156256
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x16]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x61
jne 0x101562fa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101562fa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10156216
jmp 0x101562fa
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x10156301
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x10156301
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d2ec
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 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
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 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
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 0x41d314
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 0x41f504
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 0x5f79f2
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 0x41f553
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 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
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 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
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 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
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 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
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 0x5f79f9
ret
Function at 0x420750
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5f8d6b
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 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x61673c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x61673c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x615538]
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 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret