joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436045
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x436094
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00414526
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x436145
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x43616c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00412620
add esp, 0xc
jmp 0x436180
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00414f74
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push str.TT
push ecx
mov byte [ebp - 4], 0
call fcn.00414fa0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4b85a8], eax
mov edx, 1
mov eax, 0x4b85a8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4b8f64
jl 0x436238
mov dword [0x4a30f4], 1
mov dword [0x4b8f78], 1
pop edi
pop ebp
ret

Function at 0x437127
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x4371c3
jne 0x43714a
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x4371bc
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x4371bc
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x49d950]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x437169
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437343
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x298]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x437420
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x437420
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4373ac
mov ecx, eax
lea ecx, [ecx]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x4373a3
cmp esi, edx
jle 0x4373ca
push str.0.0.0.0
push edi
call fcn.004129d8
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00412620
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004138c0
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
call fcn.0043691f
mov esi, eax
push esi
push edi
call fcn.004129d8
push esi
call fcn.004110b6
add esp, 0x1c
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4956f4
push edi
call fcn.004129d8
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43747d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004371c9
lea edx, [ebp - 0x20c]
push edx
call fcn.00412981
add esp, 0x10
test eax, eax
je 0x4374c5
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
jne 0x4374c5
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43756b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4374ff
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x437504
mov al, 1
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x43756f
push esi
push edi
lea edi, [ebp - 0x20c]
call fcn.00410140
mov esi, eax
push 0x5c
push esi
call fcn.004140fa
add esp, 8
test eax, eax
jne 0x437533
push esi
call fcn.004110b6
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0043747d
push esi
mov bl, al
call fcn.004110b6
add esp, 8
test bl, bl
je 0x437562
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 0x10
jne 0x4374f9
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x437848
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437862
test al, 0x10
je 0x437862
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x437866
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4378a5
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x43789a
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4378c3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4378ea
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.00412ac9
mov edx, dword [ebp + 8]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
push edi
call fcn.00412981
xor ecx, ecx
add eax, 0x1a
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ac9
mov esi, eax
push 0x496274
push esi
call fcn.004129d8
push 0x496274
push edi
call fcn.004133a6
add esp, 0x18
test eax, eax
je 0x4379d9
push str.StringFileInfo_
push esi
call fcn.004129a7
push 0x496274
push edi
call fcn.00413736
add esp, 0x10
test eax, eax
jne 0x4379cf
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4379aa
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push 4
lea ecx, [esi + 0x20]
push ecx
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.00436e0d
mov eax, dword [ebp - 0xc]
push 4
lea edx, [esi + 0x28]
push edx
shr eax, 0x10
push 0
push eax
call fcn.00436e0d
add esp, 0x20
jmp 0x4379b8
push str.04090000
push esi
call fcn.004129a7
add esp, 8
push 0x496274
push esi
call fcn.004129a7
push edi
push esi
call fcn.004129a7
add esp, 0x10
jmp 0x4379d9
push edi
push esi
call fcn.004129a7
add esp, 8
push str.DefaultLangCodepage
push edi
call fcn.00412e0d
add esp, 8
test eax, eax
jne 0x437a18
mov edi, dword [ebp + 0xc]
push 8
lea eax, [esi + 0x20]
push eax
push edi
call fcn.00413224
xor ecx, ecx
push ebx
mov word [edi + 0x10], cx
call fcn.004110b6
push esi
call fcn.004110b6
add esp, 0x14
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push esi
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x437aa0
push 0x496274
push edi
call fcn.004133a6
add esp, 8
test eax, eax
jne 0x437a6a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
mov edx, dword [ebp + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push edx
call fcn.00413505
add esp, 0x18
jmp 0x437a88
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push 0x200
push eax
push edi
call fcn.00413224
add esp, 0xc
xor ecx, ecx
mov word [edi + 0x400], cx
push ebx
call fcn.004110b6
push esi
call fcn.004110b6
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004110b6
push esi
call fcn.004110b6
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437c4e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00426660
lea eax, [ebp - 4]
push eax
push 0x800
lea ecx, [ebp - 0x102c]
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x437c7b
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp - 4]
push eax
shr edi, 2
mov byte [edx], 0
call fcn.00437c0f
add esp, 4
xor ebx, ebx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x437d88
push esi
jmp 0x437cae
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x437d87
mov edx, dword [ebp + ebx*4 - 0x102c]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov eax, dword [ebp - 8]
push 0x104
lea edx, [ebp - 0x424]
push edx
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x437d77
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.00413c7e
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004129a7
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00412e0d
add esp, 0x24
test eax, eax
jne 0x437d5a
mov edx, dword [ebp + ebx*4 - 0x102c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x437d71
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x437d77
mov eax, dword [ebp + ebx*4 - 0x102c]
cmp ecx, eax
jne 0x437d77
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x437cae
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
push 2
mov dword [ebp - 0x234], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ecx, dword [ebp + 8]
push ecx
mov byte [esi], 0
call fcn.00437c0f
add esp, 4
cmp byte [esi], 0
mov ebx, eax
jne 0x437e6e
lea ecx, [ecx]
lea edx, [ebp - 0x234]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x437e6e
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00413c7e
lea edx, [ebp - 0x63c]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.004129a7
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00412e0d
add esp, 0x24
test eax, eax
jne 0x437e4f
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x437e62
test ebx, ebx
je 0x437e65
mov eax, dword [ebp - 0x22c]
cmp ebx, eax
jne 0x437e65
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov byte [esi], 1
cmp byte [esi], 0
je 0x437de0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437e7e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x437edf
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4382f1
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp + 8]
mov esi, eax
cmp edi, esi
jne 0x438315
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
test esi, esi
jne 0x438327
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x43833b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x438435
push ebx
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [ebp - 4], eax
call esi
push 1
push edi
push ebx
call esi
mov ecx, dword [ebp - 4]
push 1
push ecx
push edi
call esi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43840a
push eax
push eax
push eax
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x438411
mov dword [ebp - 8], 4
jmp 0x438411
mov dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
push 0
push ecx
push ebx
call esi
push 0
push edi
push ebx
call esi
mov edx, dword [ebp - 4]
push 0
push edx
push edi
call esi
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43845b
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
test esi, esi
js 0x4384f3
jne 0x43847e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
cmp esi, 0xf
jae 0x4384eb
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x4384eb
mov dword [ebp + 8], esi
fild dword [ebp + 8]
test esi, esi
jns 0x4384a4
fadd qword [0x49d928]
fstp qword [ebp - 0x28]
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 8]
push ecx
call edi
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
call fcn.0040e0f0
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x4384ab
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov byte [ebp + 0xf], al
cmp byte [ebp + 0x10], al
je 0x438703
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push ebx
push esi
call fcn.004385f6
push esi
call fcn.00438655
push 2
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push ebx
push esi
call fcn.004385f6
push esi
call fcn.00438682
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x43a1f5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x43a212
mov eax, dword [eax]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop ebp
ret 8
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop ebp
ret 8

Function at 0x43a2c6
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x43a2f3
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x43a30c
push 1
jmp 0x43a2f5
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
pop ebp
ret 8
Function at 0x43a9ae
Capabilities:
Get token privileges

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

Function at 0x43aa53
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0043a93a
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 [ebp + 8]
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 [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call edi
push eax
call ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push 0
push 0
push esi
push 0x43aa10
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x43aabc
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, ebx
je 0x43ab17
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x43ab0a
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ab24
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
and eax, 2
or eax, 4
push 0
shr eax, 1
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x14
Function at 0x43ac0c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
xor ecx, ecx
xor edi, edi
mov dword [ebp + 0x14], ecx
test al, 1
je 0x43ac29
lea edi, [ecx + 1]
jmp 0x43ac32
test al, 2
je 0x43ac32
mov edi, 2
xor bl, bl
test al, 4
je 0x43ac71
lea eax, [ebp + 0x1c]
push eax
push 0xa
mov dword [ebp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp + 0x1c]
push 1
push ecx
lea edx, [ebp + 0x14]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x43aca6
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
or esi, 0x400
push esi
push edx
mov edx, dword [ebp + 8]
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 [ebp + 0x14]
test eax, eax
je 0x43acb4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x24