joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435d49
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x435dad
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x435db4
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ebx, 0x20
je 0x435e01
cmp ebx, 0x40
je 0x435e13
test bl, 0xb
jne 0x435dd1
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
add esp, 0x14
ret
xor ecx, ecx
test bl, 0x14
je 0x435ddd
mov ecx, 1
xor eax, eax
test bl, 2
je 0x435de9
mov eax, 1
mov edx, dword [esp + 0x20]
push edx
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
pop ebx
add esp, 0x14
ret
mov eax, 1
push 0
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop ebx
add esp, 0x14
ret
xor eax, eax
push eax
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop ebx
add esp, 0x14
ret

Function at 0x435e21
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x29c
push esi
mov esi, dword [esp + 0x2a4]
push edi
mov edi, dword [esp + 0x2ac]
lea eax, [esp + 0x110]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x435eff
push 0x100
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x10]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x435eff
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x435e8a
mov ecx, eax
lea esp, [esp]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x435e81
cmp esi, edx
jle 0x435eaa
push str.0.0.0.0
push edi
call fcn.00411441
add esp, 8
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00410d20
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00413740
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
call fcn.00435263
mov esi, eax
push esi
push edi
call fcn.00411441
push esi
call fcn.0041109f
add esp, 0x1c
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
push 0x4838e8
push edi
call fcn.00411441
add esp, 8
pop edi
pop esi
add esp, 0x29c
ret
Function at 0x435f5d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00435bc7
lea edx, [esp + 0xc]
push edx
call fcn.00411085
add esp, 0x10
test eax, eax
je 0x435f99
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x435f99
xor ecx, ecx
mov word [eax], cx
push ebp
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x436042
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 2
jne 0x435fd6
push 0
lea eax, [esp + 8]
push eax
call ebp
test eax, eax
je 0x435fdb
mov al, 1
pop ebp
add esp, 0x20c
ret
cmp eax, 3
jne 0x436046
push esi
push edi
lea edi, [esp + 0xc]
call fcn.0040fd60
mov esi, eax
push 0x5c
push esi
call fcn.00414027
add esp, 8
test eax, eax
jne 0x43600c
push esi
call fcn.0041109f
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20c
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00435f5d
push esi
mov bl, al
call fcn.0041109f
add esp, 8
test bl, bl
je 0x436035
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
test al, 0x10
jne 0x435fcc
xor al, al
pop ebp
add esp, 0x20c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43637a
test al, 0x10
je 0x43637a
mov al, 1
ret
xor al, al
ret

