joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499ee0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, dword [esp + 0x410]
push esi
lea eax, [esp + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 8]
dec edx
cmp byte [eax + edx], 0x5c
je 0x499f42
push edi
lea edi, [esp + 0xc]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x499f30
mov ax, word [0x60d800]
mov word [edi], ax
pop edi
lea eax, [esp + 8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x499f47
mov ecx, dword [str.metin2client.dat]
mov edx, dword [0x60d7f0]
mov dword [eax], ecx
mov ecx, dword [0x60d7f4]
mov dword [eax + 4], edx
mov edx, dword [0x60d7f8]
mov dword [eax + 8], ecx
mov cl, byte [0x60d7fc]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
call fcn.00481020
lea edx, [esp + 0x308]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x499f87
push 7
lea edx, [esp + 0x30c]
push str.locale_
push edx
call fcn.005a3a34
add esp, 0xc
test eax, eax
jne 0x499fca
call fcn.00481020
add eax, 7
lea edx, [esp + 0x308]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x499fc0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 8]
push eax
push 0x1ff
lea ecx, [esp + 0x110]
push ecx
push 0
push ebx
lea edx, [esp + 0x31c]
push edx
call esi
cmp byte [esp + 0x108], 0
jne 0x49a060
mov ecx, dword [esp + 0x410]
mov edx, dword [0x67fc7c]
push 0x1ff
lea eax, [esp + 0x10c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [esp + 0x108], 0
jne 0x49a060
lea eax, [esp + 8]
push eax
push 0x1ff
lea ecx, [esp + 0x110]
push ecx
push 0
push ebx
push 0x60d7e0
call esi
cmp byte [esp + 0x108], 0
jne 0x49a060
lea edx, [esp + 0x108]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x49a056
lea edx, [esp + 0x410]
push edx
mov ecx, 0x67fc80
call fcn.0045f3d0
mov esi, eax
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49a080
sub eax, edx
push eax
lea eax, [esp + 0x10c]
push eax
mov ecx, esi
call fcn.00403f00
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005a09eb
add esp, 0x404
ret
Function at 0x4a83d0
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a83e0
sub eax, edx
mov edx, eax
mov eax, 0x1505
mov ecx, 0
je 0x4a8416
push ebx
push edi
lea esp, [esp]
movsx edi, byte [ecx + esi]
mov ebx, eax
shl ebx, 5
add ebx, eax
add edi, ebx
inc ecx
mov eax, edi
cmp ecx, edx
jb 0x4a8400
pop edi
pop ebx
pop esi
ret

Function at 0x4a8870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ed48e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CItemManager.0
mov dword [esp + 0x18], 2
call fcn.004a8470
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x4a88be
push eax
call fcn.0059fc2a
add esp, 4
mov eax, dword [esi + 0x24]
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.0059fc2a
add esp, 4
lea ecx, [esi + 4]
mov byte [esp + 0x18], bl
call fcn.0049c5a0
mov dword [esi], vtable.CSingleton_class_CItemManager_.0
mov dword [0x67acfc], ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4c3480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f5348
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0044a600
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.00524380
add esp, 0xc
test al, al
jne 0x4c34ed
lea ecx, [esp + 8]
call fcn.00541a50
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
add esi, 0xd0
lea edx, [esp + 8]
push esi
push edx
call fcn.00524940
add esp, 8
lea ecx, [esp + 8]
call fcn.00541a50
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
Function at 0x4c4750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5ef6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
cmp dword [eax], 0x54525059
mov edi, ecx
mov ecx, dword [esp + 0x88]
jne 0x4c495f
cmp byte [eax + 4], 0xd
lea esi, [eax + 4]
jne 0x4c4951
cmp byte [esi + 1], 0xa
jne 0x4c4951
lea ecx, [esp + 0x14]
add esi, 2
call fcn.0044a600
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], ebx
call fcn.0051d480
mov eax, dword [esp + 0x84]
push esi
add eax, 0xfffffffa
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 1
call fcn.0051d9d0
push ebx
lea ecx, [esp + 0x30]
call fcn.0051d440
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.004046b0
cmp dword [esi + 0x18], 0x10
jb 0x4c4810
mov esi, dword [esi + 4]
jmp 0x4c4813
add esi, 4
push esi
call fcn.005a13d7
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov ebp, 1
call fcn.0051d420
cmp eax, ebp
jbe 0x4c4937
push 0x60fea4
lea ecx, [esp + 0x18]
push ecx
push ebp
lea ecx, [esp + 0x38]
call fcn.0051d7d0
test al, al
je 0x4c4925
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4c4873
call fcn.005a01dd
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0051db40
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
jne 0x4c48a2
call fcn.005a01dd
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.004046b0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x78], 2
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x4c48d9
call fcn.005a01dd
mov eax, dword [esp + 0x14]
push esi
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x20]
call fcn.004c45c0
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x4c4900
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.004c4640
mov byte [esp + 0x78], 1
cmp dword [esp + 0x68], esi
jb 0x4c4925
mov edx, dword [esp + 0x54]
push edx
call fcn.0059fc2a
add esp, 4
lea ecx, [esp + 0x2c]
inc ebp
call fcn.0051d420
cmp ebp, eax
jb 0x4c4835
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], bl
call fcn.0051d4a0
lea ecx, [esp + 0x14]
call fcn.0041d700
mov al, 1
jmp 0x4c4961
push ecx
push str.CProperty::ReadFromMemory:_File_format_error_after_FourCC:__s_n
call fcn.00519180
add esp, 8
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005a09eb
add esp, 0x68
ret 0xc
Function at 0x4f95f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
push edi
test ecx, ecx
jle 0x4f9622
mov eax, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x4f9615
mov edx, dword [esi + 0x1c]
push eax
lea eax, [edx + ecx]
push eax
push edx
call fcn.005a4a10
add esp, 0xc
mov ecx, dword [esi + 0x28]
sub dword [esi + 0x24], ecx
mov dword [esi + 0x28], 0
mov ecx, esi
call fcn.004f9520
test al, al
mov eax, dword [esi + 0x20]
je 0x4f96c3
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
sub eax, dword [esi + 0x24]
sub ecx, edx
cmp ecx, eax
jge 0x4f9645
mov eax, ecx
test eax, eax
jle 0x4f96fe
mov ecx, dword [esi + 0x6c]
push 0
push eax
mov eax, dword [esi + 0x10]
add eax, edx
push eax
push ecx
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jge 0x4f9676
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4f9678
pop edi
xor al, al
pop esi
ret
je 0x4f9671
add dword [esi + 0x14], edi
mov edi, dword [esi + 0x14]
cmp edi, 8
jl 0x4f96fe
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
add ecx, dword [esi + 0x24]
and edi, 0xfffffff8
push edi
lea edx, [esi + 0x5a]
push edx
push eax
push ecx
call fcn.0051e140
add dword [esi + 0x24], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp eax, edi
jle 0x4f96bb
mov ecx, dword [esi + 0x10]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.005a4a10
add esp, 0xc
sub dword [esi + 0x14], edi
pop edi
mov al, 1
pop esi
ret
mov ecx, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x4f96fe
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [esi + 0x6c]
push eax
push ecx
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jge 0x4f96f5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4f96fb
pop edi
xor al, al
pop esi
ret
je 0x4f9671
add dword [esi + 0x24], edi
pop edi
mov al, 1
pop esi
ret

