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

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x42122b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4212f5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
add edx, 8
sub esi, 8
dec edi
jne 0x421240
pop edi
test esi, esi
je 0x42131a
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4edf78]
lea edx, [edx + 1]
dec esi
jne 0x421300
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x458930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1112
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x45898b
mov dword [edi], 0x4d3be8
mov dword [edi + 0x10], 0x4d3bf0
mov dword [edi + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea esi, [edi + 0x18]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00404ef0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00405fa0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x508d00]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46e5e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2f3d
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x504608]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
jne 0x46e79a
mov dword [ebp - 0xdc], 0x4d3bf0
mov dword [ebp - 0xcc], 0x4ee74c
push 0
lea eax, [ebp - 0xc4]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x74], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x78], 0x50
movlpd qword [ebp - 0xd4], xmm0
call fcn.00404ef0
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xd0], eax
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xe0], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xc4]
call fcn.00405fa0
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x4d4338
push 0x4d4334
push esi
lea eax, [ebp - 0xcc]
push 0x4d4384
push eax
mov dword [ebp - 4], 7
call fcn.0042e630
add esp, 8
push eax
call fcn.00414e80
add esp, 8
push eax
call fcn.0042e630
add esp, 8
push eax
call fcn.0042e630
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0041bd60
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x46e76d
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x46e775
mov esi, dword [esi]
mov ecx, dword [0x507998]
push eax
push esi
call fcn.004016c0
cmp dword [ebp - 0x14], 0x10
jb 0x46e793
push dword [ebp - 0x28]
call fcn.004999a3
add esp, 4
push 0xffffffffffffffff
call fcn.0049e26e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret
Function at 0x471f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3453
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x14]
mov dword [edi], vtable.JCWindow.0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
push 7
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.gWidnow
mov byte [ecx], 0
call fcn.00401bc0
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.00471c60
lea ecx, [edi + 0x70]
call fcn.00471c60
lea ecx, [edi + 0xb0]
call fcn.00471c60
lea ecx, [edi + 0xf0]
call fcn.00475da0
lea ecx, [edi + 0x158]
mov byte [ebp - 4], 1
call fcn.00475da0
lea ecx, [edi + 0x1e8]
mov byte [ebp - 4], 2
mov dword [edi + 0x1c0], 3
mov dword [edi + 0x1c4], 3
mov dword [edi + 0x1c8], 0
mov dword [edi + 0x1cc], 0
mov word [edi + 0x1d1], 0
mov byte [edi + 0x1d3], 0
mov dword [edi + 0x1d4], 0
mov dword [edi + 0x1d8], 0x3f000000
mov dword [edi + 0x1dc], 0x3f000000
mov dword [edi + 0x1e0], 0
mov dword [edi + 0x1e4], 0
call fcn.00416980
lea ecx, [edi + 0x1ec]
call fcn.00416980
mov dword [edi + 0x1f0], 0
mov dword [edi + 0x1f4], 0
mov dword [edi + 0x1f8], 0
lea ecx, [edi + 0x1fc]
mov byte [ebp - 4], 3
call fcn.00475da0
mov dword [edi + 0x264], 0
mov dword [edi + 0x27c], 0xf
mov dword [edi + 0x278], 0
mov byte [edi + 0x268], 0
mov dword [edi + 0x280], 0
mov dword [edi + 0x284], 0
mov dword [edi + 0x29c], 0xf
mov dword [edi + 0x298], 0
mov byte [edi + 0x288], 0
mov dword [edi + 0x2a0], 0
lea ecx, [edi + 0x2a4]
mov byte [ebp - 4], 6
mov dword [edi + 0x2a4], 0
mov dword [edi + 0x2a8], 0
call fcn.004524b0
mov dword [edi + 0x2a4], eax
mov dword [edi + 0x2ac], 0
mov dword [edi + 0x2b0], 0
mov dword [edi + 0x2b4], 0
mov byte [ebp - 4], 7
mov dword [edi + 0x2b8], 0
mov dword [edi + 0x2bc], 0
mov dword [edi + 0x2c0], 0
mov dword [edi + 0x2c4], 0
mov dword [edi + 0x2c8], 0
mov dword [edi + 0x2cc], 0
mov dword [edi + 0x2d0], 0
mov dword [edi + 0x2d4], 0
mov dword [edi + 0x2d8], 0
mov dword [edi + 0x2dc], 0
mov dword [edi + 0x2e0], 0
mov dword [edi + 0x2e4], 0
mov dword [edi + 0x2e8], 0
mov dword [edi + 0x2ec], 0
mov dword [edi + 0x2f0], 0
mov dword [edi + 0x2f4], 0
mov dword [edi + 0x2f8], 0
mov dword [edi + 0x2fc], 0
push 0x18
mov dword [edi + 0x280], 0x472790
mov dword [edi + 0x264], edi
mov dword [edi + 0x2a0], 0x4728a0
mov dword [edi + 0x284], edi
call fcn.00499954
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x47222f
mov ecx, eax
call fcn.00478210
jmp 0x472231
xor eax, eax
push 0x40
mov byte [ebp - 4], 7
mov dword [edi + 8], eax
call fcn.00499954
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x472258
mov ecx, eax
call fcn.00471c60
mov ecx, eax
jmp 0x47225a
xor ecx, ecx
mov eax, dword [edi + 8]
mov dword [edi + 0x2c], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x47226d
mov dword [eax + 0x34], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47dbf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c42db
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
call fcn.00416260
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0047dea0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47dcd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c42db
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
call fcn.00416260
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0047df20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47dd50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c42db
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
call fcn.00416260
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0047e000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47ddd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c42db
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
mov byte [esi + 0xc], 0
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
call fcn.00416260
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0047e1e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x48de80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c55d1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0xffffffffffffffff
call fcn.00482ae0
push ecx
lea ecx, [ebx + 0x64]
mov dword [ebp - 4], 0
mov dword [ebx], vtable.JIN::JC_GUI_PROGRESS_BAR.0
mov dword [ebx + 0x5c], 0
mov dword [esp], 0xbf800000
call fcn.00416270
lea ecx, [ebx + 0x6c]
call fcn.004709f0
lea ecx, [ebx + 0xb8]
mov byte [ebp - 4], 1
call fcn.004709f0
push dword [ebx + 0x38]
lea ecx, [ebx + 0x6c]
mov byte [ebp - 4], 2
mov dword [ebx + 0x30], 5
call fcn.00471870
push dword [ebx + 0x38]
lea ecx, [ebx + 0xb8]
call fcn.00471870
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4953b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5d38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x504608]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
lea ecx, [ebx + 0x4c]
mov dword [ebp - 4], 0
call fcn.00416260
lea ecx, [ebx + 0x54]
call fcn.00416260
lea ecx, [ebx + 0x70]
call fcn.0041a580
mov ecx, ebx
lea ecx, [ecx + 0x80]
call fcn.0041a580
mov eax, ebx
sub esp, 8
lea ecx, [ebx + 0x4c]
mov dword [esp + 4], 0x42000000
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0x3f800000
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [esp], 0x42000000
call fcn.004162f0
sub esp, 8
lea ecx, [ebx + 0x54]
mov dword [esp + 4], 0x42000000
mov dword [esp], 0x42000000
call fcn.004162f0
mov esi, ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.0041a510
movq xmm0, qword [ebp - 0x20]
movq qword [ebx + 0x70], xmm0
movq xmm0, qword [ebp - 0x18]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
movq qword [ebx + 0x78], xmm0
call fcn.0041a510
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x80], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x88], xmm0
mov dword [esi + 0x90], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae4a4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x504608]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004a2ab4
mov dword [ebp - 0x14], eax
cmp dword [0x508a54], edi
jne 0x4ae595
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4ae522
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ae675
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4ae675
push str.MessageBoxW
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x4ae675
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x508a54], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x508a58], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x508a5c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x508a64], eax
test eax, eax
je 0x4ae592
push str.GetProcessWindowStation
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x508a60], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ae5ba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ae5ad
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4ae5cf
push 4
pop eax
jmp 0x4ae677
cmp dword [ebp - 0x14], edi
je 0x4ae5cf
push dword [0x508a54]
call dword [sym.imp.kernel32.dll_DecodePointer]
push 3
jmp 0x4ae5b4
mov eax, dword [0x508a60]
mov ebx, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, esi
je 0x4ae62d
cmp dword [0x508a64], esi
je 0x4ae62d
push eax
call ebx
push dword [0x508a64]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ae62d
test eax, eax
je 0x4ae62d
call ecx
test eax, eax
je 0x4ae622
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ae622
test byte [ebp - 8], 1
jne 0x4ae62d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4ae65d
mov eax, dword [0x508a58]
cmp eax, esi
je 0x4ae65a
push eax
call ebx
test eax, eax
je 0x4ae65a
call eax
mov edi, eax
test edi, edi
je 0x4ae65a
mov eax, dword [0x508a5c]
cmp eax, esi
je 0x4ae65a
push eax
call ebx
test eax, eax
je 0x4ae65a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x508a54]
call ebx
test eax, eax
je 0x4ae675
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4ae677
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a134
leave
ret
Function at 0x4bb453
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004a4be5
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4bb48b
xor eax, eax
jmp 0x4bb4b7
cmp esi, dword [ebp - 4]
je 0x4bb4b4
cmp dword [ebp + 0xc], 0
je 0x4bb4b4
push dword [edi + 0x9c]
call fcn.004bb061
push dword [edi + 0x9c]
mov esi, eax
call fcn.004a2eba
pop ecx
pop ecx
cmp esi, eax
je 0x4bb487
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
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 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
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 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
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 0x41f0a0
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 0x46b58e
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 0x41f0ef
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 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
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 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
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 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
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 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
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 0x46b595
ret