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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x130], ecx
test eax, eax
jne 0x4c63bf
mov eax, dword [esi + 0x114]
mov dword [esi + 0x134], eax
add eax, ecx
cmp eax, dword [esi + 0x114]
jbe 0x4c63d8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esi + 0x130]
xor edx, edx
mov ecx, dword [ebp - 8]
mov eax, edi
div ecx
mov eax, dword [esi + 0x134]
mov ebx, edi
push 0
mov dword [ebp + 0x10], eax
sub ebx, edx
add eax, edi
mov dword [ebp + 0xc], ecx
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 0x4c643c
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor edx, edx
mov eax, edi
div dword [ebp + 0xc]
add edx, dword [ebp + 0x10]
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 0x4c647c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.004c3020
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
sub eax, ebx
lea ecx, [eax + edi]
mov eax, dword [ebp + 8]
mov dword [esi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, esi
push dword [esi + 0x13c]
mov dword [esi + 0x128], 0
push dword [esi + 0x134]
call fcn.004c6380
mov eax, dword [esi + 0x134]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c8fc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.004c9060
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.005afbb0
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 0x4c9047
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 0x4d1b70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608716
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6963c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.005d7c60
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
call fcn.004ef850
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x3c], 0
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 dword [esi + 0x70], 0
mov byte [esi + 0x74], 0
mov eax, dword [esi + 0x7c]
mov byte [ebp - 4], 2
cmp eax, 0x8000
ja 0x4d1c94
jae 0x4d1c9b
cmp dword [esi + 0x80], 0x8000
jae 0x4d1c86
lea eax, [ebp - 0xd]
push eax
push 0x8000
lea ecx, [esi + 0x78]
call fcn.0044c530
jmp 0x4d1c9b
push 0x8000
push eax
call fcn.0044c620
add esp, 8
mov dword [esi + 0x7c], 0x8000
push 0x8000
push 0x67b7f8
push dword [esi + 0x78]
call fcn.005a54d0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d1ec0
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.004d1e40
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x4d1f31
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.004ef870
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4d1f49
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d1f49
push str.error___WSAEWOULDBLOCK
call fcn.004c3200
add esp, 4
mov ecx, edi
call fcn.004d1e40
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.005b95ff
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 0x4d2150
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6963c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x4d2299
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 0x4d2299
cmp byte [esi + 0x48], 0
lea ecx, [ebp - 0x108]
mov eax, dword [esi + 0x5c]
push ecx
push eax
jne 0x4d2238
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d2201
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.00569c25
mov esp, ebp
pop ebp
ret
push 0
call fcn.005b95ff
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x4d2299
jg 0x4d221b
cmp eax, dword [esi + 8]
jbe 0x4d2299
mov ecx, esi
call fcn.004d1e40
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00569c25
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d2260
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x4d2260
mov ecx, esi
call fcn.004d25b0
test al, al
jne 0x4d2260
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4d228b
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d227e
mov ecx, esi
call fcn.004d24e0
test al, al
je 0x4d228b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4d2299
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.004d1e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00569c25
mov esp, ebp
pop ebp
ret
Function at 0x4d24e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x28]
lea esi, [edi + 0x24]
test edx, edx
jle 0x4d251a
mov eax, dword [esi]
sub eax, edx
test eax, eax
jle 0x4d250e
mov ecx, dword [edi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.005a54d0
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 0x4d2599
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 0x4d2584
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4d258b
lea eax, [edi + 0x24]
mov dword [ebp - 8], eax
mov ecx, edi
call fcn.004d20a0
test al, al
je 0x4d2594
mov edx, dword [edi + 0x1c]
add edx, dword [esi]
cmp byte [edi + 0x4c], 0
je 0x4d2594
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]
mov esi, dword [ebp - 8]
mov al, 1
add dword [esi], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], esi
test eax, eax
jne 0x4d254f
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 0x4d25b0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004d2490
mov edi, eax
test edi, edi
jle 0x4d2609
mov ecx, esi
call fcn.004d20a0
test al, al
je 0x4d25e4
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x4d25e4
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 0x4d25ff
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.004d24a0
pop edi
mov al, 1
pop esi
ret