Function at 0x4f9920
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004f9520
test al, al
je 0x4f99a8
call fcn.004f9860
mov edi, eax
test edi, edi
jle 0x4f99d2
mov ecx, dword [esi + 0x2c]
add ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
add edx, dword [esi + 0x44]
push edi
lea eax, [esi + 0x4a]
push eax
push ecx
push edx
call fcn.0051e0d0
add dword [esi + 0x44], eax
mov eax, dword [esi + 0x44]
add dword [esi + 0x38], edi
add esp, 0x10
test eax, eax
jle 0x4f99cb
mov ecx, dword [esi + 0x6c]
push 0
push eax
mov eax, dword [esi + 0x3c]
push eax
push ecx
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jge 0x4f997f
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x44]
cmp eax, edi
jle 0x4f9999
mov ecx, dword [esi + 0x3c]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.005a4a10
add esp, 0xc
sub dword [esi + 0x44], edi
mov ecx, esi
call fcn.004f9710
pop edi
mov al, 1
pop esi
ret
call fcn.004f9860
test eax, eax
jle 0x4f99d2
mov ecx, dword [esi + 0x6c]
push 0
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push eax
push ecx
call sub.WS2_32.dll_send
test eax, eax
jl 0x4f997a
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.004f9710
pop edi
mov al, 1
pop esi
ret
Function at 0x4f99e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x4f9b2d
mov dword [esp + 0x114], eax
mov dword [esp + 0x10], eax
mov ecx, 1
lea eax, [esp + 4]
push eax
push 0
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x4f9b2d
cmp byte [esi + 0x48], 0
jne 0x4f9aa7
mov ecx, dword [esi + 0x6c]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4f9a71
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov byte [esi + 0x48], 1
call eax
pop esi
add esp, 0x210
ret
push 0
call fcn.005a48f7
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x4f9b2d
jg 0x4f9a8f
cmp eax, dword [esi + 8]
jbe 0x4f9b2d
mov ecx, esi
call fcn.004f9750
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4f9af0
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x4f9af0
mov ecx, esi
call fcn.004f9920
test al, al
jne 0x4f9af0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4f9af0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, esi
call fcn.004f9750
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x110]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4f9b10
mov ecx, esi
call fcn.004f95f0
test al, al
je 0x4f9b1d
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
test al, al
jne 0x4f9b2d
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov ecx, esi
call fcn.004f9750
pop esi
add esp, 0x210
ret
Function at 0x4f9b50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.004f9750
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 4]
lea edi, [esi + 0x70]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
push 0
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
push 1
push 2
mov dword [edi + 0xc], edx
call sub.WS2_32.dll_socket
mov dword [esi + 0x6c], eax
cmp eax, 0xffffffff
je 0x4f9bd3
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_ioctlsocket
mov ecx, edi
call fcn.00566010
mov edx, dword [esi + 0x6c]
push eax
push edi
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4f9beb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4f9beb
push str.error___WSAEWOULDBLOCK
call fcn.00519080
add esp, 4
mov ecx, esi
call fcn.004f9750
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
call fcn.005a48f7
mov ecx, eax
mov eax, dword [esp + 0x18]
mov edi, edx
cdq
add esp, 4
add ecx, eax
adc edi, edx
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 8], ecx
mov al, 1
pop esi
pop ecx
ret 8

