joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486745
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48685d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48685d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c5b56
mov esi, eax
test esi, esi
je 0x48685d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48685d
mov ecx, esi
call fcn.004866d0
cmp edi, eax
jge 0x48685d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4867e3
mov dword [esp + 0x34], 1
jmp 0x48683e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48685d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00485c30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48b880
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48b8e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48b8e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48b8c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48bc70
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x48bca8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x48c8d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48c919
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x48cd90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d39d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048c940
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048c9c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048c9c0
lea ecx, [esi + 0xc]
call fcn.004c40e1
lea ecx, [esi + 0x10]
call fcn.004c40e1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048df50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048df50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048df50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c4156
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c4156
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x491350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x92ddf8]
xor edx, edx
cmp eax, edx
jne 0x491376
xor eax, eax
mov byte [eax + 0x92dcf8], al
inc eax
cmp eax, 0x100
jl 0x49135e
mov dword [0x92ddf8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x92dcf8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x491407
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4913da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4913a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x491410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x491463
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49144a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3dce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00498730
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8048f4
call fcn.004c3e97
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x497ea3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c3e97
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x497e9c
push 0
mov ecx, eax
call fcn.0048ef80
mov dword [esi + 0xc], eax
jmp 0x497ea5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x497ea5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c64fa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c6532
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.004c45b1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c4589
jmp 0x4c653e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c7bec
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 0x4c7c2e
call fcn.004cdaa8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c7c2e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c7c25
xor eax, eax
jmp 0x4c7c36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c7c3c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cdfd8
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 0x4ce006
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ce024
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cdf3e
jmp 0x4ce024
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ce024
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cdf3e
test edi, edi
mov eax, edi
jne 0x4ce00e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42c6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
fld dword [0x44a06c]
sub esp, 0xc
fadd qword [0x444d30]
fcomp qword [0x444d28]
fnstsw ax
fld dword [0x44a06c]
fadd qword [0x444cb0]
fstp dword [0x44a06c]
test ah, 0x41
jne 0x42c778
mov ax, word [0x44a420]
mov ecx, dword [0x44a478]
mov edx, dword [0x44a1dc]
cwde
lea eax, [ecx + eax - 0x372a2c32]
cmp edx, eax
jge 0x42c75a
mov eax, dword [0x44a048]
mov ecx, dword [0x44a0d8]
fld dword [0x44a1bc]
inc dword [0x44a048]
fstp st(0)
jmp 0x42c778
mov dx, word [0x44a44c]
mov ecx, dword [0x44a368]
movsx eax, dx
add eax, 0x84a58d5e
add ecx, eax
mov word [0x44a44c], cx
fld qword [0x44a320]
push esi
fmul qword [0x444d20]
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
imul esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
fstp qword [0x44a320]
test esi, esi
jne 0x42c7bc
movzx edx, word [0x44a298]
add edx, 0x1a27d31c
pop edi
mov word [0x44a298], dx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ax, word [0x44a07c]
movsx ecx, ax
mov dword [ebp + 0xc], ecx
fild dword [ebp + 0xc]
fadd dword [0x44a47c]
mov dx, word [0x44a1f0]
movsx eax, dx
mov dword [ebp + 0xc], eax
fsub qword [0x444d18]
fild dword [ebp + 0xc]
fmulp st(1)
fistp qword [ebp - 0xc]
mov cx, word [ebp - 0xc]
mov word [0x44a1f0], cx
mov ecx, dword [ebp + 0x14]
call fcn.00432060
fld qword [0x44a070]
fsubr qword [0x444d10]
mov ecx, eax
mov edx, dword [0x44a2d0]
dec dword [0x44a2d0]
mov eax, 0x1532f47a
sub eax, edx
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
fcompp
fnstsw ax
fld qword [0x44a070]
fsub qword [0x444cb0]
fstp qword [0x44a070]
test ah, 5
jp 0x42c888
fld qword [0x44a280]
fsub qword [0x444d08]
fsub qword [0x444d00]
fcomp qword [0x44a198]
fnstsw ax
test ah, 5
jp 0x42c888
fld dword [0x44a3a4]
mov dx, word [0x44a1c4]
movsx eax, dx
add eax, 0x4a1a100f
mov dword [ebp + 0xc], eax
fisub dword [ebp + 0xc]
fstp dword [0x44a3a4]
inc word [0x44a1c4]
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 4]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
fld dword [0x44a018]
fmul qword [0x44a3f8]
xor edx, edx
fstp dword [0x44a018]
fld qword [0x44a3f8]
mov eax, dword [ebp - 4]
fsub qword [0x444cb0]
div edi
fstp qword [0x44a3f8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e170
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
fld qword [0x44a070]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [0x44a070]
fld qword [0x44a070]
fadd qword [0x4467d8]
fsub qword [0x44a3e0]
movzx eax, word [0x44a404]
movsx ecx, ax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
faddp st(1)
fistp qword [ebp - 8]
mov dx, word [ebp - 8]
mov word [0x44a404], dx
fadd qword [0x44a3e0]
fstp qword [0x44a3e0]
call fcn.00434310
fld qword [0x44a290]
mov ecx, dword [ebp + 8]
fsubr qword [0x4467d0]
push ecx
fistp qword [ebp - 8]
movzx eax, word [ebp - 8]
mov word [0x44a2a8], ax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x431880
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
fld qword [0x44a440]
mov eax, dword [0x44a020]
fsub qword [0x445570]
mov dword [ebp - 4], eax
fsub qword [0x445568]
fild dword [ebp - 4]
fadd qword [0x44a388]
inc dword [0x44a020]
fucompp
fnstsw ax
fld qword [0x44a388]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [0x44a388]
test ah, 0x44
jp 0x4318d4
mov dword [0x44a1f8], 0x7476ada3
mov dword [ecx], 0
fld qword [0x44a1a8]
fcomp qword [0x445560]
fnstsw ax
fld qword [0x44a1a8]
fadd st(1)
fstp qword [0x44a1a8]
test ah, 1
jne 0x431914
mov dx, word [0x44a044]
movsx eax, dx
mov edx, dword [0x44a1ec]
sub edx, eax
mov word [0x44a1b0], dx
mov dword [ecx + 4], 0
mov eax, dword [0x44a03c]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fmul dword [0x44a190]
fstp dword [0x44a190]
mov dword [ecx + 8], 0x67452301
fld qword [0x445558]
fstp qword [0x44a070]
mov dword [ecx + 0xc], 0xefcdab89
mov dx, word [0x44a27c]
movsx eax, dx
mov edx, 0x7657f85e
sub edx, eax
mov dword [ebp - 4], edx
or eax, 0xffffffff
fild dword [ebp - 4]
fsub qword [0x44a258]
fmul qword [0x44a390]
fstp qword [0x44a390]
add word [0x44a27c], ax
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [0x44a0d8]
cmp edx, 0xe8af9fd
jne 0x4319e5
add dword [0x44a090], eax
mov eax, dword [0x44a090]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fadd dword [0x44a154]
fcomp qword [0x445550]
fnstsw ax
test ah, 0x44
jnp 0x4319e5
fsubr qword [0x44a140]
fstp qword [0x44a140]
fld qword [0x44a140]
mov edx, dword [0x44a470]
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fmulp st(1)
fistp qword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [0x44a470], eax
jmp 0x4319e7
fstp st(0)
mov dword [ecx + 0x14], 0x10325476
fld dword [0x44a134]
fadd qword [0x445548]
fadd qword [0x44a1d0]
fstp qword [0x44a1d0]
mov esp, ebp
pop ebp
ret
Function at 0x431bc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
or edi, 0xffffffff
add word [0x44a09c], di
mov eax, dword [0x44a31c]
mov ecx, dword [0x44a11c]
mov dx, word [0x44a09c]
add eax, ecx
movsx ecx, dx
cmp ecx, eax
jle 0x431c1d
fld dword [0x44a1c8]
fsub qword [0x444cb0]
fstp dword [0x44a1c8]
fld qword [0x44a2d8]
fadd qword [0x4498e8]
fadd dword [0x44a1c8]
fadd qword [0x44a120]
fstp qword [0x44a120]
call fcn.00432300
mov dx, word [0x44a0fc]
mov cx, word [0x44a3c0]
movsx eax, dx
movsx edx, cx
mov ecx, dword [0x44a03c]
add word [0x44a0fc], di
add dword [0x44a03c], edi
sub eax, edx
add eax, 0x446631e4
add ecx, 0x615633bd
cmp ecx, eax
jle 0x431c74
fld dword [0x44a3e8]
fld qword [0x44a0a0]
fsub qword [0x4498e0]
fsubp st(1)
fstp dword [0x44a3e8]
call fcn.004264e0
push 0x441144
push 0x44113c
call fcn.0042f6e0
inc dword [0x44a118]
mov edx, dword [0x44a118]
mov eax, 0x9c917189
sub eax, edx
add dword [0x44a240], eax
add esp, 8
call fcn.0040d0c0
fld qword [0x44a0c8]
fsub qword [0x4498d8]
mov esi, eax
movzx eax, word [0x44a034]
movsx ecx, ax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
faddp st(1)
fistp qword [ebp - 8]
mov dx, word [ebp - 8]
mov word [0x44a034], dx
call fcn.00434310
movzx eax, word [0x44a404]
movsx ecx, ax
mov dword [ebp - 4], ecx
push esi
fild dword [ebp - 4]
fsub dword [0x44a134]
mov edx, dword [0x44a0d8]
mov dword [ebp - 4], edx
fisub dword [ebp - 4]
fstp dword [0x44a3b4]
add word [0x44a404], di
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
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 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
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 0x41f05c
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 0x5d254a
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 0x41f0ab
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 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
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 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
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 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
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 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
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 0x5d2551
ret
Function at 0x420294
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 0x5d38af
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 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x5f0348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x5f0348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x5ef178]
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 0x420481
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.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
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 - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
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.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
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 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
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.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
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 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d38b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret