joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507780
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x130], ecx
test eax, eax
jne 0x5077af
mov eax, dword [esi + 0x114]
mov dword [esi + 0x134], eax
add eax, ecx
cmp eax, dword [esi + 0x114]
jbe 0x5077d2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esi + 0x130]
xor edx, edx
mov ecx, dword [ebp - 0x44]
mov eax, edi
div ecx
mov ebx, edi
mov dword [ebp - 0x30], ecx
mov eax, edx
mov dword [ebp - 0x38], eax
sub ebx, eax
mov eax, dword [esi + 0x134]
push 0
mov dword [ebp - 0x34], eax
add eax, edi
push eax
push 0
push 2
push 0
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 0x12c], ecx
test ecx, ecx
jne 0x507845
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc
xor edx, edx
mov eax, edi
div dword [ebp - 0x30]
add edx, dword [ebp - 0x34]
push edx
push ebx
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x507899
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x29]
lea eax, [ebp - 0x28]
push eax
call fcn.00507360
push esi
push eax
call fcn.00505750
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
mov dword [esi + 0x13c], eax
mov dword [ecx], eax
mov ecx, esi
push dword [esi + 0x13c]
mov dword [esi + 0x128], 0
push dword [esi + 0x134]
call fcn.00507760
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x134]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50c320
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x50c333
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50c390
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x50c3a6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x50c4f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x50c582
mov ecx, edi
shr ecx, 4
push ebx
mov dword [ebp + 0xc], ecx
push esi
lea esi, [edx + 2]
mov ebx, 4
nop dword [eax + eax]
movsx ecx, byte [esi - 2]
lea esi, [esi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72c068]
movsx ecx, byte [esi - 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72c068]
movsx ecx, byte [esi - 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72c068]
movsx ecx, byte [esi - 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72c068]
sub ebx, 1
jne 0x50c520
add edx, 0x10
sub edi, 0x10
sub dword [ebp + 0xc], 1
jne 0x50c510
pop esi
pop ebx
test edi, edi
je 0x50c5a0
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72c068]
sub edi, 1
jne 0x50c586
not eax
pop edi
pop ebp
ret
Function at 0x50c870
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x50c89b
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x50c8c0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push ebx
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x50c92e
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push ebx
push esi
call fcn.0050c4f0
add esp, 8
mov ebx, eax
test esi, esi
je 0x50c91e
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50e6b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.0050e750
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.006540e0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
mov ecx, bind
cmp ebx, 1
setne al
push 0
add eax, 3
push 0x80
push eax
xor eax, eax
cmp ebx, 2
push 0
sete al
lea eax, [eax*2 + 1]
push eax
mov eax, 0xc0000000
cmovne eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x110], eax
cmp eax, 0xffffffff
je 0x50e737
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x114], eax
mov eax, 1
mov dword [edi + 4], ebx
pop edi
pop ebx
pop ebp
ret 8
mov dword [edi + 0x110], 0
xor eax, eax
pop edi
pop ebx
pop ebp
ret 8

