joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56b1a0
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x20
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
jbe 0x56b236
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov edx, dword [ebp - 0xc]
shr edx, 5
xor ecx, edx
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
and eax, 3
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
add esi, dword [edx + eax*4]
xor ecx, esi
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
sub eax, 0x61c88647
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 8]
shr edx, 5
xor ecx, edx
add ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
shr eax, 0xb
and eax, 3
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
add esi, dword [edx + eax*4]
xor ecx, esi
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
jmp 0x56b1c1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
add edx, 4
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x56b260
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xc6ef3720
mov dword [ebp - 0x10], 0x20
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
jbe 0x56b2fb
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 8]
shr edx, 5
xor ecx, edx
add ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
shr eax, 0xb
and eax, 3
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
add esi, dword [edx + eax*4]
xor ecx, esi
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x61c88647
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
shl edx, 4
mov eax, dword [ebp - 0xc]
shr eax, 5
xor edx, eax
add edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
and ecx, 3
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
add esi, dword [eax + ecx*4]
xor edx, esi
mov ecx, dword [ebp - 8]
sub ecx, edx
mov dword [ebp - 8], ecx
jmp 0x56b281
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
add ecx, 4
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x56e930
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0056ea10
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
call fcn.00681e70
add esp, 0xc
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0xc], 2
jne 0x56e976
mov dword [ebp - 0x10], 0xc0000000
mov dword [ebp - 0xc], 3
jmp 0x56e97d
mov dword [ebp - 0x10], closesocket
cmp dword [ebp + 0xc], 1
jne 0x56e98c
mov dword [ebp - 8], 3
jmp 0x56e993
mov dword [ebp - 8], 4
push 0
push 0x80
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x110], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x110], 0xffffffff
je 0x56e9f2
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov dword [edx + 0x114], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x56ea01
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x56ea30
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x56ea64
xor eax, eax
jmp 0x56ea84
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x114], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x57bf30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x715650
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7b7fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CNetworkStream.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.006acb60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.005a7380
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x5c], 0xffffffff
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x48], 0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x57c280
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, 0xc
push esi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0057c1d0
mov eax, dword [ebp - 4]
add eax, 0x60
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0xffffffff
jne 0x57c2e7
mov ecx, dword [ebp - 4]
call fcn.0057c1d0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 8]
call eax
xor al, al
jmp 0x57c37f
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5c]
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.005a73d0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x5c]
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x57c35e
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x57c35e
push str.error___WSAEWOULDBLOCK
call fcn.00567580
add esp, 4
mov ecx, dword [ebp - 4]
call fcn.0057c1d0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 8]
call eax
xor al, al
jmp 0x57c37f
push 0
call fcn.00567740
add esp, 4
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 0xc]
cdq
add ecx, eax
adc esi, edx
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x57ccc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jle 0x57cd23
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x24]
sub eax, dword [edx + 0x28]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x57cd07
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x28]
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00678240
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x24]
sub eax, dword [edx + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x20]
sub edx, dword [ecx + 0x24]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x57cdc8
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x20]
sub edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x24]
push ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5c]
push ecx
call sub.WS2_32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x57cd84
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x57cd82
xor al, al
jmp 0x57cdca
jmp 0x57cd8e
cmp dword [ebp - 8], 0
jne 0x57cd8e
xor al, al
jmp 0x57cdca
mov ecx, dword [ebp - 4]
call fcn.0057c620
movzx edx, al
test edx, edx
je 0x57cdb9
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x24]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x4c
call fcn.0057c540
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov al, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0057cc40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x57cdee
mov al, 1
jmp 0x57ce5e
mov ecx, dword [ebp - 4]
call fcn.0057c620
movzx eax, al
test eax, eax
je 0x57ce19
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x38]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x4c
call fcn.0057c5a0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x38]
push ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5c]
push ecx
call sub.WS2_32.dll_send
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x57ce45
xor al, al
jmp 0x57ce5e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp - 4]
call fcn.0057cc60
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x57d710
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 0x19], cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x19]
test eax, eax
je 0x57d73c
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x57d74b
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4

Function at 0x59c5f0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x7b7fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0x10
mov ecx, dword [ebp + 8]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x408], 0
jmp 0x59c641
mov edx, dword [ebp - 0x408]
add edx, 1
mov dword [ebp - 0x408], edx
mov eax, dword [ebp - 0x408]
cmp eax, dword [ebp - 0x410]
jge 0x59c679
mov ecx, dword [ebp - 0x408]
movzx edx, byte [ebp + ecx - 0x404]
cmp edx, 1
je 0x59c675
mov eax, dword [ebp - 0x408]
movzx ecx, byte [ebp + eax - 0x404]
cmp ecx, 3
jne 0x59c677
jmp 0x59c679
jmp 0x59c632
mov edx, dword [ebp - 0x408]
mov dword [ebp - 0x40c], edx
jmp 0x59c696
mov eax, dword [ebp - 0x40c]
add eax, 1
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x40c]
cmp ecx, dword [ebp - 0x410]
jge 0x59c6c8
mov edx, dword [ebp - 0x40c]
movzx eax, byte [ebp + edx - 0x404]
mov ecx, dword [ebp - 0x408]
movzx edx, byte [ebp + ecx - 0x404]
cmp eax, edx
je 0x59c6c6
jmp 0x59c6c8
jmp 0x59c687
mov eax, dword [ebp - 0x408]
mov dword [0x807b90], eax
mov ecx, dword [ebp - 0x40c]
mov dword [0x807b94], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d40e
mov esp, ebp
pop ebp
ret 4
Function at 0x59cb80
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7b7fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x805ea4], eax
mov eax, dword [0x807bdc]
cmp eax, dword [0x805ea4]
jne 0x59cbaf
jmp 0x59cdb0
mov ecx, dword [0x805ea4]
mov dword [0x807bdc], ecx
push 8
lea edx, [ebp - 0x18]
push edx
push 0x1004
mov eax, dword [0x805ea4]
and eax, 0xffff
movzx ecx, ax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
push 0
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.005a0d80
add esp, 0xc
mov dword [0x807b9c], eax
mov eax, dword [0x7a7f30]
cmp eax, dword [0x807b9c]
jne 0x59cc04
jmp 0x59cdb0
mov ecx, dword [0x807b9c]
mov dword [0x7a7f30], ecx
push 0x805ea8
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov edx, dword [0x805ea4]
and edx, 0xffff
movzx eax, dx
and eax, 0x3ff
movzx ecx, ax
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 4
je 0x59cc8a
cmp dword [ebp - 0x20], 0x11
je 0x59cc6a
cmp dword [ebp - 0x20], 0x12
je 0x59cc4c
jmp 0x59cd03
mov byte [0x805eb2], 0
mov edx, 6
imul eax, edx, 3
add eax, 0x7a7f00
mov dword [0x80737c], eax
jmp 0x59cd17
mov byte [0x805eb2], 1
mov ecx, 6
shl ecx, 2
add ecx, 0x7a7f00
mov dword [0x80737c], ecx
jmp 0x59cd17
mov byte [0x805eb2], 1
mov edx, dword [0x805ea4]
and edx, 0xffff
movzx eax, dx
sar eax, 0xa
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 4
ja case.default.0x59ccb8
mov edx, dword [ebp - 0x1c]
jmp dword [edx*4 + 0x59cdc0]
mov byte [0x805eb2], 0
mov eax, 6
shl eax, 0
add eax, 0x7a7f00
mov dword [0x80737c], eax
jmp 0x59cd01
mov ecx, 6
shl ecx, 1
add ecx, 0x7a7f00
mov dword [0x80737c], ecx
jmp 0x59cd01
mov edx, 6
imul eax, edx, 0
add eax, 0x7a7f00
mov dword [0x80737c], eax
jmp 0x59cd17
mov ecx, 6
imul edx, ecx, 0
add edx, 0x7a7f00
mov dword [0x80737c], edx
mov eax, 6
imul ecx, eax, 0
add ecx, 0x7a7f00
cmp dword [0x80737c], ecx
jne 0x59cd95
push 0xa
lea edx, [ebp - 0x10]
push edx
push 3
mov eax, dword [0x805ea4]
and eax, 0xffff
movzx ecx, ax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov edx, 1
imul eax, edx, 0
movsx cx, byte [ebp + eax - 0x10]
mov edx, 2
imul eax, edx, 0
mov edx, dword [0x80737c]
mov word [edx + eax], cx
mov eax, 1
shl eax, 0
movsx cx, byte [ebp + eax - 0x10]
movzx edx, cx
push edx
call fcn.0068fab2
add esp, 4
mov ecx, 2
shl ecx, 0
mov edx, dword [0x80737c]
mov word [edx + ecx], ax
cmp dword [0x807b98], 0x4e8
je 0x59cdb0
mov eax, dword [0x807b9c]
mov dword [0x807b98], eax
call fcn.0059cf20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d40e
mov esp, ebp
pop ebp
ret
Function at 0x59d000
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x800
mov eax, dword [ebp - 4]
add eax, 0x22
push eax
push 8
mov ecx, dword [ebp + 8]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
shr eax, 1
mov dword [0x807384], eax
mov edx, dword [0x807384]
push edx
mov eax, dword [ebp - 4]
add eax, 0x22
push eax
mov ecx, dword [ebp - 4]
call fcn.0059e710
movzx ecx, al
test ecx, ecx
je 0x59d05b
push 0
push 4
push 0x15
mov edx, dword [ebp + 8]
push edx
call sub.IMM32.dll_ImmNotifyIME
mov dword [0x807384], 0
mov esp, ebp
pop ebp
ret 4