Function at 0x4db0e0
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 0x4db0fd
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 0x4db7c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608c1e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6963c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004da200
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 [0x6abf6c], 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.00569c41
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.00569c41
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, edi
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
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
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 0x4de590
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608150
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6963c0]
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.004de7c0
lea ecx, [esi + 0x64]
call fcn.004de500
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4de61c
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x4de5fd
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4de6dc
mov ecx, edi
push edx
push ecx
call fcn.00569c33
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 0x4de66f
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x4de650
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4de6dc
mov ecx, edi
push edx
push ecx
call fcn.00569c33
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 0x4de689
call fcn.004d4e70
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x34]
cmp ecx, 0xf
jbe 0x4de6b9
mov eax, dword [esi + 0x20]
inc ecx
cmp ecx, 0x1000
jb 0x4de6af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4de6dc
mov eax, edx
push ecx
push eax
call fcn.00569c33
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.005afb50
int3
Function at 0x4e1cb0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6963c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x6deae4], eax
cmp dword [0x6e080c], eax
je 0x4e1dfe
push 8
lea ecx, [ebp - 0x18]
mov dword [0x6e080c], 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.004e4ad0
add esp, 0xc
mov dword [0x6e07dc], eax
cmp dword [0x683874], eax
je 0x4e1dfe
push 0x6deae8
mov dword [0x683874], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x6deae4]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x4e1d68
sub eax, 0xd
je 0x4e1d55
sub eax, 1
jne case.default.0x4e1d7a
mov byte [0x6deaf2], al
mov dword [0x6dffbc], 0x683856
jmp 0x4e1de3
mov byte [0x6deaf2], 1
mov dword [0x6dffbc], 0x68385c
jmp 0x4e1de3
mov eax, ecx
mov byte [0x6deaf2], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x4e1d7a
jmp dword [eax*4 + 0x4e1e0c]
mov byte [0x6deaf2], 0
mov dword [0x6dffbc], 0x68384a
jmp 0x4e1de3
mov dword [0x6dffbc], 0x683850
jmp 0x4e1de3
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x6dffbc], 0x683844
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x6dffbc]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.005bd717
movzx ecx, ax
add esp, 4
mov eax, dword [0x6dffbc]
mov word [eax + 2], cx
cmp dword [0x6e07d8], 0x4e8
je 0x4e1dfe
mov eax, dword [0x6e07dc]
mov dword [0x6e07d8], eax
call fcn.004e1ef0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00569c25
mov esp, ebp
pop ebp
ret
Function at 0x4e25f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6963c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jae 0x4e283d
mov ecx, dword [0x6deae4]
cmp dword [0x6e0808], ecx
je 0x4e288b
cmp byte [0x6deada], 0
mov eax, 0x404
mov dword [0x6e0808], ecx
je 0x4e265b
cmp cx, ax
jne 0x4e265b
mov dword [0x6deb98], 0x7000404
mov eax, 0x7000404
mov dword [0x6deb9c], 0
jmp 0x4e283f
cmp ecx, 0xe0080404
je 0x4e2687
cmp ecx, 0xe0090404
je 0x4e2687
cmp ecx, 0xe00a0404
je 0x4e2687
cmp ecx, 0xe00b0404
je 0x4e2687
cmp ecx, 0xe00e0804
jne 0x4e2829
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x4e2829
cmp dword [0x6dead0], 0
jne 0x4e274e
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 0x4e274e
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4e274e
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4e274e
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x4e274e
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x4e2829
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
movzx esi, word [0x6deae4]
mov ebx, eax
test ebx, ebx
je 0x4e2829
call fcn.0056a7c0
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 0x4e2829
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x655f00
push dword [ebp - 0x40c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4e2829
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 [0x6dead0], 0
jne 0x4e287a
mov eax, 0x404
cmp si, ax
jne 0x4e2858
cmp ecx, 0x4020000
je 0x4e287a
cmp ecx, 0x4030000
je 0x4e287a
cmp ecx, 0x4040000
je 0x4e287a
cmp ecx, 0x5000000
je 0x4e287a
cmp ecx, 0x5010000
je 0x4e287a
cmp ecx, 0x5020000
je 0x4e287a
cmp ecx, 0x6000000
je 0x4e287a
mov dword [0x6deb9c], 0
mov dword [0x6deb98], 0
xor eax, eax
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00569c25
mov esp, ebp
pop ebp
ret 4
mov eax, 0x804
cmp si, ax
jne 0x4e2829
cmp ecx, 0x4010000
je 0x4e287a
cmp ecx, 0x4020000
je 0x4e287a
cmp ecx, 0x5030000
jne 0x4e2829
mov eax, esi
or eax, ecx
mov dword [0x6deb98], eax
mov eax, dword [edx + 0xc]
mov dword [0x6deb9c], eax
mov eax, dword [edi*4 + 0x6deb98]
jmp 0x4e283f
Function at 0x4e29d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6963c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6deae4]
push ebx
cmp eax, 0xe00e0804
je 0x4e2b9e
cmp eax, 0xe0090404
je 0x4e2b9e
mov ebx, dword [0x6deb98]
test ebx, ebx
je 0x4e2b9e
xor cl, cl
mov edx, 0x404
mov byte [ebp - 0x109], cl
cmp ax, dx
jne 0x4e2b8d
movups xmm0, xmmword [str.softwaremicrosoftwindowscurrentversion_]
mov ax, word [0x618820]
and ebx, 0xffff0000
mov word [ebp - 0xe0], ax
cmp ebx, 0x5010000
mov al, byte [0x618822]
mov edx, str.MSTCIPH
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xde], al
mov eax, str.TINTLGNT
movups xmm0, xmmword [0x618808]
push esi
cmovb edx, eax
movups xmmword [ebp - 0xf8], xmm0
mov esi, edx
movq xmm0, qword [0x618818]
push edi
movq qword [ebp - 0xe8], xmm0
mov al, byte [edx]
inc edx
test al, al
jne 0x4e2a84
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4e2a94
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 0x4e2b78
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 0x4e2b55
mov eax, dword [ebp - 0x118]
cmp ebx, 0x5000000
ja 0x4e2b20
cmp al, 0x22
je 0x4e2b36
cmp al, 0x23
je 0x4e2b36
cmp ebx, 0x5010000
je 0x4e2b30
cmp ebx, 0x5020000
jne 0x4e2b55
sub al, 0x22
cmp al, 2
ja 0x4e2b55
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.00569c25
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.00569c25
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x109]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00569c25
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00569c25
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.00569c25
mov esp, ebp
pop ebp
ret
Function at 0x4e36a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608f40
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x6963c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x838], eax
cmp byte [eax + 0x20], 0
je 0x4e38a8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e38a8
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x818], 0
mov esi, edi
mov dword [ebp - 0x830], edi
xorps xmm0, xmm0
mov dword [ebp - 0x814], 0
movups xmmword [ebp - 0x828], xmm0
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4e3730
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x4e38c3
cmp esi, 0xf
ja 0x4e3775
push esi
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], esi
push edi
push eax
mov dword [ebp - 0x814], 0xf
call fcn.005a54d0
mov byte [ebp + esi - 0x828], 0
jmp 0x4e37f6
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4e3797
mov eax, connect
mov edi, SysReAllocString
push eax
call fcn.0043d680
add esp, 4
jmp 0x4e37c7
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x4e37b6
push eax
call fcn.0043d680
add esp, 4
jmp 0x4e37c7
test eax, eax
je 0x4e37c5
push eax
call fcn.00569c41
add esp, 4
jmp 0x4e37c7
xor eax, eax
push esi
push dword [ebp - 0x830]
mov dword [ebp - 0x82c], eax
push eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], edi
call fcn.005a54d0
mov eax, dword [ebp - 0x82c]
mov byte [eax + esi], 0
add esp, 0xc
push dword [ebp - 0x834]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x4e3872
cmp dword [ebp - 0x814], 0xf
lea edx, [ebp - 0x828]
push 0x400
cmova edx, dword [ebp - 0x828]
lea ecx, [ebp - 0x810]
push ecx
add eax, edx
sub eax, edx
push eax
push edx
push 0
push dword [0x6e07dc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004e3060
mov ecx, dword [0x6dffc0]
test ecx, ecx
je 0x4e3872
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xf
jbe 0x4e38a8
mov edx, dword [ebp - 0x828]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e389e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e38c8
push ecx
push edx
call fcn.00569c33
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00569c25
mov esp, ebp
pop ebp
ret
call fcn.0043d560
call fcn.005afb50
int3