Function at 0x43637d
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 0x4363bc
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4363b1
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 0x4363d9
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x436401
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
push ebp
push esi
call fcn.004114ca
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push edi
call fcn.00411085
xor ecx, ecx
add eax, 0x1a
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004114ca
mov esi, eax
push 0x483e10
push esi
call fcn.00411441
push 0x483e10
push edi
call fcn.00413194
add esp, 0x18
test eax, eax
je 0x4364e4
push str.StringFileInfo_
push esi
call fcn.00411413
push 0x483e10
push edi
call fcn.00413522
add esp, 0x10
test eax, eax
jne 0x4364da
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4364b5
mov edx, dword [esp + 0x14]
mov ebx, dword [edx]
push 4
lea eax, [esi + 0x20]
push eax
push ebx
call fcn.0043578c
push 4
lea ecx, [esi + 0x28]
push ecx
shr ebx, 0x10
push ebx
call fcn.0043578c
add esp, 0x18
jmp 0x4364c3
push str.04090000
push esi
call fcn.00411413
add esp, 8
push 0x483e10
push esi
call fcn.00411413
push edi
push esi
call fcn.00411413
add esp, 0x10
jmp 0x4364e4
push edi
push esi
call fcn.00411413
add esp, 8
push str.DefaultLangCodepage
push edi
call fcn.00411380
add esp, 8
test eax, eax
jne 0x436525
mov edi, dword [esp + 0x28]
push 8
lea edx, [esi + 0x20]
push edx
push edi
call fcn.0041301a
xor eax, eax
push ebp
mov word [edi + 0x10], ax
call fcn.0041109f
push esi
call fcn.0041109f
add esp, 0x14
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4365b3
push 0x483e10
push edi
call fcn.00413194
add esp, 8
test eax, eax
jne 0x43657a
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
mov edx, dword [esp + 0x2c]
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.004132ea
add esp, 0x18
jmp 0x43659a
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
push 0x200
push eax
push edi
call fcn.0041301a
add esp, 0xc
xor ecx, ecx
mov word [edi + 0x400], cx
push ebp
call fcn.0041109f
push esi
call fcn.0041109f
add esp, 8
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
push ebp
call fcn.0041109f
push esi
call fcn.0041109f
add esp, 8
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x436767
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x102c
call fcn.00424fc0
push ebp
mov ebp, dword [esp + 0x103c]
lea eax, [esp + 4]
push eax
push 0x800
lea ecx, [esp + 0x838]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x43679e
xor al, al
pop ebp
add esp, 0x102c
ret
mov edx, dword [esp + 0x1034]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edx
shr esi, 2
mov byte [ebp], 0
call fcn.0043672b
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
jbe 0x4368b2
push edi
cmp byte [ebp], 0
jne 0x4368b1
mov eax, dword [esp + ebx*4 + 0x83c]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
mov edi, eax
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x22c]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4368a1
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x640]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.00413b60
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00411413
mov eax, dword [esp + 0x105c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00411380
add esp, 0x24
test eax, eax
jne 0x436881
mov edx, dword [esp + ebx*4 + 0x83c]
mov eax, dword [esp + 0x1044]
mov dword [eax], edx
jmp 0x43689d
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4368a1
mov eax, dword [esp + ebx*4 + 0x83c]
cmp ecx, eax
jne 0x4368a1
mov ecx, dword [esp + 0x1044]
mov dword [ecx], eax
mov byte [ebp], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x4367ca
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x102c
ret

Function at 0x4368be
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x840
push ebx
push ebp
mov ebp, dword [esp + 0x84c]
push esi
mov esi, dword [esp + 0x858]
push edi
push 0
push 2
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
push ebp
mov byte [esi], 0
call fcn.0043672b
add esp, 4
cmp byte [esi], 0
mov ebx, eax
jne 0x4369a3
lea ecx, [ecx]
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x4369a3
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x654]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00413b60
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x25c]
push edx
call fcn.00411413
lea eax, [esp + 0x260]
push ebp
push eax
call fcn.00411380
add esp, 0x24
test eax, eax
jne 0x436982
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x858]
mov dword [edx], ecx
jmp 0x436997
test ebx, ebx
je 0x43699a
mov eax, dword [esp + 0x20]
cmp ebx, eax
jne 0x43699a
mov ecx, dword [esp + 0x858]
mov dword [ecx], eax
mov byte [esi], 1
cmp byte [esi], 0
je 0x43690e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x840
ret
Function at 0x4369b7
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 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 0x436a19
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 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
add esp, 8
ret

Function at 0x436dcf
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ecx
push ebp
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, dword [esp + 0x10]
mov esi, eax
cmp ebp, esi
jne 0x436ded
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
test esi, esi
jne 0x436dff
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x436e13
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x436f06
push ebx
push edi
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebp
mov ebx, eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebp, eax
push ebp
push ebx
call esi
push 1
push edi
push ebx
call esi
push 1
push ebp
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x436ee0
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 ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x436ee8
mov dword [esp + 0x10], 4
jmp 0x436ee8
mov dword [esp + 0x10], 3
push 0
push ebp
push ebx
call esi
push 0
push edi
push ebx
call esi
push 0
push ebp
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4
pop esi
mov eax, 2
pop ebp
pop ecx
ret 4
Function at 0x437168
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x43720c
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x4371a3
test dword [ebp + 0x14], 0x800
jne 0x4371a3
mov ebx, 8
cmp byte [esp + 0x1a], al
jne 0x4371b5
test dword [ebp + 0x14], 0x100
jne 0x4371b5
or ebx, 1
cmp byte [esp + 0xa8], al
je 0x4371c4
cmp byte [esp + 0x18], al
jne 0x4371d0
test dword [ebp + 0x14], 0x200
jne 0x4371d0
or ebx, 2
cmp byte [esp + 0xa9], al
jne 0x4371e5
test dword [ebp + 0x14], 0x400
jne 0x4371e5
or ebx, 4
cmp byte [esp + 0x63], al
jne 0x4372f2
test dword [ebp + 0x14], 0x1000
jne 0x4372f2
or ebx, 0x10
pop ebp
mov eax, ebx
pop ebx
add esp, 0x100
ret 4
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x11
call esi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x437236
push 0x11
call edi
mov edx, 0x8000
test dx, ax
je 0x437244
test dword [ebp + 0x14], 0x800
jne 0x437244
mov ebx, 8
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
jne 0x437260
push 0x12
call edi
mov edx, 0x8000
test dx, ax
je 0x43726c
test dword [ebp + 0x14], 0x100
jne 0x43726c
or ebx, 1
push 0xa0
call esi
mov ecx, 0x8000
test cx, ax
jne 0x43728e
push 0xa0
call edi
mov edx, 0x8000
test dx, ax
je 0x43729a
test dword [ebp + 0x14], 0x200
jne 0x43729a
or ebx, 2
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
jne 0x4372bc
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x4372c8
test dword [ebp + 0x14], 0x400
jne 0x4372c8
or ebx, 4
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x4372e4
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
je 0x4372f0
test dword [ebp + 0x14], 0x1000
jne 0x4372f0
or ebx, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x100
ret 4

Function at 0x43730c
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [esp + 8]
movzx eax, ax
mov edx, eax
mov byte [ecx], al
mov ecx, dword [esp + 0xc]
sar edx, 8
cmp ax, 0xffff
mov byte [ecx], dl
setne al
ret 0xc
Function at 0x4373aa
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x4373c4
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], bl
je 0x4374a5
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
cmp byte [esp + 0x1c], bl
je 0x437471
push ebp
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push esi
mov dword [0x4a8358], eax
call ebx
mov dword [esp + 0x20], eax
test edi, edi
je 0x437437
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
mov ecx, dword [0x4a8358]
mov dword [0x4a8354], eax
cmp ecx, eax
je 0x43742f
push 1
push eax
push ecx
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x4a8354]
push 1
push eax
push esi
call ebx
jmp 0x43743b
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
pop ebp
jne 0x4374a4
cmp dword [esp + 0x18], 0
jne 0x4374a4
test eax, eax
jne 0x4374a4
mov eax, dword [0x4a8358]
cmp esi, eax
jne 0x4374a4
cmp eax, dword [0x4a8354]
jne 0x4374a4
mov edx, dword [esp + 0x14]
pop esi
pop edi
mov dword [edx + 0x18], 0
pop ebx
pop ecx
ret 0xc
cmp edi, ebx
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x437499
mov eax, dword [0x4a8354]
push ebx
push eax
push esi
call edi
mov ecx, dword [0x4a8358]
mov eax, dword [0x4a8354]
cmp ecx, eax
je 0x437499
push ebx
push eax
push ecx
call edi
mov ecx, dword [0x4a8358]
push ebx
push ecx
push esi
call edi
pop esi
pop edi
pop ebx
pop ecx
ret 0xc

Function at 0x4384ee
Capabilities:
Hide graphical window

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

Function at 0x4385c6
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x4385f3
lea eax, [esp + 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 0x43860c
push 1
jmp 0x4385f5
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 8
Function at 0x438c6b
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 0x438cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x438cc8
mov ecx, dword [esi]
push ecx
call fcn.00438bc5
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x438cc8
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x438cc8
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 0x438d11
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.00438bda
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 0x438cd1
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 0x438d79
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 0x438f35
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 0x438f51
lea edi, [ecx + 1]
jmp 0x438f5a
test al, 2
je 0x438f5a
mov edi, 2
xor bl, bl
test al, 4
je 0x438f9d
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 0x438fda
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 0x438fe9
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x24
Function at 0x440ca1
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 + 0x184]
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 0x440d5d
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x440d53
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x440d4a
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 4], ecx
jne 0x440d4a
cmp byte [eax + 0x88], 0xb
je 0x440d4a
mov cl, byte [eax + 0x8b]
movzx edx, cl
cmp edx, dword [ebp + 0x184]
je 0x440d1e
cmp byte [ebp + 0x18c], 0
je 0x440d4a
cmp cl, 0xff
je 0x440d4a
cmp byte [eax + 0x88], 0xa
je 0x440d4a
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 + 0x8a], 0x40
je 0x440d4a
cmp byte [eax + 0x88], 0x1a
jne 0x440d4a
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x440cd7
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x184], ecx
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x440dec
lea ecx, [ecx]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x440de3
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 4], ecx
jne 0x440de3
cmp byte [eax + 0x88], 0xb
je 0x440de3
movzx edx, byte [eax + 0x8b]
cmp edx, dword [ebp + 0x184]
jne 0x440de3
test byte [eax + 0x8a], 0x20
jne 0x440de3
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 + 0x8a], 0x40
je 0x440de3
cmp byte [eax + 0x88], 0x1a
jne 0x440de3
mov ecx, dword [eax]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x440d71
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x17c]
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