joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408664
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4352e4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x408681
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4086af
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x40868a
mov dword [ecx*4 + 0x4352e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408683
jmp 0x408675
cmp edx, ebx
je 0x4086c8
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4352e0]
jmp 0x4086af
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x15465e8d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x14b85f5e
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100036d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001675c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10020014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc4], 0
je 0x1000370a
push 0
call fcn.10003780
lea ecx, [esi + 0xc0]
mov al, 1
xchg byte [ecx], al
push 8
call fcn.10005189
mov edi, eax
mov dword [ebp - 0x10], edi
push 4
mov dword [ebp - 4], 0
call fcn.10005189
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 1
push ebx
push 0
push eax
push 0x10001500
push 0
push 0
call fcn.10009ca1
add esp, 0x20
mov dword [edi], eax
test eax, eax
je 0x1000376f
mov dword [esi + 0xc4], edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebx], 0
call fcn.10004ab9
int3

Function at 0x100039c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [esi]
mov edx, dword [esp + 0x14]
sbb edx, dword [esi + 4]
call fcn.100052b0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x10], xmm0
call fcn.100052b0
divsd xmm0, qword [0x100172c8]
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.10005230
mov ebx, dword [esp + 0x24]
mov ebp, eax
test ebx, ebx
je 0x10003a6a
nop dword [eax]
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [esi]
mov edx, dword [esp + 0x14]
sbb edx, dword [esi + 4]
call fcn.100052b0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x18], xmm0
call fcn.100052b0
divsd xmm0, qword [0x100172c8]
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.10005230
sub eax, ebp
cmp eax, ebx
jb 0x10003a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x10003af0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0xffffffff
je 0x10003afd
mov al, 1
pop esi
ret
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x10003af9
mov dword [esi + 0x20], eax
xor al, al
pop esi
ret
Function at 0x10003b20
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x10020014]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x10003b4d
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100051c7
add esp, 0x18
ret 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 4], 0x10
push ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push dword [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jns 0x10003b84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
cmove esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100051c7
add esp, 0x18
ret 8

Function at 0x10003bd0
Capabilities:
Convert ip address from string

Disassembly:
push ebx
mov ebx, ecx
xorps xmm0, xmm0
push ebp
push dword [esp + 0x10]
mov ebp, 2
movups xmmword [ebx], xmm0
mov word [ebx], bp
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx + 2], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [ebx + 4], eax
movups xmmword [ebx + 0x10], xmm0
mov word [ebx + 0x10], bp
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0xc]
mov word [ebx + 0x12], ax
cmp dword [ecx + 0x14], 0x10
jb 0x10003c20
mov ecx, dword [ecx]
lea eax, [ebx + 0x14]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
pop ebp
pop ebx
ret 8
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40596d
pop dword [ebp - 0x28]
mov eax, 0xc104063a
add eax, 0x3f3c5333
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x60f3393e
sub dword [ebp - 0x38], 0x12a0f3f3
mov dword [ebp - 0x34], 0x7374fac9
add dword [ebp - 0x34], 0xbebe517c
mov dword [ebp - 0x30], 0xc15af229
add dword [ebp - 0x30], 0x8af15205
mov dword [ebp - 0x2c], 0xa1b774f0
sub dword [ebp - 0x2c], 0xa1b774f0
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x3c41805
add dword [ebp - 0x38], 0x70ae5151
mov dword [ebp - 0x34], 0xda7d4664
sub dword [ebp - 0x34], 0x9910e4ef
mov dword [ebp - 0x30], 0x52a6086e
sub dword [ebp - 0x30], 0xef369c02
mov dword [ebp - 0x2c], 0xb1b9809f
sub dword [ebp - 0x2c], 0xb1b9809f
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xc9ba5f7d
sub eax, 0xc979ee7d
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3893b
push 0
call eax
mov ecx, 0xc9856608
sub ecx, 0xc9851697
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x28]
mov esi, 0x1b8cbd65
add esi, 0xc1cfbb6a
sub dword [ebp - 0x20], 0x7ada4979
mov ebx, dword [edi]
xor dword [ebp - 0x1c], 0x52acd1d
xor ebx, esi
sub dword [ebp - 0xc], edx
mov dword [edx], ebx
xor dword [ebp - 4], edi
add edx, 0x9b61bc5
add edx, 0xf649e43f
add edi, 4
loop 0x405a86
add eax, 0x13097
mov ebx, eax
add eax, 0xa67d89fb
add eax, 0x5982760a
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4022fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], al
mov byte [ebp - 5], 0
jmp 0x402378
mov byte [ebp - 6], 0
jmp 0x40236e
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 6]
mov ecx, dword [ebp + 0xc]
shl eax, 2
add eax, ecx
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x18]
lea edx, [eax*4]
movzx eax, byte [ebp - 5]
add eax, edx
lea edx, [eax*4]
movzx eax, byte [ebp - 6]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 5]
movzx ecx, byte [ebp - 6]
xor edx, ebx
mov ebx, dword [ebp + 0xc]
shl eax, 2
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 6], 1
cmp byte [ebp - 6], 3
jbe 0x402317
add byte [ebp - 5], 1
cmp byte [ebp - 5], 3
jbe 0x402311
nop
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402385
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x4023de
mov byte [ebp - 0xa], 0
jmp 0x4023d4
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + str.cw]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x402399
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x402393
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402e9e
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x402ef7
mov byte [ebp - 0xa], 0
jmp 0x402eed
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + 0x406a60]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x402eb2
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x402eac
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x4030fd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov byte [ebp - 5], 0
jmp 0x403135
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add byte [ebp - 5], 1
cmp byte [ebp - 5], 0xf
jbe 0x40310a
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4035a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004044b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x403600
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x409cac]
test esi, esi
jle 0x403720
mov eax, dword [0x409cb0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x403634
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4036b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403620
mov dword [esp], ebx
call fcn.00404010
mov edi, eax
test eax, eax
je 0x403747
mov eax, dword [0x409cb0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00404150
mov edx, dword [0x409cb0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403727
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4036b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4036c0
add dword [0x409cac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x409cb0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4036b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004035a0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40363e
mov eax, dword [0x409cb0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004035a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004035a0
lea esi, [esi]
nop
Function at 0x403c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x409cc8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x409cc0]
sub esp, 4
test ebx, ebx
je 0x403cb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403cae
test esi, esi
je 0x403cae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403c90
mov dword [esp], 0x409cc8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403ee0
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
mov eax, dword [esp + 4]
xor edx, edx
cmp word [eax], 0x5a4d
jne 0x403f18
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
je 0x403f20
mov eax, edx
ret
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
ret

Function at 0x404010
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x404035
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x404040
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x404035
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x404088
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40407e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40408a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x404070
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401695
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x40169f
repz ret
jmp fcn.0040197b

Function at 0x405dcb
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.00403be5
and dword [ebp - 4], 0
cmp dword [0x40e878], 0
mov ebx, eax
jne 0x405e7c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405f2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405f2d
push eax
call fcn.00403b73
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e878], eax
call esi
push eax
call fcn.00403b73
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e87c], eax
call esi
push eax
call fcn.00403b73
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e880], eax
call esi
push eax
call fcn.00403b73
pop ecx
mov dword [0x40e888], eax
test eax, eax
je 0x405e7c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403b73
pop ecx
mov dword [0x40e884], eax
mov eax, dword [0x40e884]
cmp eax, ebx
je 0x405ed4
cmp dword [0x40e888], ebx
je 0x405ed4
push eax
call fcn.00403bee
push dword [0x40e888]
mov esi, eax
call fcn.00403bee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405ed4
test edi, edi
je 0x405ed4
call esi
test eax, eax
je 0x405ecb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405ecb
test byte [ebp - 0xc], 1
jne 0x405ed4
or dword [ebp + 0x10], 0x200000
jmp 0x405f0d
mov eax, dword [0x40e87c]
cmp eax, ebx
je 0x405f0d
push eax
call fcn.00403bee
pop ecx
test eax, eax
je 0x405f0d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405f0d
mov eax, dword [0x40e880]
cmp eax, ebx
je 0x405f0d
push eax
call fcn.00403bee
pop ecx
test eax, eax
je 0x405f0d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e878]
call fcn.00403bee
pop ecx
test eax, eax
je 0x405f2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405f2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
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 + 0xad2008], 0x8088405
inc edx
mov dword [ebx + 0xad2008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb8c
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 0x41cbbd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cba5
add dl, dl
jne 0x41cbc8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc19
xor eax, eax
add dl, dl
jne 0x41cbd5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccb6
add dl, dl
jne 0x41cbe4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc05
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc0f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbb4
mov eax, 1
add dl, dl
jne 0x41cc27
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc32
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc1e
sub eax, ebx
mov ebx, 1
jne 0x41cc65
mov ecx, 1
add dl, dl
jne 0x41cc4b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc56
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc42
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbb4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc87
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc73
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 0x41cbb4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ccd7
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 0x41cbb4
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 0x41e004
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 0xabc4c3
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 0x41e0b5
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 0x41e09e
test esi, esi
jbe 0x41e0b5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e090
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 0x41e0b5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e06d
jmp 0x41e0b5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0b5
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 0xabc4ca
ret
Function at 0x41e8f8
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 0xabcea7
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 0x41e933
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e94c
lea eax, [ebp - 0x10]
mov edx, dword [0xad4250]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e95f
lea eax, [ebp - 0x10]
mov edx, dword [0xad4250]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e96b
adc edx, 0
mov edx, dword [edx*4 + 0xad30dc]
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.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea79
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.00406d44
test eax, eax
je 0x41ea6c
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea6c
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
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.00406d44
test eax, eax
je 0x41ea6c
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea6c
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea6c
cmp dx, 0x150
ja 0x41ea6c
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.00406d44
test eax, eax
je 0x41ea6c
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea6c
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.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea91
inc ebx
cmp ebx, 0x19
jne 0x41e925
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xabceae
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret