joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ae22
Capabilities:
Get token privileges

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push esi
push 0
push eax
push 3
push edi
call ebx
test eax, eax
jne 0x43ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43ae7f
mov ecx, dword [esi]
push ecx
call fcn.0043ae0d
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x43ae7f
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x43ae7f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x43aec8
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.0043ad95
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov esi, eax
push 0
push esi
call edi
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
push 2
push 0
push 0
lea edx, [esi + 8]
push edx
call edi
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push 0
push 0
push esi
push 0x43ae88
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x43af30
Capabilities:
Impersonate user

Disassembly:
movsx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
and eax, 2
or eax, 4
push 0
shr eax, 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
ret 0x14

Function at 0x43b0ec
Capabilities:
Create process on windows

Disassembly:
mov al, byte [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
test al, 1
je 0x43b108
lea edi, [ecx + 1]
jmp 0x43b111
test al, 2
je 0x43b111
mov edi, 2
xor bl, bl
test al, 4
je 0x43b154
push ebp
lea eax, [esp + 0x28]
push eax
push 0xa
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x43b191
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
or esi, 0x400
push esi
push edx
mov edx, dword [esp + 0x28]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43b1a0
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x24
Function at 0x4425b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x17c]
mov eax, dword [ebp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x1c]
je 0x442665
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x44265b
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x442652
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 4], ecx
jne 0x442652
cmp byte [eax + 0x78], 0xb
je 0x442652
mov cl, byte [eax + 0x7b]
movzx edx, cl
cmp edx, dword [ebp + 0x17c]
je 0x44262c
cmp byte [ebp + 0x184], 0
je 0x442652
cmp cl, 0xff
je 0x442652
cmp byte [eax + 0x78], 0xa
je 0x442652
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
test byte [eax + 0x7a], 0x40
je 0x442652
cmp byte [eax + 0x78], 0x1a
jne 0x442652
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x4425ee
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x17c], ecx
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x4426e4
lea ebx, [ebx]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x4426db
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 4], ecx
jne 0x4426db
cmp byte [eax + 0x78], 0xb
je 0x4426db
movzx edx, byte [eax + 0x7b]
cmp edx, dword [ebp + 0x17c]
jne 0x4426db
test byte [eax + 0x7a], 0x20
jne 0x4426db
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
mov ecx, dword [eax]
push 4
push ecx
call ebx
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
mov eax, dword [eax]
test byte [eax + 0x7a], 0x40
je 0x4426db
cmp byte [eax + 0x78], 0x1a
jne 0x4426db
mov ecx, dword [eax]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x442678
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x174]
push 0
push edx
push 0x130c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x443799
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
je 0x443863
xor eax, eax
cmp byte [0x49f412], al
je 0x4437eb
mov eax, 0x100
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push 0
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44386f
mov eax, dword [esp + 0x14]
push eax
call fcn.00443799
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x44386f
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x44386f
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
jne 0x4437dc
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x214
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x214
ret

Function at 0x443948
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, 2
push edi
mov word [ebx], ax
push ecx
or eax, 0xffffffff
call fcn.00411440
add esp, 4
mov esi, eax
push esi
call sub.WSOCK32.dll_inet_addr
push esi
mov edi, eax
call fcn.00412949
add esp, 4
cmp edi, 0xffffffff
jne 0x4439b0
mov eax, dword [esp + 0x14]
push 0
push 1
call fcn.0040bcd0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
mov eax, dword [esp + 0x14]
push 0
push 2
call fcn.0040bcd0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
lea edx, [ebp - 1]
mov dword [ebx + 4], edi
cmp edx, 0xfffe
ja 0x44399a
push ebp
call sub.WSOCK32.dll_htons
pop edi
pop esi
mov word [ebx + 2], ax
pop ebp
mov al, 1
pop ebx
ret 0x10
Function at 0x443af1
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x254
push ebx
mov ebx, dword [esp + 0x25c]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x10]
push eax
push ebx
mov ebp, ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x443b82
jmp 0x443b21
lea ecx, [esp + 0x3c]
push 0x481e54
push ecx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443b72
lea edx, [esp + 0x3c]
push 0x484c38
push edx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443b72
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x26c]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004385f6
add esp, 0xc
test al, al
je 0x443c3c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x443b21
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x274], 0
je 0x443c2d
lea ecx, [esp + 0x10]
push ecx
push 0x484c30
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x443c26
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
test byte [esp + 0x10], 0x10
je 0x443c16
lea edx, [esp + 0x3c]
push 0x481e54
push edx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443c16
lea eax, [esp + 0x3c]
push 0x484c38
push eax
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443c16
lea ecx, [esp + 0x3c]
push ecx
call edi
mov edx, dword [esp + 0x274]
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x26c]
push edx
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00443af1
test al, al
je 0x443c3c
push 0x484c38
call edi
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x443bb1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x254
ret 0x10

