joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b368
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x9c]
mov eax, edi
call fcn.00499c50
test al, al
je 0x540f67
lea eax, [esi + 0xac]
mov dword [esp + 0x18], eax
call fcn.00499c50
test al, al
je 0x540f67
push esi
call fcn.00540b90
shl eax, 4
cmp byte [eax + 0x668bb4], 0
je 0x540f67
lea eax, [esp + 0x1c]
push eax
call fcn.0049a2f0
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0xb0]
push ecx
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x23], 0
call sub.ClientConfigUI67U.dll_bool___cdecl_LaunchFirewallPasswordDialog_class_IString___bool___class_IParentable__
add esp, 0xc
cmp byte [esp + 0x17], 0
mov bl, al
lea eax, [esp + 0x20]
je 0x540f20
call fcn.00408130
lea ecx, [esi + 0x90]
push ecx
call fcn.005482d0
lea edx, [esp + 0x17]
push edx
call fcn.00523680
push esi
call fcn.00524bb0
jmp 0x540f29
mov edi, dword [esp + 0x18]
call fcn.00499530
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
lea eax, [esp + 0x24]
call fcn.00408130
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0049a440
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 0xac]
mov eax, ecx
call fcn.00499c50
test al, al
je 0x540f86
lea eax, [esi + 0x90]
neg eax
sbb eax, eax
and eax, edi
jmp 0x540f88
mov eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
call fcn.00408130
push eax
mov eax, dword [edx + 0xc]
call eax
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5446b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x564d02
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push ebp
push esi
call fcn.004a17a0
mov dword [esp + 0x1c], 0
lea ebx, [esi + 0xc]
push ebx
mov dword [esi], vtable.ConnectConfigPtr.0
call fcn.0048b470
mov byte [esp + 0x1c], 1
lea eax, [esi + 0x30]
push eax
call fcn.00545510
mov byte [esp + 0x1c], 2
lea eax, [ebp + 0xc]
test eax, eax
je 0x544719
add eax, 0xc
jmp 0x54471b
xor eax, eax
lea edi, [ebx + 0xc]
call fcn.00499530
lea eax, [ebp + 0xc]
mov ecx, ebx
call fcn.004a1810
mov cl, byte [ebp + 0x4c]
mov byte [esi + 0x4c], cl
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 0x24]
mov dword [esi + 0x24], ecx
call sub.ClientConfigUI67U.dll_class_ConnectProtocolTable____cdecl_GetConnectProtocolTable_void_
mov ebx, dword [eax + 4]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new_1
add esp, 4
xor edi, edi
mov dword [esi + 0x28], eax
test ebx, ebx
jle 0x5447a2
mov eax, dword [ebp + 0x28]
cmp dword [eax + edi*4], 0
je 0x544793
mov ecx, eax
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x2c]
mov edx, dword [edx + 0x54]
push eax
call edx
mov ecx, dword [esi + 0x28]
mov dword [ecx + edi*4], eax
jmp 0x54479d
mov edx, dword [esi + 0x28]
mov dword [edx + edi*4], 0
inc edi
cmp edi, ebx
jl 0x544771
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x5447d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55a05a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.ConnectConfigPtr.0
mov dword [esp + 0x20], 2
call sub.ClientConfigUI67U.dll_class_ConnectProtocolTable____cdecl_GetConnectProtocolTable_void_
mov ebp, dword [eax + 4]
xor edi, edi
test ebp, ebp
jle 0x54483b
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
test ecx, ecx
je 0x544836
mov dword [eax], 0
lea eax, [ecx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, ebp
jl 0x544818
mov eax, dword [esi + 0x28]
push eax
call sub.mfc90u.dll_delete_1
add esp, 4
mov byte [esp + 0x20], 1
lea edi, [esi + 0x30]
mov dword [esp + 0x14], edi
mov byte [esp + 0x20], 3
push edi
call fcn.00544d70
mov byte [esp + 0x20], 1
mov edi, dword [edi + 8]
push edi
call sub.mfc90u.dll_delete_1
add esp, 4
mov byte [esp + 0x20], 0
lea eax, [esi + 0xc]
push eax
call fcn.00489d10
mov dword [esp + 0x20], 0xffffffff
mov ecx, esi
call fcn.004a1750
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x544b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55a010
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov edi, ecx
lea esi, [edi + 0xc]
test esi, esi
je 0x544b49
lea eax, [edi + 0x18]
jmp 0x544b4b
xor eax, eax
mov edx, ebx
call fcn.0049a630
test al, al
jne 0x544c15
mov eax, ebx
mov ecx, esi
call fcn.004080d0
mov eax, dword [edi + 0x20]
test eax, eax
jl 0x544b7d
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov edx, dword [edx + 0x58]
lea ecx, [edi + 0x30]
push ecx
mov ecx, eax
call edx
mov dword [edi + 0x20], 0xffffffff
call sub.ClientConfigUI67U.dll_class_ConnectProtocolTable____cdecl_GetConnectProtocolTable_void_
mov eax, dword [eax + 4]
xor ebp, ebp
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x544c15
xor ebx, ebx
call sub.ClientConfigUI67U.dll_class_ConnectProtocolTable____cdecl_GetConnectProtocolTable_void_
test ebx, ebx
jl 0x544c7d
cmp ebp, dword [eax + 4]
jge 0x544c7d
mov eax, dword [eax + 8]
add eax, ebx
lea esi, [esp + 0x18]
call fcn.004992f0
mov dword [esp + 0x28], 0
lea eax, [edi + 0xc]
test eax, eax
je 0x544bd0
lea eax, [edi + 0x18]
jmp 0x544bd2
xor eax, eax
lea esi, [esp + 0x14]
call fcn.004992f0
mov byte [esp + 0x28], 1
mov edx, esi
lea eax, [esp + 0x18]
call fcn.0049a630
test al, al
jne 0x544c2b
mov byte [esp + 0x28], al
mov ecx, esi
call fcn.00499450
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00499450
inc ebp
add ebx, 0x48
cmp ebp, dword [esp + 0x1c]
jl 0x544b98
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x28]
mov dword [edi + 0x20], ebp
cmp dword [eax + ebp*4], 0
jne 0x544c4b
mov ecx, dword [esp + 0x34]
push ecx
push 0
mov esi, ebp
call fcn.00544ca0
mov edx, dword [edi + 0x28]
mov dword [edx + ebp*4], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
add edi, 0x30
push edi
call eax
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.00499450
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00499450
jmp 0x544c15
push 0x63dc50
lea ecx, [esp + 0x34]
xor al, al
push ecx
mov byte [esp + 0x38], al
call sub.MSVCR90.dll__CxxThrowException
int3
Function at 0x54b470
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x559dbc
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x14], ebx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x54b4b0
sub eax, edi
sar eax, 1
mov dword [esp + 0x18], eax
jne 0x54b4de
push ebx
or edi, 0xffffffff
mov eax, edx
call fcn.004993c0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], 1
jmp 0x54b559
push 0x18
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 1
cmp eax, ebx
je 0x54b508
push ebx
push eax
mov edi, 0x400
call fcn.0049e8f0
mov ebp, eax
jmp 0x54b50a
xor ebp, ebp
mov byte [esp + 0x28], bl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], 2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov edi, ebp
call fcn.0054b380
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
add esp, 8
mov ecx, ebp
call eax
or edi, 0xffffffff
call fcn.004993d0
mov dword [esp + 0x14], 1
mov byte [esp + 0x28], bl
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
mov dword [esp + 0x20], ebx
call edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x54bc70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
lea edi, [edx + 4]
mov dword [esp + 0x10], 0x10
mov edi, edi
xor ecx, dword [edi]
add edi, 4
mov eax, ecx
shr eax, 8
movzx ebx, cl
mov dword [esp + 0x14], ecx
movzx ebp, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [edx + ecx*4 + 0x4c]
movzx eax, al
add ecx, dword [edx + eax*4 + 0x44c]
movzx eax, bp
xor ecx, dword [edx + eax*4 + 0x84c]
movzx eax, bx
add ecx, dword [edx + eax*4 + 0xc4c]
xor ecx, esi
sub dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
jne 0x54bc90
mov eax, dword [edx + 0x44]
xor eax, ecx
mov ecx, dword [edx + 0x48]
mov edx, dword [esp + 0x1c]
pop edi
xor ecx, esi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 8
ret 8
Function at 0x54bd10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
lea edi, [edx + 0x48]
mov dword [esp + 0x10], 0x10
mov edi, edi
xor ecx, dword [edi]
sub edi, 4
mov eax, ecx
shr eax, 8
movzx ebx, cl
mov dword [esp + 0x14], ecx
movzx ebp, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [edx + ecx*4 + 0x4c]
movzx eax, al
add ecx, dword [edx + eax*4 + 0x44c]
movzx eax, bp
xor ecx, dword [edx + eax*4 + 0x84c]
movzx eax, bx
add ecx, dword [edx + eax*4 + 0xc4c]
xor ecx, esi
sub dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
jne 0x54bd30
mov eax, dword [edx + 8]
xor eax, ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x1c]
pop edi
xor ecx, esi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 8
ret 8

Function at 0x54bdb0
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, eax
mov edi, ecx
mov eax, 0x5fdc08
lea ecx, [ebp + 0x4c]
mov edx, pe_nt_image_headers32
lea esp, [esp]
mov ebx, dword [eax]
mov dword [ecx], ebx
add eax, 4
add ecx, 4
sub edx, 1
jne 0x54bdd0
cmp eax, 0x5fec08
jl 0x54bdc7
xor eax, eax
mov ebx, 0x5fdbc0
add ebp, 4
movzx ecx, byte [eax + edi]
inc eax
cmp eax, esi
jl 0x54bdfb
xor eax, eax
movzx edx, byte [eax + edi]
shl ecx, 8
inc eax
or edx, ecx
cmp eax, esi
jl 0x54be0b
xor eax, eax
movzx ecx, byte [eax + edi]
shl edx, 8
inc eax
or ecx, edx
cmp eax, esi
jl 0x54be1b
xor eax, eax
movzx edx, byte [eax + edi]
shl ecx, 8
inc eax
or edx, ecx
cmp eax, esi
jl 0x54be2b
xor eax, eax
mov ecx, dword [ebx]
xor ecx, edx
mov dword [ebp], ecx
add ebx, 4
add ebp, 4
cmp ebx, 0x5fdc08
jl 0x54bdf0
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea esi, [ebp + 8]
lea edi, [eax + 9]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov edx, ebp
call fcn.0054bc70
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi - 4], ecx
mov dword [esi], edx
add esi, 8
sub edi, 1
jne 0x54be54
lea esi, [ebp + 0x50]
lea ebx, [edi + 4]
mov edi, 0x80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ebp
call fcn.0054bc70
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi - 4], edx
mov dword [esi], eax
add esi, 8
sub edi, 1
jne 0x54be85
sub ebx, 1
jne 0x54be80
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x54c481
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x668038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x54c556
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54c545
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x54c52f
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x54c545
push eax
push edi
push dword [ebp - 0x110]
call fcn.0054c41e
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x54c558
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054eee2
leave
ret 4

Function at 0x54eee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x668038]
jne 0x54eeec
repz ret
jmp fcn.0054f48e
Function at 0x402f6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort

Function at 0x402fb8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x402fd4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x403084
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x403078
cmp eax, 4
je 0x403078
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x402fc9
cmp eax, 4
je 0x402fc9
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x546008], 0x8088405
inc edx
mov dword [ebx + 0x546008], 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 0x52a54a
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 0x52a551
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 0x52b8af
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 [0x548348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x548348]
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 + 0x547178]
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 0x52b8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40933b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x40933b
lcall 0x5de5, 0x8b10c483
jmp loc.0077f65c