joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f7c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100705a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.10069827
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1003f160
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10069755
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.10066004
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.10066004
push 1
push 0
push 0
mov ecx, esi
call fcn.10065fac
push 1
push 0
push 1
mov ecx, esi
call fcn.10065fac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10069899
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1003f940
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100705c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.10069827
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1003f160
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.10069755
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x1003fa04
cmp dword [esp + 0x40], 1
jne 0x1003fa02
cmp ecx, eax
jge 0x1003fa04
mov eax, ecx
cmp eax, 0xc8
jge 0x1003fa10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1003f7c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10069899
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10040180
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10070633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1006441c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.10069acf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1006afeb
test eax, eax
je 0x1004029c
mov ecx, dword [esp + 0x3c]
call fcn.10069afc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10040260
push edi
mov ecx, esi
call fcn.1006714b
mov ecx, esi
call fcn.10040400
cmp dword [esp + 0x38], 1
jne 0x10040295
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.10067286
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10042cc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10042cf3
push esi
call fcn.10045dd0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10042cec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10042d79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10042d62
mov eax, dword [esi + 8]
test eax, eax
je 0x10042d17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x10042d5e
cmp eax, 2
je 0x10042d62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10042d0a
cmp eax, 3
je 0x10042d3d
cmp eax, 1
jne 0x10042d0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x10042d0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10042d0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10042da0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10042d88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10042da0
add esp, 4
pop esi
ret

Function at 0x1004ec80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x1004ed23
test eax, eax
jbe 0x1004ed23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x1004ed23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x1004ecce
xor esi, esi
jmp 0x1004ecd4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x1004ecff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.10050d20
add esi, eax
push esi
mov ebx, esi
call fcn.10050d20
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x1004ece0
pop ebp
test edi, edi
pop edi
jne 0x1004ed23
test ebx, ebx
je 0x1004ed23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.10053fc0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x1004ee60
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1004ef7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004ef7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.1006486e
mov esi, eax
test esi, esi
je 0x1004ef7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x1004ef7d
mov ecx, esi
call fcn.1004edd0
cmp edi, eax
jge 0x1004ef7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x1004ef03
mov dword [esp + 0x34], 1
jmp 0x1004ef5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1004ef7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.1004e3d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x10065212
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1006524a
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.100632c9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100632a1
jmp 0x10065256
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10066908
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 0x1006694a
call fcn.1006c3d6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1006694a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10066941
xor eax, eax
jmp 0x10066952
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10066958
pop edi
pop esi
pop ebx
ret 4
Function at 0x401060
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
and eax, 0xffff
push edi
mov edi, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4010fa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4010fa
mov edx, dword [esp + 0x20]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4010fa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4010f3
mov dword [esp + 0x1c], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp + 4], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftOffice9.0CommonLanguageResources
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40127f
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.InstallLanguage
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [esp + 4]
add esp, 0x10
ret
Function at 0x4015c0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x20], edi
call fcn.00401e50
test eax, eax
mov ebx, 0xfffffffe
je 0x4015fb
mov edx, dword [edi + 4]
lea esi, [edi + 4]
or edx, 1
mov ecx, edi
mov dword [esp + 0x10], esi
mov dword [esi], edx
call fcn.00402270
test eax, eax
je 0x401609
and dword [esi], ebx
jmp 0x401609
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
and ecx, ebx
mov dword [esp + 0x10], eax
mov dword [eax], ecx
mov esi, 1
mov ecx, edi
push esi
call fcn.00401e50
test eax, eax
mov eax, dword [edi + 0x324]
je 0x401626
and al, 0xe7
or eax, esi
jmp 0x401628
and eax, ebx
push 2
mov ecx, edi
mov dword [edi + 0x324], eax
call fcn.00401e50
test eax, eax
mov eax, dword [edi + 0x644]
je 0x401645
or eax, esi
jmp 0x401647
and eax, ebx
push 3
mov ecx, edi
mov dword [edi + 0x644], eax
call fcn.00401e50
test eax, eax
mov eax, dword [edi + 0x964]
je 0x401664
or eax, esi
jmp 0x401666
and eax, ebx
mov dword [edi + 0x964], eax
mov ecx, dword [0x40c7b8]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, 0x104
mov dword [esp + 0x18], eax
sub ecx, eax
mov esi, 0xcd
mov dword [esp + 0x14], ecx
add edi, 0x14
mov edx, dword [0x40c7b8]
add edx, 8
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add ecx, edi
push eax
lea edx, [esi - 4]
push ecx
push edx
push ebp
call ebx
lea eax, [edi + 0x104]
push 0x104
push eax
push esi
push ebp
call ebx
lea ecx, [edi + 0x208]
push 0x104
lea edx, [esi + 4]
push ecx
push edx
push ebp
call ebx
inc esi
add edi, 0x320
lea eax, [esi - 0xcd]
cmp eax, 4
jl 0x40169d
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, 4
mov dword [esi + 0x10], 0x4017d0
mov dword [esi + 0x32c], 0x4018c0
mov dword [esi + 0x330], 0x4019d0
mov dword [esi + 0x650], 0x401a00
mov dword [esi + 0x970], 0x401b30
mov eax, dword [ecx]
test al, 1
jne 0x40173c
and al, 0xfd
jmp 0x40173e
or al, 2
mov dword [ecx], eax
add ecx, 0x320
dec edx
jne 0x401732
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov cx, word [0x40a068]
cmp ax, cx
jne 0x40176d
push ecx
call fcn.00401220
add esp, 4
cmp ax, word [0x40a068]
je 0x401782
mov eax, dword [esi + 0x324]
mov edi, 0xffffffe7
and eax, edi
mov dword [esi + 0x324], eax
jmp 0x401787
mov edi, 0xffffffe7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, word [0x40a068]
je 0x4017b2
mov ecx, dword [esi + 0x644]
and ecx, edi
mov dword [esi + 0x644], ecx
mov eax, dword [esi + 0x964]
and eax, edi
mov dword [esi + 0x964], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
Function at 0x401c60
Capabilities:
Create process on windows
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov ebx, ecx
push esi
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 5
lea esi, [eax + ebx]
mov al, byte [eax + ebx + 4]
test al, 8
jne 0x401c8c
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov eax, dword [esi + 0xc]
push edi
test eax, eax
je 0x401c9b
call eax
jmp 0x401d45
mov edx, dword [0x40c7b8]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor ecx, ecx
mov dword [esp + 0x10], ecx
add edx, 8
mov dword [esp + 0x14], ecx
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], ecx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0x40
push 0
push 0
lea edx, [esi + 0x118]
push 0
add esi, 0x14
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [0x40c7b8]
add eax, 0x10c
push eax
call edi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401d19
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401d45
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x401d3f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401d45
push eax
call esi
jmp 0x401d45
mov dword [ebx + 0xc84], eax
push ebp
mov ecx, ebx
call fcn.00401e50
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x54
ret 8

Function at 0x401d60
Capabilities:
Create process on windows
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov ebx, ecx
push esi
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 5
lea esi, [eax + ebx]
mov al, byte [eax + ebx + 4]
test al, 8
jne 0x401d8c
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401d9a
call eax
jmp 0x401e36
push edi
mov edx, dword [0x40c7b8]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
add edx, 8
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor ecx, ecx
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esi + 0x21c]
push 0
add esi, 0x14
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401e0c
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e28
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e28
push eax
call esi
mov eax, dword [0x40c7b8]
add eax, 0x10c
push eax
call edi
pop edi
push ebp
mov ecx, ebx
call fcn.00401e50
neg eax
sbb eax, eax
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x54
ret 4
Function at 0x402020
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
mov dword [esp + 0x1c], 0
call edi
mov esi, eax
test esi, esi
jne 0x40204b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
lea eax, [esi*4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x402076
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push ebx
push esi
call edi
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [0x40c7b8]
lea ecx, [esp + 0x18]
push 0x10
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
xor edi, edi
test ebp, ebp
jbe 0x4020e2
mov esi, dword [ebx]
push esi
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x4020d0
push 0x208
push 0x40c7c0
push esi
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x4020d0
lea edx, [esp + 0x18]
push edx
push 0x40c7c0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4020da
inc edi
add ebx, 4
cmp edi, ebp
jb 0x40209c
jmp 0x4020de
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x10]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x402100
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
xor esi, esi
push str.SystemCurrentControlSetcontrolKeyboard_Layouts
push 0x80000002
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40224a
mov eax, dword [0x40c7b8]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x30]
push 0x10
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
lea eax, [esp + 0x34]
push edx
push eax
push ebx
push ecx
xor edi, edi
mov dword [esp + 0x34], 0xc
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x40224a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
push 0x20019
lea eax, [esp + 0x2c]
push ebx
push eax
push ecx
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402208
lea edx, [esp + 0x24]
push edx
call section..text
mov esi, eax
and eax, 0xf0000000
add esp, 4
cmp eax, 0xe0000000
jne 0x402208
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push 0x40c7c0
push edx
push ebx
push str.IME_file
push eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0x208
call ebp
cmp eax, ebx
jne 0x402208
lea ecx, [esp + 0x30]
push ecx
push 0x40c7c0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402208
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x402217
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x40224a
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
lea eax, [esp + 0x34]
inc edi
push edx
push eax
push edi
push ecx
mov dword [esp + 0x34], 0xc
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
je 0x402182
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402259
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4