joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f55f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f561b
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 0x4f5640
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 0x4f56ae
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.004f5270
add esp, 8
mov ebx, eax
test esi, esi
je 0x4f569e
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 0x4f6bd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.004f6c70
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.005e3750
mov ebx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
mov ecx, connect
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 0x4f6c57
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 0x4fe5c0
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 0x4fe5dd
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 0x50ae20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634d10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6d5600]
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.0050b0a0
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x50aea4
mov eax, dword [esi + 0x78]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x50ae85
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50afbf
mov ecx, edi
push edx
push ecx
call fcn.005994f5
mov dword [esi + 0x70], 0
add esp, 8
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
lea ecx, [esi + 0x64]
call fcn.0050ad90
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x50aeff
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x50aee0
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50afbf
mov ecx, edi
push edx
push ecx
call fcn.005994f5
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 0x50af52
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x50af33
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50afbf
mov ecx, edi
push edx
push ecx
call fcn.005994f5
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 0x50af6c
call fcn.0051e1e0
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x34]
cmp ecx, 0x10
jb 0x50af9c
mov eax, dword [esi + 0x20]
inc ecx
cmp ecx, 0x1000
jb 0x50af92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50afbf
mov eax, edx
push ecx
push eax
call fcn.005994f5
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.005e01aa
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c4a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d5600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.00609260
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
call fcn.0051e3b0
mov dword [esi + 0x3c], 0
mov eax, esi
mov dword [esi + 0x5c], 0xffffffff
mov byte [esi + 0x48], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x510900
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
push ecx
push esi
push edi
mov edi, ecx
call fcn.00510890
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
cmp byte [0x6ea535], 0
je 0x51093d
cmp dword [0x6c2dac], 0x10
mov eax, 0x6c2d98
mov ecx, esi
cmovae eax, dword [0x6c2d98]
push eax
call fcn.0051e470
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x510995
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.0051e3d0
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x5109ad
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5109ad
push str.error___WSAEWOULDBLOCK
call fcn.004ef3a0
add esp, 4
mov ecx, edi
call fcn.00510890
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.005e94b0
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
adc esi, edx
mov dword [edi + 0xc], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x510bc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x510d09
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 0x510d09
cmp byte [esi + 0x48], 0
lea ecx, [ebp - 0x108]
mov eax, dword [esi + 0x5c]
push ecx
push eax
jne 0x510ca8
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x510c71
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.005994b1
mov esp, ebp
pop ebp
ret
push 0
call fcn.005e94b0
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x510d09
jg 0x510c8b
cmp eax, dword [esi + 8]
jbe 0x510d09
mov ecx, esi
call fcn.00510890
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x510cd0
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x510cd0
mov ecx, esi
call fcn.00510fb0
test al, al
jne 0x510cd0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x510cfb
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x510cee
mov ecx, esi
call fcn.00510ef0
test al, al
je 0x510cfb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x510d09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.00510890
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005994b1
mov esp, ebp
pop ebp
ret
Function at 0x510ef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x28]
lea esi, [edi + 0x24]
test edx, edx
jle 0x510f28
mov eax, dword [esi]
sub eax, edx
test eax, eax
jle 0x510f1c
mov ecx, dword [edi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.005d5670
add esp, 0xc
mov eax, dword [edi + 0x28]
sub dword [esi], eax
mov dword [edi + 0x28], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [esi]
sub eax, ecx
test eax, eax
jle 0x510f99
push 0
push eax
mov eax, dword [edi + 0x1c]
add eax, ecx
push eax
push dword [edi + 0x5c]
call sub.WS2_32.dll_recv
mov dword [ebp - 4], eax
test eax, eax
jns 0x510f89
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x510f8b
mov ecx, edi
call fcn.00510b10
test al, al
je 0x510f94
mov edx, dword [edi + 0x1c]
add edx, dword [esi]
cmp byte [edi + 0x4c], 0
je 0x510f94
mov ecx, dword [edi + 0x54]
mov edi, dword [ebp - 4]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
add dword [esi], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x510f57
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
add dword [esi], edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00510ea0
mov edi, eax
test edi, edi
jle 0x511009
mov ecx, esi
call fcn.00510b10
test al, al
je 0x510fe4
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x510fe4
mov ecx, dword [esi + 0x50]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push 0
push edi
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x510fff
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00510eb0
pop edi
mov al, 1
pop esi
ret

Function at 0x5114d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c560
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6d5600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
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.00599754
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 0x511ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f5270
Function at 0x519430
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c97e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x6d5600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00505db0
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 [0x6ec00c], 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.00599754
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.00599754
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 0x51a7c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x71f03c], eax
cmp dword [0x720d64], eax
je 0x51a90e
push 8
lea ecx, [ebp - 0x18]
mov dword [0x720d64], 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.0051d540
add esp, 0xc
mov dword [0x720d34], eax
cmp dword [0x6c5bd0], eax
je 0x51a90e
push 0x71f040
mov dword [0x6c5bd0], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x71f03c]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x51a878
sub eax, 0xd
je 0x51a865
sub eax, 1
jne case.default.0x51a88a
mov byte [0x71f04a], al
mov dword [0x720514], 0x6c5bb2
jmp 0x51a8f3
mov byte [0x71f04a], 1
mov dword [0x720514], 0x6c5bb8
jmp 0x51a8f3
mov eax, ecx
mov byte [0x71f04a], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x51a88a
jmp dword [eax*4 + 0x51a91c]
mov byte [0x71f04a], 0
mov dword [0x720514], 0x6c5ba6
jmp 0x51a8f3
mov dword [0x720514], 0x6c5bac
jmp 0x51a8f3
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x720514], 0x6c5ba0
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x720514]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.005edfdb
movzx ecx, ax
add esp, 4
mov eax, dword [0x720514]
mov word [eax + 2], cx
cmp dword [0x720d30], 0x4e8
je 0x51a90e
mov eax, dword [0x720d34]
mov dword [0x720d30], eax
call fcn.0051aa00
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
Function at 0x51b100
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jae 0x51b34d
mov ecx, dword [0x71f03c]
cmp dword [0x720d60], ecx
je 0x51b39b
cmp byte [0x71f032], 0
mov eax, 0x404
mov dword [0x720d60], ecx
je 0x51b16b
cmp cx, ax
jne 0x51b16b
mov dword [0x71f0ec], 0x7000404
mov eax, 0x7000404
mov dword [0x71f0f0], 0
jmp 0x51b34f
cmp ecx, 0xe0080404
je 0x51b197
cmp ecx, 0xe0090404
je 0x51b197
cmp ecx, 0xe00a0404
je 0x51b197
cmp ecx, 0xe00b0404
je 0x51b197
cmp ecx, 0xe00e0804
jne 0x51b339
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x51b339
cmp dword [0x71f028], 0
jne 0x51b25e
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 0x51b25e
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51b25e
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51b25e
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51b25e
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x51b339
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
movzx esi, word [0x71f03c]
mov ebx, eax
test ebx, ebx
je 0x51b339
call fcn.00599ff0
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 0x51b339
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x663c48
push dword [ebp - 0x40c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51b339
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 [0x71f028], 0
jne 0x51b38a
mov eax, 0x404
cmp si, ax
jne 0x51b368
cmp ecx, 0x4020000
je 0x51b38a
cmp ecx, 0x4030000
je 0x51b38a
cmp ecx, 0x4040000
je 0x51b38a
cmp ecx, 0x5000000
je 0x51b38a
cmp ecx, 0x5010000
je 0x51b38a
cmp ecx, 0x5020000
je 0x51b38a
cmp ecx, 0x6000000
je 0x51b38a
mov dword [0x71f0f0], 0
mov dword [0x71f0ec], 0
xor eax, eax
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4
mov eax, 0x804
cmp si, ax
jne 0x51b339
cmp ecx, 0x4010000
je 0x51b38a
cmp ecx, 0x4020000
je 0x51b38a
cmp ecx, 0x5030000
jne 0x51b339
mov eax, esi
or eax, ecx
mov dword [0x71f0ec], eax
mov eax, dword [edx + 0xc]
mov dword [0x71f0f0], eax
mov eax, dword [edi*4 + 0x71f0ec]
jmp 0x51b34f
Function at 0x51b4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x71f03c]
push ebx
cmp eax, 0xe00e0804
je 0x51b67e
cmp eax, 0xe0090404
je 0x51b67e
mov ebx, dword [0x71f0ec]
test ebx, ebx
je 0x51b67e
xor cl, cl
mov edx, 0x404
mov byte [ebp - 0x109], cl
cmp ax, dx
jne 0x51b66d
movups xmm0, xmmword [str.softwaremicrosoftwindowscurrentversion_]
mov ax, word [0x6661bc]
and ebx, 0xffff0000
mov word [ebp - 0xe0], ax
cmp ebx, 0x5010000
mov al, byte [0x6661be]
mov edx, str.MSTCIPH
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xde], al
mov eax, str.TINTLGNT
movups xmm0, xmmword [0x6661a4]
push esi
cmovb edx, eax
movups xmmword [ebp - 0xf8], xmm0
mov esi, edx
movq xmm0, qword [0x6661b4]
push edi
movq qword [ebp - 0xe8], xmm0
mov al, byte [edx]
inc edx
test al, al
jne 0x51b564
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x51b574
mov ecx, edx
lea eax, [ebp - 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
mov ecx, edx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x51b658
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push str.Keyboard_Mapping
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51b635
mov eax, dword [ebp - 0x118]
cmp ebx, 0x5000000
ja 0x51b600
cmp al, 0x22
je 0x51b616
cmp al, 0x23
je 0x51b616
cmp ebx, 0x5010000
je 0x51b610
cmp ebx, 0x5020000
jne 0x51b635
sub al, 0x22
cmp al, 2
ja 0x51b635
push dword [ebp - 0x110]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x110]
mov bl, byte [ebp - 0x109]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x109]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.005994b1
mov esp, ebp
pop ebp
ret
Function at 0x51b8a0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x71f030], 0
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
jne 0x51ba68
cmp byte [0x720d48], 0
mov dword [0x71f038], eax
jne 0x51b902
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x51b902
push 0x720d44
push 0x6660c4
push 1
push 0
push 0x68d8c0
mov byte [0x720d48], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x71f050
mov dword [0x71f050], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x105
lea eax, [ebp - 0x10c]
mov byte [0x71f031], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x51b9ea
lea ecx, [ebp - 0x10c]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x51b940
mov eax, dword [0x6660d4]
mov dword [ecx], eax
mov eax, dword [0x6660d8]
mov dword [ecx + 4], eax
mov ax, word [0x6660dc]
mov word [ecx + 8], ax
mov al, byte [0x6660de]
mov byte [ecx + 0xa], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x71f04c], eax
test eax, eax
je 0x51b9e3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmLockIMC
push eax
call esi
push str.ImmUnlockIMC
push dword [0x71f04c]
mov dword [0x71f018], eax
call esi
push str.ImmLockIMCC
push dword [0x71f04c]
mov dword [0x71f01c], eax
call esi
push str.ImmUnlockIMCC
push dword [0x71f04c]
mov dword [0x71f020], eax
call esi
push str.ImmDisableTextFrameService
push dword [0x71f04c]
mov dword [0x71f024], eax
call esi
pop esi
test eax, eax
je 0x51b9ea
push 0xffffffffffffffff
call eax
jmp 0x51b9ea
mov byte [0x71f031], 1
push dword [0x71f038]
mov byte [0x71f030], 1
call sub.IMM32.dll_ImmGetContext
push eax
mov dword [edi + 4], eax
push dword [0x71f038]
call sub.IMM32.dll_ImmReleaseContext
call fcn.0051a7c0
call fcn.0051a790
push 2
call fcn.0051ca00
add esp, 4
call fcn.0051cdb0
test eax, eax
setne byte [0x71f032]
call fcn.0051a930
cmp byte [0x71f032], 0
je 0x51ba68
mov eax, dword [0x71f03c]
and eax, 0x3ff
cmp eax, 4
jne 0x51ba57
call fcn.0051ab70
test eax, eax
je 0x51ba57
mov al, 1
jmp 0x51ba59
xor al, al
push 0
mov byte [0x71f035], al
call fcn.0051cf70
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4