Function at 0x4f9e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5f1b29
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x70]
mov dword [esi], vtable.CNetworkStream.0
call fcn.005092e0
lea edi, [esi + 0x88]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.0044a600
push ebx
push 0x8000
mov ecx, edi
mov byte [esp + 0x24], 1
mov dword [esi + 0x6c], 0xffffffff
mov byte [esi + 0x49], bl
mov byte [esi + 0x48], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x80], ebx
mov byte [esi + 0x84], bl
call fcn.00480220
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
jne 0x4f9f20
call fcn.005a01dd
mov ecx, dword [edi + 0xc]
push 0x8000
push 0x659e88
push ecx
call fcn.005a02a0
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4fb1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f1be8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x4fb228
mov eax, dword [eax + 4]
jmp 0x4fb22b
add eax, 4
push ecx
push eax
call fcn.004fa250
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call fcn.0041d750
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x20]
mov dword [esp + 0x40], 0
call fcn.004fae00
lea ecx, [esp + 0x18]
call fcn.0041d700
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 8
Function at 0x4fe870
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 4]
mov byte [ecx + 0x19], al
test al, al
je 0x4fe88a
mov eax, dword [ecx + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov ecx, dword [ecx + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4

Function at 0x4ffd70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f212f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004efd90
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esi + 4], vtable.CLightBase.0
mov eax, esi
mov dword [esi + 8], vtable.CSingleton_class_CLightManager_.0
mov dword [0x6b6778], eax
push 4
mov byte [esp + 0x30], 2
mov dword [esi], vtable.CLightManager.2.0
mov dword [esi + 4], vtable.CLightManager.1.0
mov dword [esi + 8], vtable.CLightManager.0
lea edi, [esi + 0xc]
call fcn.005a01ed
add esp, 4
cmp eax, ebx
je 0x4ffdea
mov dword [eax], edi
jmp 0x4ffdec
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x17]
mov ebx, 3
lea ecx, [esi + 0x2c]
push eax
mov byte [esp + 0x34], bl
call fcn.004ba840
lea ecx, [esi + 0x4c]
mov byte [esp + 0x2c], 4
call fcn.0044a600
lea ecx, [esi + 0x78]
mov byte [esp + 0x2c], 5
call fcn.004ffb40
fldz
fst dword [esp + 0x18]
mov dword [esi + 0x70], ebx
mov ecx, dword [esp + 0x18]
fst dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x5007a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [0x6b7c5c]
cmp ecx, 0xe00e0804
je 0x5008e7
cmp ecx, 0xe0090404
je 0x5008e7
mov eax, dword [0x6b8490]
test eax, eax
je 0x5008e7
push ebx
mov edx, 0x404
xor bl, bl
cmp cx, dx
jne 0x5008fe
push ebp
push esi
push edi
mov ecx, 0xa
mov esi, str.softwaremicrosoftwindowscurrentversion_
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
and eax, 0xffff0000
movsw word es:[edi], word [esi]
mov ebp, eax
movsb byte es:[edi], byte [esi]
mov eax, str.MSTCIPH
cmp ebp, 0x5010000
jae 0x50081f
mov eax, str.TINTLGNT
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x500821
lea edi, [esp + 0x20]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x500830
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
push eax
and ecx, 3
push 0x20019
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x2c]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5008cc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Keyboard_Mapping
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5008c1
mov al, byte [esp + 0x14]
cmp ebp, 0x5000000
ja 0x5008a9
cmp al, 0x22
je 0x5008bf
cmp al, 0x23
je 0x5008bf
cmp ebp, 0x5010000
je 0x5008b9
cmp ebp, 0x5020000
jne 0x5008c1
sub al, 0x22
cmp al, 2
ja 0x5008c1
mov bl, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005a09eb
add esp, 0x118
ret
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005a09eb
add esp, 0x118
ret
mov ecx, dword [esp + 0x118]
mov al, bl
pop ebx
xor ecx, esp
call fcn.005a09eb
add esp, 0x118
ret
Function at 0x500ae0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x18
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x6b7c5c], eax
cmp dword [0x6b84e4], eax
je 0x500c2a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 8
lea ecx, [esp + 0x14]
push ecx
movzx edx, ax
push 0x1004
push edx
mov dword [0x6b84e4], eax
call esi
lea edx, [esp + 0x10]
call fcn.00500a50
mov dword [0x6b84a0], eax
cmp dword [0x662204], eax
je 0x500c29
push 0x6b7bbc
mov dword [0x662204], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x6b7c5c]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x500b93
sub eax, 0xd
je 0x500b80
sub eax, 1
jne case.default.0x500ba5
mov byte [0x6b6796], al
mov dword [0x6b6790], 0x6621e6
jmp 0x500c0c
mov byte [0x6b6796], 1
mov dword [0x6b6790], 0x6621ec
jmp 0x500c0c
mov eax, ecx
shr eax, 0xa
dec eax
mov byte [0x6b6796], 1
cmp eax, 4
ja case.default.0x500ba5
jmp dword [eax*4 + 0x500c3c]
mov byte [0x6b6796], 0
mov dword [0x6b6790], 0x6621da
jmp 0x500c0c
mov dword [0x6b6790], 0x6621e0
jmp 0x500c0c
push 0xa
lea edx, [esp + 8]
push edx
push 3
push ecx
mov dword [0x6b6790], 0x6621d4
call esi
movsx ax, byte [esp + 4]
mov ecx, dword [0x6b6790]
mov word [ecx], ax
movsx dx, byte [esp + 5]
movzx eax, dx
push eax
call fcn.005a4e2a
mov ecx, dword [0x6b6790]
add esp, 4
mov word [ecx + 2], ax
cmp dword [0x6b849c], 0x4e8
je 0x500c29
mov edx, dword [0x6b84a0]
mov dword [0x6b849c], edx
call fcn.00500000
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005a09eb
add esp, 0x18
ret
Function at 0x501bb0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x10c
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x108], eax
cmp byte [0x6b8488], 0
mov eax, dword [esp + 0x110]
push edi
mov edi, ecx
jne 0x501d83
cmp byte [0x6b84cc], 0
mov dword [0x6b7c60], eax
jne 0x501c17
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x501c17
push 0x6b84c8
push 0x6121dc
push 1
push 0
push 0x629548
mov byte [0x6b84cc], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x6b7bc8
mov dword [0x6b7bc8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x105
lea eax, [esp + 8]
push eax
mov byte [0x6b8489], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x501cfd
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x501c50
mov ecx, dword [str.imm32.dll]
mov edx, dword [0x61242c]
mov dword [eax], ecx
mov cx, word [0x612430]
mov dword [eax + 4], edx
mov dl, byte [0x612432]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6b7bb8], eax
test eax, eax
je 0x501cf6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmLockIMC
push eax
call esi
mov ecx, dword [0x6b7bb8]
push str.ImmUnlockIMC
push ecx
mov dword [0x6b7c78], eax
call esi
mov edx, dword [0x6b7bb8]
push str.ImmLockIMCC
push edx
mov dword [0x6b7c74], eax
call esi
mov dword [0x6b7c70], eax
mov eax, dword [0x6b7bb8]
push str.ImmUnlockIMCC
push eax
call esi
mov ecx, dword [0x6b7bb8]
push str.ImmDisableTextFrameService
push ecx
mov dword [0x6b7c6c], eax
call esi
pop esi
test eax, eax
je 0x501cfd
push 0xffffffffffffffff
call eax
jmp 0x501cfd
mov byte [0x6b8489], 1
mov edx, dword [0x6b7c60]
push edx
mov byte [0x6b8488], 1
call sub.IMM32.dll_ImmGetContext
push eax
mov dword [edi + 4], eax
mov eax, dword [0x6b7c60]
push eax
call sub.IMM32.dll_ImmReleaseContext
call fcn.00500ae0
call fcn.00501530
push 2
call fcn.00501560
add esp, 4
call fcn.00501a60
test eax, eax
setne cl
mov byte [0x6b848b], cl
call fcn.00500c50
cmp byte [0x6b848b], 0
je 0x501d83
mov edx, dword [0x6b7c5c]
and edx, 0x3ff
cmp edx, 4
jne 0x501d72
call fcn.00501040
mov byte [0x6b848d], 1
test eax, eax
jne 0x501d79
mov byte [0x6b848d], 0
push 0
call fcn.00501720
add esp, 4
mov ecx, dword [esp + 0x10c]
pop edi
xor ecx, esp
mov al, 1
call fcn.005a09eb
add esp, 0x10c
ret 4