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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b1548
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 0x10024731
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x10024708
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
jb 0x100246f8
mov eax, dword [eax]
push eax
push esi
lea ecx, [ebx + 0x974]
call fcn.10030380
mov esi, dword [ebp + 8]
test si, si
je 0x10024731
mov ecx, dword [ebp + 0xa]
test cx, cx
je 0x10024731
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
jb 0x10024720
mov eax, dword [eax]
push eax
push ecx
push esi
lea ecx, [ebx + 0x974]
call fcn.100304a0
mov esi, dword [ebp + 8]
cmp byte [edi + 0x70], 0
je 0x1002488b
movsd xmm2, qword [edi + 0x80]
xorps xmm0, xmm0
ucomisd xmm2, xmm0
movsd qword [esp + 0x1c], xmm2
lahf
test ah, 0x44
jp 0x1002478f
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 0x100247dd
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 0x10024800
mov esi, dword [esi]
cmp dword [edi + 0x3c], 8
lea ecx, [edi + 0x28]
jb 0x1002480b
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x10024813
mov edx, dword [edx]
cmp word [ebp + 0xa], 0
mov eax, dword [ebp + 8]
movzx eax, ax
jne 0x1002482a
mov dword [esp + 0x14], 0
jmp 0x10024834
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.1003de10
cmp dword [esp + 0x44], 8
jb 0x1002488b
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.100ad688
mov esp, ebp
pop ebp
ret 8
Function at 0x10028c50
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 0x10028ca0
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 0x10028d34
push edi
xor edi, edi
test edx, edx
je 0x10028d33
push esi
lea esi, [ebp - 0x180]
lea ecx, [ebp - 0xc2]
lea ecx, [ecx]
movzx eax, word [ecx]
cmp eax, 4
je 0x10028cfd
cmp eax, 5
jne 0x10028d18
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 0x10028cf0
pop esi
test edi, edi
jle 0x10028d33
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.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x1003b620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1003b62e
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 0x1003b650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1003b65e
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 0x1003de10
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b218b
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 0x1003dec9
xor ecx, ecx
jmp 0x1003dedf
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ded0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005c80
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0xe8], ax
test esi, esi
je 0x1003df0d
cmp word [esi], ax
je 0x1003df0d
push esi
lea eax, [ebp - 0xe8]
push eax
call edi
jmp 0x1003df56
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.0x1003df2a.41
movzx ecx, byte [ecx + 0x1003dfe4]
jmp dword [ecx*4 + 0x1003dfdc]
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 0x1003df56
mov word [ebp - 0xe8], ax
push 0x100bdeb4
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1003df7a
push 0x100bdeb8
lea eax, [ebp - 0xe8]
push eax
call edi
mov ecx, dword [ebp - 0xec]
lea edx, [ebp - 0x20]
call fcn.1003db80
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebx + 4]
call fcn.1003fd20
mov ecx, eax
call fcn.1003e0d0
lea eax, [ebx + 0xa4]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0xe8]
call fcn.1003e060
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.100ad688
mov esp, ebp
pop ebp
ret 0x28
Function at 0x10041c30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2391
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.10005a70
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.10005a70
mov byte [ebp - 4], 1
lea ecx, [edi + 0x78]
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
movzx eax, byte [esi + 0x70]
mov byte [edi + 0x70], al
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], 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 + 0x78]
push eax
call fcn.10005a70
lea ecx, [edi + 0x90]
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 + 0x90]
push eax
call fcn.10005a70
mov eax, dword [esi + 0xa8]
mov dword [edi + 0xa8], eax
mov eax, dword [esi + 0xac]
mov dword [edi + 0xac], eax
mov eax, dword [esi + 0xb0]
mov dword [edi + 0xb0], eax
movzx eax, byte [esi + 0xb4]
mov byte [edi + 0xb4], al
movzx eax, byte [esi + 0xb5]
mov byte [edi + 0xb5], al
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 0x10045070
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b28c8
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.10045190
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004ab80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b3428
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 esi, ecx
cmp dword [esi + 0x40], 0
je 0x1004acb1
cmp byte [esi + 0x45], 0
je 0x1004acb1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1004abe0
xor al, al
jmp 0x1004acb3
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.1004a770
mov dword [esp + 0x40], 0
lea edi, [esi + 0x48]
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 [esi + 0x40]
push edi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1004ac38
dec eax
je 0x1004ac3c
sub eax, 2
je 0x1004ac97
xor bl, bl
jmp 0x1004ac99
mov byte [esi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov edi, dword [esp + 0x14]
cmovae eax, ecx
sub edi, eax
je 0x1004ac74
push dword [esi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1004ac34
cmp byte [esi + 0x45], 0
je 0x1004ac97
test edi, edi
lea edi, [esi + 0x48]
jne 0x1004abf7
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.1004a7d0
jmp 0x1004abf4
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1004acad
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x1004acb3
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.100ad688
mov esp, ebp
pop ebp
ret

Function at 0x1004bbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b3588
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 0x1004bc0a
inc eax
cmp byte [eax], 0
jne 0x1004bc04
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.1000a5c0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.10009d20
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009d20
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 0x1004bcb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af348
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 0x1004bce0
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.1000a5c0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.10009d20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009d20
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 0x1004c030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b3588
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 0x1004c061
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.1000e010
push ecx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1000a5c0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.10009d20
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.10009d20
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 0x1004e270
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.1004e530
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_2
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 0x1004e332
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.100ad5d6
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 0x1004e317
mov edx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.1004dfe0
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 0x1004edf0
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 [0x100f084c], 0
jne 0x1004eea4
push 0x100eeed8
mov dword [0x100eeed8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1004ee3e
push 0x100eeed8
mov dword [0x100eeed8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x100eeedc], 6
jne 0x1004ee9d
cmp dword [0x100eeee0], 1
jbe 0x1004ee9d
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
call fcn.1004eda0
test al, al
je 0x1004ee9d
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
mov dword [0x100eeedc], ecx
mov dword [0x100eeee0], eax
cmp ecx, 0xa
jne 0x1004ee9d
cmp dword [ebp - 0x10c], 0x55f0
mov eax, 0xb
cmovae ecx, eax
mov dword [0x100eeedc], ecx
mov byte [0x100f084c], 1
mov ecx, dword [ebp - 4]
mov eax, 0x100eeed8
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x1004eec0
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 0x1004f036
mov ebx, dword [sym.imp.IMM32.dll_ImmIsIME]
push eax
call ebx
test eax, eax
je 0x1004f0b9
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 0x1004efa7
mov eax, dword [ebp - 0x810]
test al, 1
je 0x1004ef8b
mov dword [0x100e7020], eax
test al, 3
je 0x1004ef53
and eax, 0xfffffffe
mov dword [ebp - 0x810], eax
test al, 8
je 0x1004ef60
and eax, 0xfffffff7
mov dword [ebp - 0x810], eax
test eax, 0x400
je 0x1004ef72
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 0x1004ef92
mov byte [ebp - 0x805], 1
push esi
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
cmp byte [ebp - 0x805], 0
jne 0x1004f0b9
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 0x1004f0b9
push dword [ebp + esi*4 - 0x804]
call ebx
test eax, eax
je 0x1004f008
inc esi
cmp esi, edi
jl 0x1004efe5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x814]
push 0x100
push dword [ebp + esi*4 - 0x804]
mov dword [0x100f0848], eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100f0848]
test eax, eax
je 0x1004f055
push 0x100
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [0x100f0848], 0
cmp dword [0x100e7020], 0xffffffff
je 0x1004f0b9
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 0x1004f0a7
push dword [ebp - 0x80c]
push dword [0x100e7020]
push esi
call dword [sym.imp.IMM32.dll_ImmSetConversionStatus]
push esi
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov dword [0x100e7020], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x1004f160
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b38c9
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 0x1004f1bd
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x1004f1bf
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x1004f1c1
xor edi, edi
xor eax, eax
test eax, eax
mov dword [esi + 0x14], 7
mov edx, 0x100bd348
mov dword [esi + 0x10], 0
cmovne edx, eax
xor eax, eax
mov word [esi], ax
cmp word [edx], ax
jne 0x1004f1e7
xor ecx, ecx
jmp 0x1004f1ff
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f1f0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10005c80
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], 1
cmp ecx, 0x800
jbe 0x1004f23d
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0x800
jb 0x1004f232
mov eax, dword [esi]
jmp 0x1004f234
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