Function at 0x59d070
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0
push 0
push 0
push 0
mov eax, dword [0x807b8c]
push eax
push 0x807388
push 0
mov ecx, dword [0x807b98]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jl 0x59d0c4
push 0
push 4
push 0x15
mov ecx, dword [ebp + 8]
push ecx
call sub.IMM32.dll_ImmNotifyIME
mov dword [0x807384], 0
jmp 0x59d0e2
push 0x800
mov edx, dword [ebp - 4]
add edx, 0x22
push edx
push 8
mov eax, dword [ebp + 8]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
shr eax, 1
mov dword [0x807384], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x59de60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x7b7fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
cmp dword [0x805ea4], 0xe00e0804
je 0x59deae
cmp dword [0x805ea4], 0xe0090404
je 0x59deae
mov eax, 4
imul ecx, eax, 0
cmp dword [ecx + 0x805f58], 0
je 0x59deae
mov dword [ebp - 0x11c], 0
jmp 0x59deb8
mov dword [ebp - 0x11c], 1
mov dl, byte [ebp - 0x11c]
mov byte [ebp - 0x109], dl
movzx eax, byte [ebp - 0x109]
test eax, eax
jne 0x59e031
mov ecx, dword [0x805ea4]
and ecx, 0xffff
movzx edx, cx
cmp edx, 0x404
jne 0x59e031
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ecx + 0x805f58]
and edx, 0xffff0000
mov dword [ebp - 0x110], edx
push str.softwaremicrosoftwindowscurrentversion_
lea eax, [ebp - 0x108]
push eax
call fcn.0068bcc0
add esp, 8
cmp dword [ebp - 0x110], 0x5010000
jb 0x59df34
mov dword [ebp - 0x120], str.MSTCIPH
jmp 0x59df3e
mov dword [ebp - 0x120], str.TINTLGNT
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0068bcd0
add esp, 8
lea eax, [ebp - 0x124]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x108]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x59e031
mov dword [ebp - 0x128], 4
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
push ecx
push 0
push str.Keyboard_Mapping
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x59e024
cmp dword [ebp - 0x110], 0x5000000
ja 0x59dfed
movzx eax, byte [ebp - 0x114]
cmp eax, 0x22
je 0x59e01d
movzx ecx, byte [ebp - 0x114]
cmp ecx, 0x23
je 0x59e01d
cmp dword [ebp - 0x110], 0x5010000
je 0x59e005
cmp dword [ebp - 0x110], 0x5020000
jne 0x59e024
movzx edx, byte [ebp - 0x114]
cmp edx, 0x22
jl 0x59e024
movzx eax, byte [ebp - 0x114]
cmp eax, 0x24
jg 0x59e024
mov byte [ebp - 0x109], 1
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x109]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d40e
mov esp, ebp
pop ebp
ret
Function at 0x59e410
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x7b7fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
movzx eax, byte [0x805e98]
test eax, eax
je 0x59e43b
mov al, 1
jmp 0x59e648
mov ecx, dword [ebp + 8]
mov dword [0x805ea0], ecx
mov ecx, 0x807bbc
call fcn.0059e3c0
mov dword [0x805eb8], 0x94
push 0x805eb8
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov byte [ebp - 0x10d], 0
cmp dword [0x805ec8], 2
je 0x59e48e
cmp dword [0x805ebc], 4
ja 0x59e48e
cmp dword [0x805ebc], 4
jne 0x59e495
cmp dword [0x805ec0], 0
jbe 0x59e495
mov byte [ebp - 0x10d], 1
mov byte [0x805e99], 0
push 0x105
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x59e575
push 0x73e76c
lea eax, [ebp - 0x10c]
push eax
call fcn.0068bcd0
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x805f4c], eax
cmp dword [0x805f4c], 0
je 0x59e56e
push str.ImmLockIMC
mov edx, dword [0x805f4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x805e80], eax
push str.ImmUnlockIMC
mov eax, dword [0x805f4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x805e84], eax
push str.ImmLockIMCC
mov ecx, dword [0x805f4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x805e88], eax
push str.ImmUnlockIMCC
mov edx, dword [0x805f4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x805e8c], eax
push str.ImmDisableTextFrameService
mov eax, dword [0x805f4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x59e56c
push 0xffffffffffffffff
call dword [ebp - 0x114]
jmp 0x59e575
mov byte [0x805e99], 1
mov byte [0x805e98], 1
mov ecx, dword [0x805ea0]
push ecx
call sub.IMM32.dll_ImmGetContext
mov edx, dword [ebp - 0x118]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x805ea0]
push edx
call sub.IMM32.dll_ImmReleaseContext
call fcn.0059cb80
call fcn.0059cb40
push 2
call fcn.0059fb30
add esp, 4
call fcn.005a0000
test eax, eax
je 0x59e5d0
mov dword [ebp - 0x11c], 1
jmp 0x59e5da
mov dword [ebp - 0x11c], 0
mov al, byte [ebp - 0x11c]
mov byte [0x805e9a], al
call fcn.0059cde0
movzx ecx, byte [0x805e9a]
test ecx, ecx
je 0x59e646
mov edx, dword [0x805ea4]
and edx, 0xffff
movzx eax, dx
and eax, 0x3ff
movzx ecx, ax
cmp ecx, 4
jne 0x59e626
call fcn.0059d0f0
test eax, eax
je 0x59e626
mov dword [ebp - 0x120], 1
jmp 0x59e630
mov dword [ebp - 0x120], 0
mov dl, byte [ebp - 0x120]
mov byte [0x805e9d], dl
push 0
call fcn.005a0290
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d40e
mov esp, ebp
pop ebp
ret 4