Function at 0x443eef
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x49f300], 0
push esi
push edi
mov esi, 0x49e930
jne 0x443f0f
push 0
call fcn.00416b32
push eax
call fcn.00436907
add esp, 8
mov dword [0x48caac], 0x270
mov dword [0x49e92c], esi
mov edx, 0xe3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi + 0x634]
add esi, 4
xor edi, eax
sub edx, 1
mov dword [esi - 4], edi
jne 0x443f24
mov edx, 0x18c
mov edi, edi
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
sub edx, 1
mov dword [esi - 4], edi
jne 0x443f5f
mov ecx, dword [0x49e930]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret
Function at 0x444548
Capabilities:
Create pipe

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 4], 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
test al, 0x10
je 0x44462d
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x44459a
push 1
push esi
push eax
call fcn.00436ea6
mov eax, dword [esi]
add esp, 0xc
pop esi
add esp, 0xc
ret 0xc
mov dword [esi], 0
mov eax, dword [esi]
pop esi
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x444608
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x4445dd
cmp eax, 0xffffffff
jne 0x444585
push 0
push 0x80
push 3
lea eax, [esp + 0x10]
push eax
push 1
push accept
push 0x4822a0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x44459a
test eax, eax
je 0x44459a
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00436ea6
push esi
call fcn.00436ed6
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [esi], eax
pop esi
add esp, 0xc
ret 0xc
test al, 1
je 0x4445ca
mov eax, dword [esi]
test eax, eax
je 0x4445a9
pop esi
add esp, 0xc
ret 0xc

Function at 0x444642
Capabilities:
Create pipe

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
test al, 0x10
je 0x444729
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x444697
push 1
push esi
push eax
call fcn.00436ea6
mov eax, dword [esi]
add esp, 0xc
pop esi
add esp, 0xc
ret 0x14
mov dword [esi], 0
mov eax, dword [esi]
pop esi
add esp, 0xc
ret 0x14
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 8]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x444704
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x4446d9
cmp eax, 0xffffffff
jne 0x444682
push 0
push 0x80
push 3
lea eax, [esp + 0x10]
push eax
push 2
push 0x40000000
push 0x4822a0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x444697
test eax, eax
je 0x444697
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00436ea6
push esi
call fcn.00436ed6
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esi], eax
pop esi
add esp, 0xc
ret 0x14
test dword [esp + 0x18], eax
je 0x4446c7
mov eax, dword [esi]
test eax, eax
je 0x4446a6
pop esi
add esp, 0xc
ret 0x14

Function at 0x444753
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x444765
push eax
call fcn.004443a2
mov eax, dword [esi + 0x24]
pop esi
test eax, eax
je 0x444776
mov dword [esp + 4], eax
jmp fcn.004443a2
ret 4
Function at 0x444779
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x20], 0
jne 0x4447a3
push esi
call fcn.00436f38
test al, al
je 0x4447a3
mov eax, dword [esi + 8]
push eax
call fcn.0044440f
add esp, 4
push eax
mov dword [esi + 0x20], eax
call fcn.00436e7d
cmp dword [esi + 0x24], 0
jne 0x4447d6
push esi
call fcn.00436f1c
test al, al
je 0x4447d6
push esi
call fcn.00436f0c
test al, al
jne 0x4447d6
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0044440f
add esp, 4
mov dword [esi + 0x24], eax
pop esi
mov dword [esp + 4], eax
jmp fcn.00436e7d
pop esi
ret 4

Function at 0x444801
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
push ecx
mov dword [esp + 0x18], edx
call fcn.00436ef0
test al, al
je 0x444853
test ebx, ebx
je 0x444853
test edi, edi
je 0x444853
push esi
push edx
lea eax, [esp + 0x1c]
push eax
lea esi, [ecx + 0x18]
mov ecx, dword [esi]
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x444849
push esi
call fcn.00436ed6
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
pop edi
mov eax, edx
pop ebx
ret 0xc