Function at 0x524fa0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a67a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x73c280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CGraphicTextInstance.0
call fcn.00525370
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x525024
mov eax, dword [esi + 0x78]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x525005
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x52513f
mov ecx, edi
push edx
push ecx
call fcn.005c8a85
mov dword [esi + 0x70], 0
add esp, 8
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
lea ecx, [esi + 0x64]
call fcn.00524f10
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x52507f
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x525060
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x52513f
mov ecx, edi
push edx
push ecx
call fcn.005c8a85
mov dword [esi + 0x58], 0
add esp, 8
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x5250d2
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x5250b3
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x52513f
mov ecx, edi
push edx
push ecx
call fcn.005c8a85
mov dword [esi + 0x4c], 0
add esp, 8
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov ecx, dword [esi + 0x48]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x5250ec
call fcn.0053c160
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x34]
cmp ecx, 0xf
jbe 0x52511c
mov eax, dword [esi + 0x20]
inc ecx
cmp ecx, 0x1000
jb 0x525112
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52513f
mov eax, edx
push ecx
push eax
call fcn.005c8a85
add esp, 8
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0064e36a
int3
Function at 0x52caf0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call fcn.0052ca70
mov eax, dword [ebp + 8]
lea esi, [edi + 0x70]
push 0
push 1
push 2
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x6c], eax
cmp eax, 0xffffffff
je 0x52cb75
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.0053c350
push eax
push esi
push dword [edi + 0x6c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x52cb97
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x52cb97
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1d]
call fcn.0052c840
push eax
call fcn.00505930
add esp, 4
mov ecx, edi
call fcn.0052ca70
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.00659453
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, edx
cdq
add ecx, eax
mov al, 1
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 4]
adc esi, edx
mov dword [edi + 0xc], esi
xor ecx, ebp
pop edi
pop esi
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 8
Function at 0x52ce00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x52cf49
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x108], 1
push eax
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x52cf49
cmp byte [esi + 0x48], 0
lea ecx, [ebp - 0x108]
mov eax, dword [esi + 0x6c]
push ecx
push eax
jne 0x52cee8
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52ceb1
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x48], 1
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
push 0
call fcn.00659453
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x52cf49
jg 0x52cecb
cmp eax, dword [esi + 8]
jbe 0x52cf49
mov ecx, esi
call fcn.0052ca70
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52cf10
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x52cf10
mov ecx, esi
call fcn.0052d2c0
test al, al
jne 0x52cf10
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x52cf3b
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52cf2e
mov ecx, esi
call fcn.0052d180
test al, al
je 0x52cf3b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x52cf49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.0052ca70
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
Function at 0x52d180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x28]
lea edi, [esi + 0x24]
test edx, edx
jle 0x52d1ba
mov eax, dword [edi]
sub eax, edx
test eax, eax
jle 0x52d1ae
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00643a30
add esp, 0xc
mov eax, dword [esi + 0x28]
sub dword [edi], eax
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x20]
mov ecx, esi
sub eax, dword [edi]
mov dword [ebp - 4], eax
call fcn.0052cd00
test al, al
je 0x52d279
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x14]
mov edx, dword [ebx]
sub eax, edx
cmp eax, dword [ebp - 4]
cmovge eax, dword [ebp - 4]
test eax, eax
jle 0x52d2a5
push 0
push eax
mov eax, dword [esi + 0x10]
add eax, edx
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_recv
mov dword [ebp - 8], eax
test eax, eax
jns 0x52d21d
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x52d2b0
mov eax, dword [ebp - 8]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ecx
jmp 0x52d228
mov dword [ebp - 4], ebx
test eax, eax
je 0x52d2b0
add dword [ebx], eax
mov eax, dword [ebx]
cmp eax, 8
jl 0x52d2a5
and eax, 0xfffffff8
push eax
mov dword [ebp - 8], eax
lea eax, [esi + 0x5a]
push eax
mov eax, dword [esi + 0x1c]
push dword [esi + 0x10]
add eax, dword [edi]
push eax
call fcn.0050c410
add dword [edi], eax
add esp, 0x10
mov eax, dword [ebx]
mov edi, dword [ebp - 8]
cmp eax, edi
jle 0x52d26e
mov ecx, dword [esi + 0x10]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00643a30
mov ebx, dword [ebp - 4]
add esp, 0xc
sub dword [ebx], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x52d2a5
mov eax, dword [esi + 0x1c]
add eax, dword [edi]
push 0
push ecx
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_recv
mov esi, eax
test esi, esi
jns 0x52d2ae
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x52d2b0
add dword [edi], esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x52d2a3
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52d2c0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0052cd00
mov ecx, esi
test al, al
je 0x52d345
call fcn.0052d130
mov edi, eax
test edi, edi
jle 0x52d373
push edi
lea eax, [esi + 0x4a]
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 0x44]
push eax
call fcn.0050c470
mov ecx, dword [esi + 0x44]
add esp, 0x10
add dword [esi + 0x38], edi
add ecx, eax
mov dword [esi + 0x44], ecx
test ecx, ecx
jle 0x52d36c
push 0
push ecx
push dword [esi + 0x3c]
push dword [esi + 0x6c]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
js 0x52d364
mov eax, dword [esi + 0x44]
cmp eax, edi
jle 0x52d336
mov ecx, dword [esi + 0x3c]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00643a30
add esp, 0xc
sub dword [esi + 0x44], edi
mov ecx, esi
call fcn.0052d140
pop edi
mov al, 1
pop esi
ret
call fcn.0052d130
test eax, eax
jle 0x52d373
push 0
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x52d369
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.0052d140
pop edi
mov al, 1
pop esi
ret

Function at 0x52d830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a7b60
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x73c280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c8dfe
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x52e070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050c4f0

