joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e0da
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bd004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10011d6c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10011d6c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001e151
cmp word [ecx], dx
je 0x1001e151
mov eax, dword [0x1002a794]
push edi
dec eax
push eax
push 0x1002a680
call fcn.1001e073
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001e1c4
cmp word [eax], dx
je 0x1001e1c4
mov eax, dword [edi]
test eax, eax
je 0x1001e175
cmp word [eax], dx
je 0x1001e175
lea eax, [ebp - 0x10]
push eax
call fcn.1001da59
jmp 0x1001e17e
lea eax, [ebp - 0x10]
push eax
call fcn.1001daf4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001e1ee
mov eax, dword [0x1002a67c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002a370
call fcn.1001e073
add esp, 0xc
test al, al
je 0x1001e1ee
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001e1b9
cmp word [eax], di
je 0x1001e1b9
lea eax, [ebp - 0x10]
push eax
call fcn.1001da59
pop ecx
jmp 0x1001e1f0
lea eax, [ebp - 0x10]
push eax
call fcn.1001daf4
jmp 0x1001e1b6
mov eax, dword [edi]
test eax, eax
je 0x1001e1db
cmp word [eax], dx
je 0x1001e1db
lea eax, [ebp - 0x10]
push eax
call fcn.1001da0e
pop ecx
jmp 0x1001e1ee
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001e2b9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001def8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001e2b9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001e2b9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001e2b9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001e246
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10015009
test ebx, ebx
je 0x1001e2b4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10015009
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001e2b9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001e2b9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10021121
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001e2bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000358f
leave
ret
Function at 0x401520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x401539
cmp dword [ebp + 0xc], 0
jne 0x40153d
xor eax, eax
jmp 0x401594
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401592
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401592
mov eax, dword [ebp + 8]
jmp 0x401594
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4015a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4015b9
cmp dword [ebp + 0xc], 0
jne 0x4015bd
xor eax, eax
jmp 0x401616
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401614
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401614
mov eax, dword [ebp + 8]
jmp 0x401616
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003ef0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039753
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [esi + 0x18], 0x10
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], eax
lea eax, [esi + 4]
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
jb 0x10003f59
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x1400
push 0x1400
push 0xff
push 0
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x10003f9e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x104]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.CreateNamedPipe_failed
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x104]
call fcn.10004920
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100047d0
push eax
lea ecx, [ebp - 0x40]
call fcn.10003100
push 0x1004f1bc
lea eax, [ebp - 0x40]
push eax
call fcn.10021407
int3
Function at 0x10004270
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100397e3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x10004318
push 0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100042c3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x217
jne 0x1000431f
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [edi + 0x20]
call dword [eax + 4]
push 0x2c
call fcn.10007eab
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], 0
mov dword [eax], vtable.ipc::WinNamedPipe.0
mov dword [eax + 0x20], esi
mov byte [eax + 0x28], 1
mov byte [eax + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret
push str.WaitForConnection_is_not_supported_on_server_pipe_n
jmp 0x10004377
call esi
sub esp, 8
lea ecx, [ebp - 0xe8]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.WaitForConnection_failed
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10004920
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100047d0
push eax
lea ecx, [ebp - 0x34]
call fcn.10003100
push 0x1004f1bc
lea eax, [ebp - 0x34]
push eax
call fcn.10021407
int3
Function at 0x100043c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039836
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
push 0
push edx
push esi
push eax
push dword [ecx + 0x20]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004419
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10004419
cmp eax, esi
je 0x10004478
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
je 0x10004494
call esi
sub esp, 8
lea ecx, [ebp - 0x198]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.read_failed
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x198]
call fcn.10004920
mov byte [ebp - 4], 3
jmp 0x100044e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret 8
call esi
sub esp, 8
lea ecx, [ebp - 0xe8]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.pipe_disconnected
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10004920
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.100047d0
push eax
lea ecx, [ebp - 0x38]
call fcn.10003100
push 0x1004f1bc
lea eax, [ebp - 0x38]
push eax
call fcn.10021407
int3
Function at 0x10004600
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100398c6
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x1000472f
push 0
push 1
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push 0
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100046d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x217
jne 0x10004689
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x10004736
push dword [ebp + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100046d5
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [edi + 0x20]
call dword [eax + 4]
push 0x2c
call fcn.10007eab
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, eax
push esi
call fcn.10003da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007e8c
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x100046b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.AsyncWaitForConnection_failed
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10004920
mov byte [ebp - 4], 3
jmp 0x10004786
push str.WaitForConnection_is_not_supported_on_client_pipe_n
jmp 0x1000478e
call esi
sub esp, 8
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.100049e0
push esi
mov edx, str.AsyncWaitForConnection_failed
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xec]
call fcn.10007490
mov edx, str.__GLE
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.100052b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10004920
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.100047d0
push eax
lea ecx, [ebp - 0x34]
call fcn.10003100
push 0x1004f1bc
lea eax, [ebp - 0x34]
push eax
call fcn.10021407
int3
Function at 0x1000d0a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x438c8e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
dec edi
sub ecx, 0x360359d8
call fcn.00438ccc
add ecx, 0x6dd2699a
mov edi, edi
inc edi
xor dword [edx], eax
sub ecx, ecx
sub ecx, 0xcf599eb
inc edx
or edi, edi
mov ecx, 0x271b2a39
cmp edx, esi
jne fcn.00438c8e
and ecx, edi
inc edi
ret

Function at 0x710c78
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x7109ec
inc ecx
sub ecx, ecx
or edi, edi
call fcn.00710cb2
sub edi, edi
xor dword [esi], ebx
mov ecx, 0x5b90b811
inc esi
sub edi, 1
mov edi, ecx
add edi, 0x72748c37
cmp esi, edx
jne fcn.00710c78
add edi, 1
add edi, ecx
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x10005a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x100f0684
mov byte [0x100f069c], 0
mov dword [0x100f06a0], 0
mov dword [0x100f06a4], 0
mov dword [0x100f06a8], 0
mov dword [0x100f06c0], 0xf
mov dword [0x100f06bc], 0
mov byte [0x100f06ac], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x100f0680
push 0x10005bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100f0680], eax
mov eax, 0x100f0680
mov esp, ebp
pop ebp
ret
Function at 0x100074f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
call fcn.10007910
test eax, eax
jne 0x1000755b
cmp byte [edi + 8], al
je 0x10007516
mov byte [edi + 8], al
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.10006e10
mov ecx, dword [ebp - 4]
cmp ecx, dword [edi]
je 0x1000755b
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
add ecx, 0x14
push eax
push ecx
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.10001870
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x100075aa
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xffffff00
and ax, cx
xor ecx, ecx
cmp cx, ax
jne 0x10007593
mov ecx, dword [ebp + 8]
mov dl, bl
call fcn.100073f0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov ecx, edi
push ebx
push esi
call fcn.100076e0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 0x41]
cmp eax, 0x19
ja 0x10007613
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
mov ecx, 0xffffff00
and ax, cx
push 0x12
movzx edi, ax
call esi
mov ecx, 0xffffff00
and ax, cx
xor ecx, ecx
movzx eax, ax
cmp cx, di
jne 0x100075fa
cmp cx, ax
jne 0x100075fa
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push ebx
push esi
call fcn.100076e0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x100d688c
call fcn.10002360
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 0x60]
cmp eax, 9
ja 0x10007632
mov ecx, dword [ebp + 8]
lea edx, [ebx - 0x30]
call fcn.100073f0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 0x6a]
cmp eax, 5
ja 0x10007654
mov dl, byte [ebx + 0x100deabe]
mov ecx, dword [ebp + 8]
call fcn.100073f0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 0x70]
cmp eax, 0x17
ja 0x1000767c
mov esi, dword [ebp + 8]
lea eax, [ebx - 0x6f]
push eax
push 0x100d68e4
push esi
call fcn.10008f30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 0xba]
cmp eax, 6
jbe 0x10007593
lea eax, [ebx - 0xdb]
cmp eax, 4
jbe 0x10007593
cmp ebx, 0x20
jne 0x100076b8
mov ecx, dword [ebp + 8]
push 0x100d68ec
call fcn.10002360
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x100d68f0
call fcn.10002360
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100076e0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x100e7034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x514], ebx
push 0
mov dword [ebp - 0x518], edi
mov dword [ebp - 0x51c], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
mov byte [ebp - 0x104], 0
push 0xff
lea eax, [ebp - 0x103]
mov dword [ebp - 0x508], esi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
mov esi, dword [ebp + 0xc]
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x50c], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x304], ax
lea eax, [ebp - 0x302]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x304]
push dword [ebp - 0x508]
push 0
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x50c]
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x510], eax
push ecx
push eax
push str.ret:__d___s
push 1
push 0xba
push 0x100d6910
push str.CVirtualKeyManager::GetUnicodeVal
call fcn.100c3e10
mov edx, dword [ebp - 0x510]
add esp, 0x1c
cmp edx, 0xffffffff
jne 0x10007841
mov ebx, dword [ebp - 0x50c]
mov edi, dword [ebp - 0x508]
jmp 0x100077f0
push 0xff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x304]
push edi
push 0
push 0x100
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
js 0x100077f0
mov edi, dword [ebp - 0x518]
mov ebx, dword [ebp - 0x514]
mov edx, dword [ebp - 0x510]
cmp dword [edi + 0x10], 0
je 0x100078dc
cmp byte [edi + 9], 0
je 0x100078dc
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x504], ax
lea eax, [ebp - 0x502]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x504]
lea esi, [edi + 0x14]
push dword [ebp - 0x508]
push 0
push 0x100
push eax
push esi
push dword [edi + 0xc]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
push 0x100
push 0
push esi
mov dword [edi + 0x10], 0
mov byte [edi + 9], 0
mov dword [edi + 0xc], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x304]
push eax
mov ecx, ebx
call fcn.10002360
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ce72b
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xffffffff
mov dword [edi + 0x10], esi
mov ecx, 0x40
lea esi, [ebp - 0x104]
sete al
mov byte [edi + 9], al
mov eax, dword [ebp - 0x50c]
mov dword [edi + 0xc], eax
add edi, 0x14
rep movsd dword es:[edi], dword [esi]
cmp edx, 0xffffffff
jne 0x100078b9
push 0x100d690c
jmp 0x100078c0
Function at 0x10007910
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d01cb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100e7034]
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
push 0x63
lea eax, [ebp - 0x77]
mov byte [ebp - 0x78], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
lea eax, [ebp - 0x78]
push eax
push str.keyboard_name:__s
push 1
push 0xde
push str..._srcKeyboadHookutilVirtualKeyManager.cpp
push str.CVirtualKeyManager::GetSpecialKeyBoard
call fcn.100c3a80
add esp, 0x18
mov dword [ebp - 0x7c], 0xf
cmp byte [ebp - 0x78], 0
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
jne 0x1000799d
xor ecx, ecx
jmp 0x100079ac
lea ecx, [ebp - 0x78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100079a3
sub ecx, edx
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x90]
call fcn.10006d10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x90]
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x90]
mov ebx, dword [ebp - 0x90]
lea edx, [ebp - 0x90]
mov esi, dword [ebp - 0x80]
cmp edi, 0x10
cmovae eax, ebx
cmovae ecx, ebx
add eax, esi
cmp edi, 0x10
cmovae edx, ebx
cmp edx, eax
je 0x10007a18
push dword [sym.imp.MSVCR120.dll_towlower]
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.10007c00
mov edi, dword [ebp - 0x7c]
add esp, 0xc
mov esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x90]
cmp edi, 0x10
lea ecx, [ebp - 0x90]
mov eax, 8
cmovae ecx, ebx
cmp esi, eax
cmovb eax, esi
push eax
push str.0000000a
push ecx
call fcn.10007cc0
add esp, 0xc
test eax, eax
jne 0x10007a50
cmp esi, 8
jb 0x10007a50
cmp esi, 8
setne al
test eax, eax
je 0x10007ac1
cmp edi, 0x10
lea ecx, [ebp - 0x90]
mov eax, 8
cmovae ecx, ebx
cmp esi, eax
cmovb eax, esi
push eax
push str.0000040a
push ecx
call fcn.10007cc0
add esp, 0xc
test eax, eax
jne 0x10007a88
cmp esi, 8
jb 0x10007a88
cmp esi, 8
setne al
test eax, eax
je 0x10007ac1
cmp edi, 0x10
lea eax, [ebp - 0x90]
mov ecx, 8
cmovae eax, ebx
cmp esi, 8
cmovb ecx, esi
push ecx
push str.0001040a
push eax
call fcn.10007cc0
add esp, 0xc
test eax, eax
jne 0x10007ac8
cmp esi, 8
jb 0x10007ac8
cmp esi, 8
setne al
test eax, eax
jne 0x10007ac8
mov esi, 1
jmp 0x10007b2a
push str.00000016
lea ecx, [ebp - 0x90]
call fcn.10007da0
test eax, eax
je 0x10007b1c
push str.00000416
lea ecx, [ebp - 0x90]
call fcn.10007da0
test eax, eax
je 0x10007b1c
push str.00010416
lea ecx, [ebp - 0x90]
call fcn.10007da0
test eax, eax
je 0x10007b1c
push str.00000816
lea ecx, [ebp - 0x90]
call fcn.10007da0
test eax, eax
je 0x10007b1c
xor esi, esi
jmp 0x10007b21
mov esi, 2
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x7c]
cmp edi, 0x10
jb 0x10007b39
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
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.100ce72b
mov esp, ebp
pop ebp
ret