Function at 0x444ab1
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x444ace
push esi
call fcn.00437e30
add esp, 4
test al, al
jne 0x444ae7
push 1
jmp 0x444ad0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
ret
Function at 0x4454a8
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [esp + 0x2c], 1
cmp word [eax], si
jne 0x4454cf
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x18
push ebp
push eax
or eax, 0xffffffff
call fcn.00411440
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x30]
push ebp
mov byte [ebx], 0
mov byte [eax], 0
mov byte [ecx], 0
mov byte [edx], 0
call fcn.00414bb0
inc eax
push eax
call fcn.00412288
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
mov al, byte [esi + ebp]
cmp al, 0x2b
je 0x445520
cmp al, 0x5e
je 0x44551c
cmp al, 0x21
je 0x44551c
cmp al, 0x23
jne 0x445550
cmp al, 0x2b
jne 0x44552a
mov eax, dword [esp + 0x24]
mov byte [eax], 1
inc esi
jmp 0x445509
cmp al, 0x5e
jne 0x445538
mov edx, dword [esp + 0x28]
mov byte [edx], 1
inc esi
jmp 0x445509
cmp al, 0x21
jne 0x445546
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
inc esi
jmp 0x445509
cmp al, 0x23
jne 0x44554d
mov byte [ebx], 1
inc esi
jmp 0x445509
mov al, byte [esi + ebp]
inc esi
mov byte [esp + 0x14], al
mov dword [esp + 0x10], esi
cmp al, 0x7b
jne 0x445601
lea edx, [esp + 0x10]
push edx
push ecx
push ebp
push 0x7d
call fcn.004393a5
test eax, eax
je 0x445588
mov byte [esp + 0x30], 0
jmp 0x44563d
mov esi, dword [esp + 0x1c]
mov eax, dword [edi*4 + 0x48d6d0]
push esi
push eax
call fcn.00426af0
add esp, 8
test eax, eax
je 0x4455a7
inc edi
cmp edi, 0x62
jl 0x445588
cmp edi, 0x62
jne 0x4455e9
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov edx, dword [esp + 0x20]
cwde
mov dword [edx], eax
test eax, 0x200
je 0x4455cb
mov ecx, dword [esp + 0x28]
mov byte [ecx], 1
test eax, 0x400
je 0x4455d9
mov edx, dword [esp + 0x2c]
mov byte [edx], 1
test eax, 0x100
je 0x44563d
mov eax, dword [esp + 0x24]
mov byte [eax], 1
jmp 0x44563d
cmp byte [edi + 0x48d858], 0
jne 0x445576
mov ecx, dword [edi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
jmp 0x44563d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [esp + 0x20]
cwde
mov dword [ecx], eax
test eax, 0x200
je 0x445621
mov edx, dword [esp + 0x28]
mov byte [edx], 1
test eax, 0x400
je 0x44562f
mov ecx, dword [esp + 0x2c]
mov byte [ecx], 1
test eax, 0x100
je 0x44563d
mov edx, dword [esp + 0x24]
mov byte [edx], 1
mov eax, dword [esp + 0x20]
and dword [eax], 0xff
push ebp
call fcn.00412949
mov eax, dword [esp + 0x20]
push eax
call fcn.00412949
mov al, byte [esp + 0x38]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
Function at 0x445668
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp + 0x44], 0
mov esi, eax
je 0x44574f
cmp edi, 0x14
je 0x44574f
cmp edi, 0x90
je 0x44574f
cmp edi, 0x91
je 0x44574f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp bl, 1
je 0x4456e0
push edi
call fcn.004393f9
cmp al, 1
jne 0x4456e6
or esi, 0x1000000
mov eax, dword [ebp + 0x40]
test al, 1
jne 0x4456f9
test eax, 0x100
jne 0x4456f9
cmp edi, 0x12
jne 0x445717
test al, 8
jne 0x445717
test eax, 0x800
jne 0x445717
mov ecx, dword [ebp + 0x44]
or esi, 0x20000000
push esi
push edi
push 0x105
push ecx
jmp 0x445722
mov edx, dword [ebp + 0x44]
push esi
push edi
push 0x101
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor byte [esp + edi + 0x10], 0x80
lea eax, [esp + edi + 0x10]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push ebp
call fcn.004397cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x445764
push edi
call fcn.004393f9
cmp al, 1
je 0x445764
push 0
push 2
jmp 0x445768
push 0
push 3
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push ebp
call fcn.004397cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc

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

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp + 0x44], 0
mov esi, eax
je 0x44587a
cmp edi, 0x14
je 0x44587a
cmp edi, 0x90
je 0x44587a
cmp edi, 0x91
je 0x44587a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [esp + edi + 0x10], 0x80
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp bl, 1
je 0x445808
push edi
call fcn.004393f9
cmp al, 1
jne 0x44580e
or esi, 0x1000000
mov eax, dword [ebp + 0x40]
test al, 1
jne 0x445821
test eax, 0x100
jne 0x445821
cmp edi, 0x12
jne 0x445856
test al, 8
jne 0x445856
test eax, 0x800
jne 0x445856
mov edx, dword [ebp + 0x44]
or esi, 0x20000000
push esi
push edi
push 0x104
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call fcn.004397b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
mov eax, dword [ebp + 0x44]
push esi
push edi
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call fcn.004397b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x44588f
push edi
call fcn.004393f9
cmp al, 1
je 0x44588f
push 0
push 0
jmp 0x445893
push 0
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push ebp
call fcn.004397b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
Function at 0x4458d3
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x118]
test bl, 0x1f
je 0x445acf
mov eax, dword [esi + 0x44]
push edi
test eax, eax
je 0x445a62
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x445a62
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, ebx
and ebp, 1
je 0x44594e
test bl, 8
jne 0x44594e
test ebx, 0x800
jne 0x44594e
movzx ecx, byte [esi + 0x49]
mov edx, dword [esi + 0x44]
shl ecx, 0x10
or ecx, 0xe0000001
push ecx
push 0x12
push 0x105
push edx
jmp 0x44596a
test ebp, ebp
je 0x44596c
movzx eax, byte [esi + 0x49]
mov ecx, dword [esi + 0x44]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push 0x101
push ecx
call edi
mov eax, ebx
and eax, 8
mov dword [esp + 0x14], eax
je 0x445992
movzx edx, byte [esi + 0x48]
mov eax, dword [esi + 0x44]
shl edx, 0x10
or edx, 0xc0000001
push edx
push 0x11
push 0x101
push eax
call edi
mov eax, ebx
and eax, 2
mov dword [esp + 0x18], eax
je 0x4459ba
movzx ecx, byte [esi + 0x4b]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x44]
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push edx
push 0x101
push eax
call edi
mov eax, ebx
and eax, 4
mov dword [esp + 0x10], eax
je 0x4459e0
movzx ecx, byte [esi + 0x4c]
mov edx, dword [esi + 0x44]
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push 0x10
push 0x101
push edx
call edi
and ebx, 0x10
je 0x4459ff
movzx eax, byte [esi + 0x4d]
mov ecx, dword [esi + 0x44]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push ecx
call edi
mov cl, 0x80
test ebx, ebx
je 0x445a09
xor byte [esp + 0x77], cl
cmp dword [esp + 0x18], 0
je 0x445a1f
mov eax, dword [esi + 0x50]
xor byte [esp + 0x2c], cl
xor byte [esp + eax + 0x1c], cl
lea eax, [esp + eax + 0x1c]
cmp dword [esp + 0x10], 0
je 0x445a31
xor byte [esp + 0x2c], cl
xor byte [esp + 0xbd], cl
cmp dword [esp + 0x14], 0
je 0x445a3c
xor byte [esp + 0x2d], cl
test ebp, ebp
pop ebp
je 0x445a45
xor byte [esp + 0x2a], cl
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_SetKeyboardState]
push esi
call fcn.004397cf
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 8
mov edi, dword [sym.imp.USER32.dll_keybd_event]
test bl, 1
je 0x445a7a
movzx eax, byte [esi + 0x49]
push 0
push 2
push eax
push 0x12
call edi
test bl, 8
je 0x445a8c
movzx ecx, byte [esi + 0x48]
push 0
push 2
push ecx
push 0x11
call edi
test bl, 2
je 0x445aa1
movzx edx, byte [esi + 0x4b]
movzx eax, byte [esi + 0x50]
push 0
push 2
push edx
push eax
call edi
test bl, 4
je 0x445ab6
movzx ecx, byte [esi + 0x4c]
push 0
push 2
push ecx
push 0xa1
call edi
test bl, 0x10
je 0x445ac8
movzx edx, byte [esi + 0x4d]
push 0
push 2
push edx
push 0x5b
call edi
push esi
call fcn.004397cf
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 8