Function at 0x536ab0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x19], al
mov ecx, dword [ecx + 4]
test al, al
je 0x536acd
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x536d80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a800e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x73c280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0051ee70
mov dword [ebp - 4], 0
mov dword [edi + 4], vtable.CLightBase.0
mov eax, edi
mov dword [edi + 8], vtable.CSingleton_class_CLightManager_.0
mov dword [0x74f688], eax
mov dword [edi], vtable.CLightManager.0
lea esi, [edi + 0xc]
mov dword [edi + 4], vtable.CLightManager.1.0
mov dword [edi + 8], vtable.CLightManager.2.0
push 8
mov byte [ebp - 4], 2
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.005c8dfe
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea esi, [edi + 0x20]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c8dfe
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
unpcklps xmm0, xmm0
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x48], vtable.CDynamicPool_class_CLight_.0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
movq qword [edi + 0x34], xmm0
mov dword [edi + 0x3c], eax
mov eax, edi
mov dword [edi + 0x40], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x538100
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x7826d4], eax
cmp dword [0x7843fc], eax
je 0x53824e
push 8
lea ecx, [ebp - 0x18]
mov dword [0x7843fc], eax
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0053ae70
add esp, 0xc
mov dword [0x7843cc], eax
cmp dword [0x72c790], eax
je 0x53824e
push 0x7826d8
mov dword [0x72c790], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x7826d4]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x5381b8
sub eax, 0xd
je 0x5381a5
sub eax, 1
jne case.default.0x5381ca
mov byte [0x7826e2], al
mov dword [0x783bac], 0x72c772
jmp 0x538233
mov byte [0x7826e2], 1
mov dword [0x783bac], 0x72c778
jmp 0x538233
mov eax, ecx
mov byte [0x7826e2], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x5381ca
jmp dword [eax*4 + 0x53825c]
mov byte [0x7826e2], 0
mov dword [0x783bac], 0x72c766
jmp 0x538233
mov dword [0x783bac], 0x72c76c
jmp 0x538233
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x783bac], 0x72c760
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x783bac]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.0065fc73
movzx ecx, ax
add esp, 4
mov eax, dword [0x783bac]
mov word [eax + 2], cx
cmp dword [0x7843c8], 0x4e8
je 0x53824e
mov eax, dword [0x7843cc]
mov dword [0x7843c8], eax
call fcn.00538340
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
Function at 0x538a50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jae 0x538c9d
mov ecx, dword [0x7826d4]
cmp dword [0x7843f8], ecx
je 0x538ceb
cmp byte [0x7826ca], 0
mov eax, 0x404
mov dword [0x7843f8], ecx
je 0x538abb
cmp cx, ax
jne 0x538abb
mov dword [0x782788], 0x7000404
mov eax, 0x7000404
mov dword [0x78278c], 0
jmp 0x538c9f
cmp ecx, 0xe0080404
je 0x538ae7
cmp ecx, 0xe0090404
je 0x538ae7
cmp ecx, 0xe00a0404
je 0x538ae7
cmp ecx, 0xe00b0404
je 0x538ae7
cmp ecx, 0xe00e0804
jne 0x538c89
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x538c89
cmp dword [0x7826c0], 0
jne 0x538bae
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x404]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x538bae
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x538bae
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x538bae
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x538bae
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x538c89
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
movzx esi, word [0x7826d4]
mov ebx, eax
test ebx, ebx
je 0x538c89
call fcn.005c9510
mov eax, esp
push eax
push ebx
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x538c89
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x6ca664
push dword [ebp - 0x40c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x538c89
mov edx, dword [ebp - 0x410]
mov eax, dword [edx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
shl ecx, 8
cmp dword [0x7826c0], 0
jne 0x538cda
mov eax, 0x404
cmp si, ax
jne 0x538cb8
cmp ecx, 0x4020000
je 0x538cda
cmp ecx, 0x4030000
je 0x538cda
cmp ecx, 0x4040000
je 0x538cda
cmp ecx, 0x5000000
je 0x538cda
cmp ecx, 0x5010000
je 0x538cda
cmp ecx, 0x5020000
je 0x538cda
cmp ecx, 0x6000000
je 0x538cda
mov dword [0x78278c], 0
mov dword [0x782788], 0
xor eax, eax
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 4
mov eax, 0x804
cmp si, ax
jne 0x538c89
cmp ecx, 0x4010000
je 0x538cda
cmp ecx, 0x4020000
je 0x538cda
cmp ecx, 0x5030000
jne 0x538c89
mov eax, esi
or eax, ecx
mov dword [0x782788], eax
mov eax, dword [edx + 0xc]
mov dword [0x78278c], eax
mov eax, dword [edi*4 + 0x782788]
jmp 0x538c9f