joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af828
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test si, si
je 0x100239c1
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x10023998
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
jb 0x10023988
mov eax, dword [eax]
push eax
push esi
lea ecx, [ebx + 0x974]
call fcn.1002f5f0
mov esi, dword [ebp + 8]
test si, si
je 0x100239c1
mov ecx, dword [ebp + 0xa]
test cx, cx
je 0x100239c1
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
jb 0x100239b0
mov eax, dword [eax]
push eax
push ecx
push esi
lea ecx, [ebx + 0x974]
call fcn.1002f710
mov esi, dword [ebp + 8]
cmp byte [edi + 0x70], 0
je 0x10023b1b
movsd xmm2, qword [edi + 0x80]
xorps xmm0, xmm0
ucomisd xmm2, xmm0
movsd qword [esp + 0x1c], xmm2
lahf
test ah, 0x44
jp 0x10023a1f
mov eax, dword [ebx + 0xf20]
mov edx, dword [ebx + 0xf24]
cmp eax, edx
cmovl edx, eax
mov eax, 0x91a2b3c5
mov ecx, edx
shl ecx, 4
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x1c], xmm1
movsd xmm1, qword [edi + 0x78]
ucomisd xmm1, xmm0
movsd qword [esp + 0x24], xmm1
lahf
test ah, 0x44
jp 0x10023a6d
mov ecx, dword [ebx + 0xf20]
mov eax, 0x91a2b3c5
mov edx, dword [ebx + 0xf24]
cmp ecx, edx
cmovl edx, ecx
mov ecx, edx
shl ecx, 4
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x24], xmm0
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x30]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edx, eax
lea esi, [edi + 0x58]
mov dword [esp + 0x58], 0
cmp dword [esi + 0x14], 8
jb 0x10023a90
mov esi, dword [esi]
cmp dword [edi + 0x3c], 8
lea ecx, [edi + 0x28]
jb 0x10023a9b
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x10023aa3
mov edx, dword [edx]
cmp word [ebp + 0xa], 0
mov eax, dword [ebp + 8]
movzx eax, ax
jne 0x10023aba
mov dword [esp + 0x14], 0
jmp 0x10023ac4
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xa]
movzx eax, ax
push esi
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [esp + 0x20]
movzx eax, ax
push 1
shl ecx, 0x10
add ecx, eax
cvttsd2si eax, qword [esp + 0x28]
push 0
push edx
push ecx
lea ecx, [ebx + 0xf30]
push eax
cvttsd2si eax, qword [esp + 0x40]
push eax
cvttsd2si eax, qword [edi + 8]
push eax
cvttsd2si eax, qword [edi]
push eax
call fcn.1003d010
cmp dword [esp + 0x44], 8
jb 0x10023b1b
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 8
Function at 0x10027ec0
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
mov eax, 1
mov word [ebp - 0xc], ax
mov eax, dword [ebp + 8]
mov word [ebp - 0xa], ax
mov eax, dword [ecx]
push 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push 1
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov esp, ebp
pop ebp
ret 4

Function at 0x10027f10
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0x10
push eax
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_GetRegisteredRawInputDevices]
mov edx, eax
test edx, edx
je 0x10027fa4
push edi
xor edi, edi
test edx, edx
je 0x10027fa3
push esi
lea esi, [ebp - 0x180]
lea ecx, [ebp - 0xc2]
lea ecx, [ecx]
movzx eax, word [ecx]
cmp eax, 4
je 0x10027f6d
cmp eax, 5
jne 0x10027f88
movq xmm0, qword [ecx - 2]
inc edi
movq qword [esi - 4], xmm0
mov dword [esi], 1
mov dword [esi + 4], 0
add esi, 0xc
add ecx, 0xc
dec edx
jne 0x10027f60
pop esi
test edi, edi
jle 0x10027fa3
push 0xc
push edi
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1003a840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1003a84e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
pop ebp
ret 0xc

