joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008bf90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x1008bfdc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x1008bfdc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x1008bfc6
push eax
call ebp
test ax, ax
jl 0x1008bfd4
inc esi
add edi, 4
cmp esi, 6
jb 0x1008bfb8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.1008bc90
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1008fd40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x1008fda0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x1008fda0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x1008fda0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x1008fda0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x1008fdb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10092cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dd629
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10095760
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], 0x1011cb78
call fcn.100cc675
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.100cc675
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.10095380
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.10095380
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.100cc675
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.100cc675
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.10095380
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.10095380
mov dword [edi], 0x1011cb70
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.10095760
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.10095760
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.10095760
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.10095760
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.10095760
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.10093000
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10092ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dd73b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.10095930
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.10095930
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.10095930
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.10095930
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.10095930
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0x1011cb80
call fcn.10095580
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0x1011cb80
call fcn.10095580
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.100cc69e
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.100cc69e
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x1011cb80
call fcn.10095580
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x1011cb80
call fcn.10095580
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.100cc69e
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.100cc69e
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10095930
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10097c00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x10097c66
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x10097c66
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x10097c47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x10097ff0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10098028
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x10098d50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x10098d99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x10099210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ddc40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10098dc0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10098e40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10098e40
lea ecx, [esi + 0xc]
call fcn.100cdc5f
lea ecx, [esi + 0x10]
call fcn.100cdc5f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1009a3d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1009a3d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1009a3d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100cdcd4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100cdcd4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100a6e40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x101ab9ec]
xor edx, edx
cmp eax, edx
jne 0x100a6e66
xor eax, eax
mov byte [eax + 0x101ab8ec], al
inc eax
cmp eax, 0x100
jl 0x100a6e4e
mov dword [0x101ab9ec], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x101ab8ec
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100a6ef7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x100a6eca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x100a6e98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100a6f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x100a6fc3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x100a6faa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100ad970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100de05e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100ae290
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x101211d4
call fcn.100cda15
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100ada03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100cda15
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100ad9fc
push 0
mov ecx, eax
call fcn.100a4a70
mov dword [esi + 0xc], eax
jmp 0x100ada05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100ada05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x100d0078
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100d00b0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100ce12f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100ce107
jmp 0x100d00bc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100d1766
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100d17a8
call fcn.100d76d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100d17a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100d179f
xor eax, eax
jmp 0x100d17b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100d17b6
pop edi
pop esi
pop ebx
ret 4
Function at 0x414e70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x414f11
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x414ebf
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x51ffc0]
add edx, 1
cmp edx, esi
jl 0x414ea1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x414eec
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x51ffc0]
add edx, 1
cmp edx, esi
jl 0x414ed0
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x427950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x4279b6
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x427280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x4279b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4279b8
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret

Function at 0x429420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push str.SoftwareClassesCLSID_sInprocServer32
lea eax, [ebp - 0x708]
push 0x200
push eax
call fcn.00428960
mov esi, eax
add esp, 0x10
test esi, esi
js 0x42953e
push 0
push 0
push 0x200
lea eax, [ebp - 0x308]
mov dword [ebp - 0x710], 0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x708]
mov dword [ebp - 0x70c], 0x104
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x710]
push eax
lea eax, [ebp - 0x308]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x429539
lea eax, [ebp - 0x70c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
push dword [ebp - 0x710]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429514
push 0x12c
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x710]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x710]
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429fc0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x403]
push edi
push 0x3ff
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x410], ebx
mov byte [ebp - 0x404], 0
call fcn.004dc9b0
add esp, 0xc
push ebx
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ecx, dword [edi + 0x1820]
mov dword [ebp - 0x408], eax
push dword [ecx + 0x34]
lea ecx, [ebp - 0x404]
push ecx
push 8
push eax
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
test eax, eax
jne 0x42a047
mov eax, dword [edi + 0x1820]
mov ecx, dword [eax + 0x34]
cmp ecx, 0x400
jae 0x42a15f
mov byte [ebp + ecx - 0x404], 0
mov eax, dword [eax + 0x34]
cmp eax, 0x400
jae 0x42a15f
mov byte [ebp + eax - 0x404], 0
mov eax, dword [edi + 0x1820]
push esi
push dword [eax + 0x34]
lea eax, [ebp - 0x404]
push eax
call fcn.0042a290
mov ebx, eax
lea esi, [edi + 0x1c]
lea eax, [ebp - 0x404]
push eax
push 0x400
push esi
call fcn.004da7cf
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a090
mov eax, dword [edi + 0x1820]
sub ecx, edx
mov edx, dword [eax + 0x34]
cmp ecx, edx
jle 0x42a0b4
mov ecx, esi
call fcn.00429ce0
mov ebx, eax
mov byte [edi + ebx + 0x1c], 0
mov eax, dword [edi + 0x1820]
lea esi, [edi + 0x181c]
push dword [eax + 0x34]
lea eax, [edi + 0x1c]
push eax
push 0x80
push dword [ebp - 0x408]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
mov dword [esi], eax
lea eax, [ebp - 0x40c]
cmp ebx, dword [esi]
mov dword [ebp - 0x40c], ebx
cmovge eax, esi
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [edi + 0x1820]
push dword [eax + 0x34]
lea eax, [ebp - 0x404]
push eax
push 0x100
push dword [ebp - 0x408]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
cmp eax, ebx
mov word [edi + ebx + 0x1c], 0
cmovg eax, ebx
cmp dword [esi], ebx
pop esi
jne 0x42a12b
cmp dword [edi + 0x14], 0
je 0x42a134
cmp eax, ebx
jne 0x42a134
mov dword [edi + 0x14], 1
jmp 0x42a13b
mov dword [edi + 0x14], 0
push dword [ebp - 0x408]
push dword [ebp - 0x410]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4
call fcn.004da6f3
int3
Function at 0x42a170
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push esi
mov dword [ebp - 4], eax
lea esi, [eax + 0x1c]
test esi, esi
je 0x42a1ef
push edi
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1820]
push dword [ecx + 0x34]
lea ecx, [eax + 0x41c]
push ecx
push 8
push edi
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
push edi
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov ecx, dword [ebp - 4]
lea edx, [esi + 1]
pop edi
mov dword [ecx + 0x18], 2
mov al, byte [esi]
inc esi
test al, al
jne 0x42a1c1
mov eax, dword [ecx + 0x1820]
sub esi, edx
mov eax, dword [eax + 0x34]
cmp esi, eax
jl 0x42a1e8
mov byte [eax + ecx + 0x41c], 0
mov esi, dword [ecx + 0x1820]
mov esi, dword [esi + 0x34]
mov word [esi + ecx + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.IMM32.dll_ImmGetContext]
push 0x400
lea esi, [ebx + 0x81c]
mov edx, eax
push esi
or eax, 0xffffffff
mov dword [ebp - 4], edx
push 0x20
mov ecx, 0x400
mov edi, esi
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
mov edi, eax
xor ecx, ecx
test edi, edi
je 0x42a270
mov edx, dword [ebx + 0x1820]
mov edx, dword [edx + 0x34]
lea esp, [esp]
mov eax, dword [esi]
cmp eax, edx
jbe 0x42a25b
cmp eax, 0xffffffff
jne 0x42a265
inc ecx
add esi, 4
cmp ecx, edi
jb 0x42a250
jmp 0x42a270
mov dword [ebx + ecx*4 + 0x81c], edx
lea esp, [esp]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x4b424]
mov dword [esi + 0x4b430], 0
mov dword [esi + 0x4b434], 0
mov dword [esi + 0x4b438], 0
test eax, eax
je 0x42b09c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4b424], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push 0
mov dword [esi + 0x4b428], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
mov dword [esi + 0x4b424], ecx
push eax
push ecx
mov dword [esi + 0x4b42c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
je 0x42b0e7
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x10], 0x31445356
jne 0x42b12f
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x4b424]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x42b0d1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add ecx, 8
sub dword [esi + 0x4b428], ecx
mov dword [ebp - 0xc], ecx
sbb dword [esi + 0x4b42c], 0
add eax, ecx
mov dword [esi + 0x4b438], eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [esi + 0x4b438]
push dword [esi + 0x4b424]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42b200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea esi, [edi + 0x4b40c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov ecx, ebx
add ecx, dword [edi + 0x4b430]
adc eax, dword [edi + 0x4b434]
cmp eax, dword [edi + 0x4b42c]
jl 0x42b25f
jg 0x42b253
cmp ecx, dword [edi + 0x4b428]
jbe 0x42b25f
mov ebx, dword [edi + 0x4b428]
sub ebx, dword [edi + 0x4b430]
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x10]
push dword [edi + 0x4b424]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add dword [edi + 0x4b430], ebx
mov eax, dword [ebp - 0xc]
adc dword [edi + 0x4b434], 0
push esi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f880
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4ef9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
call fcn.0042fbe0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movdqa xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004b64a0
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.00496280
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], vtable.CFuncSprite.0
mov dword [esp + 0x38], ecx
push 0x500
mov dword [esp + 0x64], 0
mov ecx, dword [0x58dc90]
push str._Screen_Original_Width
call fcn.004c8c40
mov ecx, dword [0x58dc90]
push 0x2d0
push str._Screen_Original_Height
mov dword [esp + 0x20], eax
call fcn.004c8c40
push 2
mov dword [esp + 0x24], eax
call fcn.004a8dd0
push 1
push dword [esp + 0x24]
mov esi, eax
push dword [esp + 0x20]
mov ecx, esi
push 0
mov edx, dword [esi]
push 0
call dword [edx + 0x1c]
push esi
push 0x64
mov ecx, edi
call fcn.004b80a0
push 2
call fcn.004a8dd0
push 0
push dword [esp + 0x24]
mov esi, eax
push dword [esp + 0x20]
mov ecx, esi
push 0
mov edx, dword [esi]
push 0
call dword [edx + 0x1c]
push esi
push 0x65
mov ecx, edi
call fcn.004b80a0
mov esi, dword [esp + 0x1c]
push 0x64
mov ecx, dword [esi + 4]
call fcn.004b8030
mov ecx, dword [esi + 4]
mov edi, eax
push 0x65
call fcn.004b8030
mov esi, eax
mov dword [esp + 0x1c], esi
call fcn.00496a60
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x42f9c5
push edi
call fcn.004c31a0
call fcn.00496a60
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x42f9d7
push esi
call fcn.004c31a0
mov esi, dword [esp + 0x18]
lea ecx, [edi + 0x120]
mov edi, dword [esp + 0x20]
mov eax, dword [ecx]
push 0x80
push edi
push esi
push 0
push 0
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x1c]
push 0x80
add ecx, 0x120
push edi
push esi
push 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret