joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.00454dd0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48b470], bl
mov byte [0x48b471], bl
mov byte [0x48b472], bl
mov dword [0x48b474], ebx
mov dword [0x48b478], ebx
mov dword [0x48b47c], ebx
mov dword [0x48b480], ebx
mov dword [0x48b484], 0x472620
mov dword [0x48b488], ebx
mov dword [0x48b48c], ebx
mov dword [0x48b490], ebx
mov dword [0x48b494], 0x472620
mov dword [0x48b498], ebx
mov dword [0x48b49c], ebx
mov dword [0x48b4a0], ebx
mov dword [0x48b4a8], ebx
mov dword [0x48b4b0], ebx
call fcn.0044f8e7
pop ecx
mov dword [0x48b4a4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0045237c
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.004523c6
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00452403
mov edi, 0x20a
push edi
call fcn.0044f8e7
mov ecx, dword [0x48b4a4]
mov edx, dword [0x48b4a8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b4a8]
mov eax, dword [0x48b4a4]
mov eax, dword [eax + ecx*4]
inc dword [0x48b4a8]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044f86d
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ffc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407ff3
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, bx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x407f65
cmp ax, 0x3b
je 0x407f65
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f843
pop ecx
pop ecx
jmp 0x407fea
lea eax, [ebp - 0x21c]
push eax
call fcn.0045177a
test eax, eax
pop ecx
je 0x407fa1
lea eax, [ebp - 0x21c]
push eax
call fcn.0045177a
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x407fa1
lea eax, [ebp - 0x21c]
push 0x46c6b8
push eax
call fcn.0044f843
pop ecx
pop ecx
push edi
call fcn.0044f8e7
mov ecx, dword [0x48b4a4]
mov edx, dword [0x48b4a8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b4a8]
mov eax, dword [0x48b4a4]
mov eax, dword [eax + ecx*4]
inc dword [0x48b4a8]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00451790
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x407ff3
add dword [ebp - 8], 2
jmp 0x407f35
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48b470
pop ebx
leave
ret
Function at 0x408e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f8e7
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0044fd10
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x408e79
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x408e70
pop edi
pop ebx
leave
ret 4

Function at 0x409af8
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
push 5
pop eax
mov dword [0x48a548], eax
mov dword [0x48a54c], eax
mov al, byte [0x48a765]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x48a784], ebx
mov byte [0x48a550], 1
mov byte [0x48a551], bl
mov dword [0x48a554], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x48a794], eax
call esi
push ebx
push 0x10
mov byte [0x48a791], al
call esi
push ebx
push dword [0x48a794]
mov byte [0x48a78e], al
call esi
push ebx
push 0xa1
mov byte [0x48a78f], al
call esi
push ebx
push 0x11
mov byte [0x48a790], al
call esi
push ebx
push 0x12
mov byte [0x48a78c], al
call esi
mov byte [0x48a78d], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x478710]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x409bb0
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x409b97
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x409bf8
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.004525f8
add esp, 0xc
test eax, eax
mov byte [0x478712], 0x20
mov byte [0x478715], 0x20
je 0x409c8a
jmp 0x409c75
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x409c15
mov byte [0x478712], 0x20
jmp 0x409c6e
lea eax, [ebp - 6]
push 0x46ce34
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x409c32
mov byte [0x478715], 0x20
jmp 0x409c83
lea eax, [ebp - 6]
push 0x46ce38
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
je 0x409c0c
lea eax, [ebp - 6]
push 0x46ce3c
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
je 0x409c83
lea eax, [ebp - 6]
push 0x46ce40
push eax
call fcn.00452570
test eax, eax
pop ecx
pop ecx
jne 0x409c8a
mov byte [0x478715], 0x20
mov byte [0x478716], 0x20
mov byte [0x478713], 0x20
mov byte [0x478714], 0x20
leave
ret
Function at 0x409e9d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x409eb7
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x409f8d
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x409f58
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x48b920], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x409f2a
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48b920]
cmp ecx, eax
mov dword [0x48b91c], eax
je 0x409f1f
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48b91c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x409f8c
cmp dword [ebp - 8], ecx
jne 0x409f8c
cmp dword [ebp - 0xc], ecx
jne 0x409f8c
mov eax, dword [0x48b920]
cmp dword [ebp - 4], eax
jne 0x409f8c
cmp eax, dword [0x48b91c]
jne 0x409f8c
mov eax, dword [ebp + 8]
mov dword [eax + 0x240], ecx
jmp 0x409f8c
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x409f80
push edi
push dword [0x48b91c]
push eax
call esi
mov ecx, dword [0x48b920]
mov eax, dword [0x48b91c]
cmp ecx, eax
je 0x409f80
push edi
push eax
push ecx
call esi
push edi
push dword [0x48b920]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x409fa9
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x40a001
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409f92
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b0ec
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409f92
mov edi, dword [ebx]
push ebx
call fcn.0040b0ec
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x40a14c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
mov ebx, 0x200
test ebx, eax
push ebp
push edi
je 0x40a165
or dword [esi + 0x23c], 8
test ax, 0x400
je 0x40a172
or dword [esi + 0x23c], 1
mov edi, pe_nt_image_headers32
test edi, eax
je 0x40a182
or dword [esi + 0x23c], 2
mov eax, dword [esi + 0x23c]
test al, 8
je 0x40a19b
test ax, 0x800
je 0x40a19b
xor eax, 8
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 1
je 0x40a1b2
test edi, eax
je 0x40a1b2
xor eax, 1
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 2
je 0x40a1c9
test ebx, eax
je 0x40a1c9
xor eax, 2
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 0x10
je 0x40a1e2
test ax, 0x1000
je 0x40a1e2
xor eax, 0x10
mov dword [esi + 0x23c], eax
cmp dword [esi + 0x240], 0
je 0x40a23f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x23c]
test ax, 0x800
jne 0x40a207
mov byte [esp + 0x21], 0
test edi, eax
jne 0x40a210
mov byte [esp + 0x22], 0
test ebx, eax
jne 0x40a224
mov ecx, dword [esi + 0x24c]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x40a22f
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a330
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
pop ebx
push ebx
call ebp
mov edi, 0x8000
test di, ax
jne 0x40a261
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a275
test word [esi + 0x23c], 0x800
jne 0x40a275
push 0
mov eax, esi
call fcn.0040ab50
push 0x12
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a28c
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a2a0
test word [esi + 0x23c], 0x100
jne 0x40a2a0
push 0
mov eax, esi
call fcn.0040ab50
push dword [esi + 0x24c]
call ebp
test di, ax
jne 0x40a2be
push dword [esi + 0x24c]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a2d8
test word [esi + 0x23c], 0x200
jne 0x40a2d8
mov ebx, dword [esi + 0x24c]
push 0
mov eax, esi
call fcn.0040ab50
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40a2f1
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a305
test word [esi + 0x23c], 0x400
jne 0x40a305
push 0
mov eax, esi
call fcn.0040ab50
push 0x5b
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a31c
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a330
test word [esi + 0x23c], 0x1000
jne 0x40a330
push 0
mov eax, esi
call fcn.0040ab50
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40a33a
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x240], 0
je 0x40a3f3
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40a37f
test word [ebx + 0x23c], 0x800
jne 0x40a37f
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x40a395
test word [ebx + 0x23c], 0x100
jne 0x40a395
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x24c]
cmp byte [esp + ecx + 8], al
je 0x40a3a7
cmp byte [esp + 0x18], al
jne 0x40a3b7
test word [ebx + 0x23c], 0x200
jne 0x40a3b7
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40a3d0
test word [ebx + 0x23c], 0x400
jne 0x40a3d0
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x40a4d5
test word [ebx + 0x23c], 0x1000
jne 0x40a4d5
or dword [esp + 4], 0x10
jmp 0x40a4d5
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x40a419
push 0x11
call ebp
test si, ax
je 0x40a42c
test word [ebx + 0x23c], 0x800
jne 0x40a42c
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40a43e
push 0x12
call ebp
test si, ax
je 0x40a44e
test word [ebx + 0x23c], 0x100
jne 0x40a44e
or dword [esp + 0x10], 1
add ebx, 0x24c
push dword [ebx]
call edi
test si, ax
jne 0x40a466
push dword [ebx]
call ebp
test si, ax
je 0x40a47d
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x200
jne 0x40a47d
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x40a492
push ebx
call ebp
test si, ax
je 0x40a4a9
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x400
jne 0x40a4a9
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x40a4bb
push 0x5b
call ebp
test si, ax
je 0x40a4d2
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x1000
jne 0x40a4d2
or dword [esp + 0x10], 0x10
pop edi
pop esi
pop ebp
mov eax, dword [esp + 4]
pop ebx
add esp, 0x104
ret 4
Function at 0x40a5fb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
push edi
je 0x40a801
mov eax, dword [esi + 0x240]
xor edi, edi
cmp eax, edi
je 0x40a786
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a786
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x40a64d
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x40a66b
mov eax, dword [esi + 0x24c]
or byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
or byte [eax], cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x14], 4
je 0x40a67d
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x40a68c
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x40a69b
or byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, pe_nt_image_headers32
je 0x40a6d0
movzx eax, byte [esi + 0x249]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 0x10], 0
je 0x40a6f3
movzx eax, byte [esi + 0x247]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x24c]
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 0x14], 0
je 0x40a712
movzx eax, byte [esi + 0x248]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 8], 0
je 0x40a731
movzx eax, byte [esi + 0x244]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x240]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x40a7f8
cmp dword [ebp - 8], eax
jne 0x40a762
test word [ebp + 8], 0x800
jne 0x40a762
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40a77c
cmp dword [ebp - 0xc], eax
je 0x40a7f8
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
jmp 0x40a7f8
test bl, 0x10
je 0x40a79b
movzx eax, byte [esi + 0x249]
push edi
push eax
push 0x5b
call fcn.00409f92
test bl, 2
je 0x40a7b6
movzx eax, byte [esi + 0x247]
push edi
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00409f92
test bl, 4
je 0x40a7ce
movzx eax, byte [esi + 0x248]
push edi
push eax
push 0xa1
call fcn.00409f92
test bl, 8
je 0x40a7e3
movzx eax, byte [esi + 0x244]
push edi
push eax
push 0x11
call fcn.00409f92
test bl, 1
je 0x40a7f8
movzx eax, byte [esi + 0x245]
push edi
push eax
push 0x12
call fcn.00409f92
mov edi, dword [esi + 4]
push esi
call fcn.0040b0ec
pop edi
pop ebx
leave
ret 4
Function at 0x40a807
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x40aa1b
mov eax, dword [esi + 0x240]
test eax, eax
je 0x40a99a
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a99a
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
and eax, 1
mov dword [ebp - 0x10], eax
mov ebx, 0x101
je 0x40a883
test byte [ebp + 8], 8
jne 0x40a883
test word [ebp + 8], 0x800
jne 0x40a883
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40a89a
test eax, eax
je 0x40a8a2
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x40a8c8
movzx eax, byte [esi + 0x244]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x40a8f2
movzx eax, byte [esi + 0x247]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x24c]
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x40a918
movzx eax, byte [esi + 0x248]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x40a93e
movzx eax, byte [esi + 0x249]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x240]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x40a94d
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x40a967
mov eax, dword [esi + 0x24c]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x40a975
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x40a980
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x40a98b
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40aa13
test byte [ebp + 8], 1
push 2
pop ebx
je 0x40a9b3
movzx eax, byte [esi + 0x245]
push ebx
push eax
push 0x12
call fcn.00409f92
test byte [ebp + 8], 8
je 0x40a9c9
movzx eax, byte [esi + 0x244]
push ebx
push eax
push 0x11
call fcn.00409f92
test byte [ebp + 8], bl
je 0x40a9e4
movzx eax, byte [esi + 0x247]
push ebx
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00409f92
test byte [ebp + 8], 4
je 0x40a9fd
movzx eax, byte [esi + 0x248]
push ebx
push eax
push 0xa1
call fcn.00409f92
test byte [ebp + 8], 0x10
je 0x40aa13
movzx eax, byte [esi + 0x249]
push ebx
push eax
push 0x5b
call fcn.00409f92
mov edi, dword [esi]
push esi
call fcn.0040b0ec
pop edi
pop ebx
leave
ret 4
Function at 0x40aa46
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebx + 0x240], 0
mov esi, eax
je 0x40ab19
cmp edi, 0x14
je 0x40ab19
cmp edi, 0x90
je 0x40ab19
cmp edi, 0x91
je 0x40ab19
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 0x104], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
xor edx, edx
shl esi, 0x10
inc edx
or esi, edx
cmp byte [ebp + 8], dl
je 0x40aacf
cmp edi, 0x2d
je 0x40aac9
mov eax, edi
call fcn.0040a4e3
jmp 0x40aacb
mov al, dl
cmp al, dl
jne 0x40aad5
or esi, 0x1000000
mov ecx, dword [ebx + 0x23c]
test dl, cl
mov eax, pe_nt_image_headers32
jne 0x40aaed
test eax, ecx
jne 0x40aaed
cmp edi, 0x12
jne 0x40ab08
test cl, 8
jne 0x40ab08
test cx, 0x800
jne 0x40ab08
or esi, 0x20000000
push esi
push edi
push 0x104
jmp 0x40ab0b
push esi
push edi
push eax
push dword [ebx + 0x240]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ab41
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x40ab39
cmp edi, 0x2d
je 0x40ab2f
mov eax, edi
call fcn.0040a4e3
jmp 0x40ab31
mov al, dl
cmp al, dl
je 0x40ab39
push 0
jmp 0x40ab3a
push edx
push esi
push edi
call fcn.00409f92
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b0ec
pop edi
pop esi
leave
ret 4

Function at 0x40ab50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x240], 0
mov esi, eax
je 0x40ac26
cmp ebx, 0x14
je 0x40ac26
cmp ebx, 0x90
je 0x40ac26
cmp ebx, 0x91
je 0x40ac26
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x40abc6
cmp ebx, 0x2d
je 0x40abc0
mov eax, ebx
call fcn.0040a4e3
jmp 0x40abc2
mov al, 1
cmp al, 1
jne 0x40abcc
or esi, 0x1000000
mov eax, dword [edi + 0x23c]
test al, 1
jne 0x40abe1
test ax, 0x100
jne 0x40abe1
cmp ebx, 0x12
jne 0x40abfa
test al, 8
jne 0x40abfa
test ax, 0x800
jne 0x40abfa
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x40ac01
push esi
push ebx
push 0x101
push dword [edi + 0x240]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40ac4d
cmp byte [ebp + 8], 1
je 0x40ac44
cmp ebx, 0x2d
je 0x40ac3a
mov eax, ebx
call fcn.0040a4e3
jmp 0x40ac3c
mov al, 1
cmp al, 1
je 0x40ac44
push 2
jmp 0x40ac46
push 3
push esi
push ebx
call fcn.00409f92
push edi
mov edi, dword [edi]
call fcn.0040b0ec
pop edi
pop esi
leave
ret 4
Function at 0x40b0ec
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40b180
jne 0x40b104
push 0
jmp 0x40b17a
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x21d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40b179
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40b179
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x4726e0]
call fcn.00466d06
cmp eax, edi
jb 0x40b137
jmp 0x40b180
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4