Function at 0x1003a870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1003a87e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
pop ebp
ret 0xc
Function at 0x1003d010
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b046b
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0xec], eax
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
cmp word [edx], 0
mov eax, dword [ebp + 0x20]
mov byte [ebp - 0x50], al
mov eax, dword [ebp + 0x24]
mov byte [ebp - 0x4f], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x24], 1
jne 0x1003d0c9
xor ecx, ecx
jmp 0x1003d0df
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d0d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005210
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0xe8], ax
test esi, esi
je 0x1003d10d
cmp word [esi], ax
je 0x1003d10d
push esi
lea eax, [ebp - 0xe8]
push eax
call edi
jmp 0x1003d156
push 0
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, dword [ebp + 0x18]
lea ecx, [edx - 0x21]
cmp ecx, 0x6f
ja case.0x1003d12a.41
movzx ecx, byte [ecx + 0x1003d1e4]
jmp dword [ecx*4 + 0x1003d1dc]
or eax, 0x100
push 0x40
lea ecx, [ebp - 0xe8]
shl eax, 0x10
push ecx
or eax, edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jne 0x1003d156
mov word [ebp - 0xe8], ax
push 0x100bce3c
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1003d17a
push 0x100bce40
lea eax, [ebp - 0xe8]
push eax
call edi
mov ecx, dword [ebp - 0xec]
lea edx, [ebp - 0x20]
call fcn.1003cd80
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebx + 4]
call fcn.1003ef20
mov ecx, eax
call fcn.1003d2d0
lea eax, [ebx + 0xa4]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0xe8]
call fcn.1003d260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 0x28
Function at 0x10040c10
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0671
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x30]
push 0xffffffffffffffff
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
xor eax, eax
movsd xmm0, qword [esi + 0x28]
movsd qword [edi + 0x28], xmm0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.10004ff0
lea ecx, [edi + 0x48]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.10004ff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x70]
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov al, byte [esi + 0x68]
mov byte [edi + 0x68], al
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x70]
push eax
call fcn.10004ff0
lea ecx, [edi + 0x88]
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x88]
push eax
call fcn.10004ff0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10043bc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b0b98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
sub esp, 0x18
add ecx, 0xfffffffc
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_ffc21a1a9cfed62fe1fdc69b46bf6ac6____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.10043ce0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x100494a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b16e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x10049627
cmp byte [edi + 0x45], 0
je 0x10049627
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10049500
xor al, al
jmp 0x10049629
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.100490d0
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1004955f
dec eax
je 0x10049563
sub eax, 2
je 0x1004960d
xor bl, bl
jmp 0x1004960f
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub esi, eax
je 0x1004959b
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10049558
cmp byte [edi + 0x45], 0
je 0x1004960d
test esi, esi
jne 0x10049514
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x10049602
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.10003910
test al, al
je 0x10049514
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
cmovae ecx, dword [esp + 0x18]
movq qword [ecx + eax], xmm0
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], esi
cmovae eax, dword [esp + 0x18]
mov byte [eax + esi], 0
jmp 0x10049514
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x10049623
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x10049629
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1004a500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b1848
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, edx
cmp byte [edx], 0
je 0x1004a53a
inc eax
cmp byte [eax], 0
jne 0x1004a534
sub eax, edx
mov dword [esp + 0x18], 0x100005
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x38], 0
cmp byte [ebp + 0xc], al
push ecx
setne al
add eax, 0x101
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10009bc0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.10009320
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009320
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004a5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ad6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, str.operations
nop
inc eax
cmp byte [eax], 0
jne 0x1004a610
sub eax, str.operations
mov dword [esp + 0x28], 0x100005
mov dword [esp + 0x1c], str.operations
mov dword [esp + 0x20], eax
push ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
push eax
movq qword [esp + 0x18], xmm0
call fcn.10009bc0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.10009320
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009320
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004a960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b1848
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, str.timeSeconds
inc eax
cmp byte [eax], 0
jne 0x1004a991
sub eax, str.timeSeconds
mov dword [esp + 0x18], 0x100005
mov dword [esp + 0xc], str.timeSeconds
mov dword [esp + 0x10], eax
push dword [ebp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
push dword [ebp + 0xc]
call fcn.1000d610
push ecx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10009bc0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.10009320
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009320
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1004cb60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
xor bl, bl
mov dword [ebp - 0x10], edi
mov ecx, edi
mov byte [ebp - 1], bl
mov eax, dword [edi]
push dword [eax + 4]
call fcn.1004ceb0
mov eax, dword [edi]
push 0
push 0x80
push 3
mov dword [eax + 4], eax
mov eax, dword [edi]
push 0
push 1
push Ordinal_4
mov dword [eax], eax
mov eax, dword [edi]
push esi
mov dword [eax + 8], eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x1004cc22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.100ab8c2
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call sub.MSVCR120.dll_memset
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
add esp, 0xc
mov dword [ebp - 8], 0
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004cc07
mov edx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.1004c8d0
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004d770
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100ec5c0], 0
jne 0x1004d824
push 0x100eb138
mov dword [0x100eb138], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1004d7be
push 0x100eb138
mov dword [0x100eb138], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x100eb13c], 6
jne 0x1004d81d
cmp dword [0x100eb140], 1
jbe 0x1004d81d
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
call fcn.1004d720
test al, al
je 0x1004d81d
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
mov dword [0x100eb13c], ecx
mov dword [0x100eb140], eax
cmp ecx, 0xa
jne 0x1004d81d
cmp dword [ebp - 0x10c], 0x55f0
mov eax, 0xb
cmovae ecx, eax
mov dword [0x100eb13c], ecx
mov byte [0x100ec5c0], 1
mov ecx, dword [ebp - 4]
mov eax, 0x100eb138
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1004d840
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov bl, dl
mov edi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x814], eax
test bl, bl
je 0x1004d9b6
mov ebx, dword [sym.imp.IMM32.dll_ImmIsIME]
push eax
call ebx
test eax, eax
je 0x1004da39
push edi
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x80c], 0
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.IMM32.dll_ImmGetConversionStatus]
test eax, eax
je 0x1004d927
mov eax, dword [ebp - 0x810]
test al, 1
je 0x1004d90b
mov dword [0x100e4020], eax
test al, 3
je 0x1004d8d3
and eax, 0xfffffffe
mov dword [ebp - 0x810], eax
test al, 8
je 0x1004d8e0
and eax, 0xfffffff7
mov dword [ebp - 0x810], eax
test eax, 0x400
je 0x1004d8f2
and eax, 0xfffffbff
mov dword [ebp - 0x810], eax
push dword [ebp - 0x80c]
push eax
push esi
call dword [sym.imp.IMM32.dll_ImmSetConversionStatus]
test eax, eax
setne byte [ebp - 0x805]
jmp 0x1004d912
mov byte [ebp - 0x805], 1
push esi
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
cmp byte [ebp - 0x805], 0
jne 0x1004da39
push 0x7fc
lea eax, [ebp - 0x800]
mov dword [ebp - 0x804], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x200
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
xor esi, esi
test edi, edi
jle 0x1004da39
push dword [ebp + esi*4 - 0x804]
call ebx
test eax, eax
je 0x1004d988
inc esi
cmp esi, edi
jl 0x1004d965
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x814]
push 0x100
push dword [ebp + esi*4 - 0x804]
mov dword [0x100ec5bc], eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100ec5bc]
test eax, eax
je 0x1004d9d5
push 0x100
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [0x100ec5bc], 0
cmp dword [0x100e4020], 0xffffffff
je 0x1004da39
push edi
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x80c], 0
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.IMM32.dll_ImmGetConversionStatus]
test eax, eax
je 0x1004da27
push dword [ebp - 0x80c]
push dword [0x100e4020]
push esi
call dword [sym.imp.IMM32.dll_ImmSetConversionStatus]
push esi
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov dword [0x100e4020], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1004dae0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1bb9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1004db3d
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x1004db3f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x1004db41
xor edi, edi
xor eax, eax
test eax, eax
mov dword [esi + 0x14], 7
mov edx, 0x100bc324
mov dword [esi + 0x10], 0
cmovne edx, eax
xor eax, eax
mov word [esi], ax
cmp word [edx], ax
jne 0x1004db67
xor ecx, ecx
jmp 0x1004db7f
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004db70
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10005210
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], 1
cmp ecx, 0x800
jbe 0x1004dbbd
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0x800
jb 0x1004dbb2
mov eax, dword [esi]
jmp 0x1004dbb4
mov eax, esi
xor ecx, ecx
mov word [eax + 0x1000], cx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret