joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434d50
Capabilities:
Create directory
Delete directory

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xa30
push edi
mov edi, dword [esp + 0xa3c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x830]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x434dea
lea eax, [esp + 0x82c]
push eax
lea ecx, [esp + 0x10]
push str.___s
push ecx
call fcn.0041353a
lea edx, [esp + 0x18]
push edx
call fcn.004112d5
add esp, 0x10
cmp word [esp + eax*2 + 0xa], 0x5c
jne 0x434dd4
lea eax, [esp + 0xc]
push eax
call fcn.004112d5
add esp, 4
cmp word [esp + eax*2 + 8], 0x3a
je 0x434dd4
lea ecx, [esp + 0xc]
push ecx
call fcn.004112d5
add esp, 4
xor edx, edx
mov word [esp + eax*2 + 0xa], dx
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x434df6
cmp byte [esp + 0xa40], al
jne 0x434df6
xor eax, eax
pop edi
add esp, 0xa30
ret 0xc
push esi
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x434eba
push 0x14
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.004131f0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x228], 0xa0000003
call fcn.004112d5
add eax, eax
mov word [esp + 0x232], ax
mov edx, dword [esp + 0x232]
push 0x104
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x240]
add edx, 2
push ecx
mov word [esp + 0x240], dx
call fcn.0041326a
mov eax, dword [esp + 0x23e]
add esp, 0x1c
push 0
add eax, 0xc
mov word [esp + 0x220], ax
lea edx, [esp + 0x10]
push edx
push 0
movzx eax, ax
push 0
add eax, 8
push eax
lea ecx, [esp + 0x22c]
push ecx
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
test eax, eax
jne 0x434ece
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
pop esi
xor eax, eax
pop edi
add esp, 0xa30
ret 0xc
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, 1
pop edi
add esp, 0xa30
ret 0xc

Function at 0x434fa9
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, dword [esp + 0x210]
push ecx
push 0
push 0x4876f0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
add esp, 0x20c
ret 4

Function at 0x435152
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x435168
cmp eax, 0x10000
jne 0x43518c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.004151b0
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret 4

Function at 0x4351a6
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x4351d5
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004146ce
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4
Function at 0x4351d9
Capabilities:
Write file on windows

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

Function at 0x4352d1
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x4352f7
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00410f70
add esp, 0xc
jmp 0x43530c
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004151b0
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push str.EA06
push ecx
mov byte [esp + 0x10], 0
call fcn.004151d0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8

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

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4a72e8], eax
mov edx, 1
mov eax, 0x4a72e8
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, 0x4a7ca4
jl 0x4353c8
mov dword [0x49223c], 1
mov dword [0x4a7cb8], 1
pop edi
ret

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

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x436322
jne 0x436293
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x43631b
mov edi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x43631b
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x48c548]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x4362b8
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4364aa
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 0x43650e
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 0x436515
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ebx, 0x20
je 0x436562
cmp ebx, 0x40
je 0x436574
test bl, 0xb
jne 0x436532
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
add esp, 0x14
ret
xor ecx, ecx
test bl, 0x14
je 0x43653e
mov ecx, 1
xor eax, eax
test bl, 2
je 0x43654a
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 0x436582
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 0x436660
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 0x436660
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4365eb
mov ecx, eax
lea esp, [esp]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x4365e2
cmp esi, edx
jle 0x43660b
push str.0.0.0.0
push edi
call fcn.00411691
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.00410f70
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.00413990
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
call fcn.004359c4
mov esi, eax
push esi
push edi
call fcn.00411691
push esi
call fcn.004112ef
add esp, 0x1c
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
push 0x4848e8
push edi
call fcn.00411691
add esp, 8
pop edi
pop esi
add esp, 0x29c
ret
Function at 0x4366be
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.00436328
lea edx, [esp + 0xc]
push edx
call fcn.004112d5
add esp, 0x10
test eax, eax
je 0x4366fa
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x4366fa
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 0x4367a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp eax, 2
jne 0x436737
push 0
lea eax, [esp + 8]
push eax
call ebp
test eax, eax
je 0x43673c
mov al, 1
pop ebp
add esp, 0x20c
ret
cmp eax, 3
jne 0x4367a7
push esi
push edi
lea edi, [esp + 0xc]
call fcn.0040fff0
mov esi, eax
push 0x5c
push esi
call fcn.00414277
add esp, 8
test eax, eax
jne 0x43676d
push esi
call fcn.004112ef
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.004366be
push esi
mov bl, al
call fcn.004112ef
add esp, 8
test bl, bl
je 0x436796
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 0x43672d
xor al, al
pop ebp
add esp, 0x20c
ret

Function at 0x436ac4
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 0x436adb
test al, 0x10
je 0x436adb
mov al, 1
ret
xor al, al
ret

Function at 0x436ade
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 0x436b1d
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x436b12
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 0x436ec8
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x102c
call fcn.00425210
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 0x436eff
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.00436e8c
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
jbe 0x437013
push edi
cmp byte [ebp], 0
jne 0x437012
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 0x437002
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.00413db0
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00411663
mov eax, dword [esp + 0x105c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004115d0
add esp, 0x24
test eax, eax
jne 0x436fe2
mov edx, dword [esp + ebx*4 + 0x83c]
mov eax, dword [esp + 0x1044]
mov dword [eax], edx
jmp 0x436ffe
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x437002
mov eax, dword [esp + ebx*4 + 0x83c]
cmp ecx, eax
jne 0x437002
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 0x436f2b
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x102c
ret

Function at 0x43701f
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.00436e8c
add esp, 4
cmp byte [esi], 0
mov ebx, eax
jne 0x437104
lea ecx, [ecx]
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.KERNEL32.DLL_Process32NextW
cmp eax, 1
jne 0x437104
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.00413db0
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x25c]
push edx
call fcn.00411663
lea eax, [esp + 0x260]
push ebp
push eax
call fcn.004115d0
add esp, 0x24
test eax, eax
jne 0x4370e3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x858]
mov dword [edx], ecx
jmp 0x4370f8
test ebx, ebx
je 0x4370fb
mov eax, dword [esp + 0x20]
cmp ebx, eax
jne 0x4370fb
mov ecx, dword [esp + 0x858]
mov dword [ecx], eax
mov byte [esi], 1
cmp byte [esi], 0
je 0x43706f
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 0x437118
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 0x43717a
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 0x4375b0
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 0x4375ce
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
test esi, esi
jne 0x4375e0
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 0x4375f4
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 0x4376e7
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 0x4376c1
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 0x4376c9
mov dword [esp + 0x10], 4
jmp 0x4376c9
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 0x4377b4
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x4377ce
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], bl
je 0x4378af
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 0x43787b
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 [0x4a9358], eax
call ebx
mov dword [esp + 0x20], eax
test edi, edi
je 0x437841
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
mov ecx, dword [0x4a9358]
mov dword [0x4a9354], eax
cmp ecx, eax
je 0x437839
push 1
push eax
push ecx
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x4a9354]
push 1
push eax
push esi
call ebx
jmp 0x437845
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
pop ebp
jne 0x4378ae
cmp dword [esp + 0x18], 0
jne 0x4378ae
test eax, eax
jne 0x4378ae
mov eax, dword [0x4a9358]
cmp esi, eax
jne 0x4378ae
cmp eax, dword [0x4a9354]
jne 0x4378ae
mov edx, dword [esp + 0x14]
pop esi
pop edi
mov dword [edx + 0x20], 0
pop ebx
pop ecx
ret 0xc
cmp edi, ebx
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4378a3
mov eax, dword [0x4a9354]
push ebx
push eax
push esi
call edi
mov ecx, dword [0x4a9358]
mov eax, dword [0x4a9354]
cmp ecx, eax
je 0x4378a3
push ebx
push eax
push ecx
call edi
mov ecx, dword [0x4a9358]
push ebx
push ecx
push esi
call edi
pop esi
pop edi
pop ebx
pop ecx
ret 0xc

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
movzx edi, byte [esp + 0x14]
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
cmp byte [esp + 0x18], bl
je 0x4379d4
push ebp
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push edi
call ebp
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004378b5
push esi
call fcn.0043792a
push 2
push 0
push edi
call ebp
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call fcn.004378b5
push esi
call fcn.00437953
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
ret 0xc

Function at 0x4388ba
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 8], 0
mov eax, dword [esp + 4]
je 0x4388d5
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 0x4389a1
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x4389ce
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 0x4389e7
push 1
jmp 0x4389d0
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 0x43905c
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 0x4390ad
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4390b9
mov ecx, dword [esi]
push ecx
call fcn.00438fcf
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x4390b9
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x4390b9
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 0x439102
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.00438fe4
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 0x4390c2
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 0x43916a
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 0x439326
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 0x439342
lea edi, [ecx + 1]
jmp 0x43934b
test al, 2
je 0x43934b
mov edi, 2
xor bl, bl
test al, 4
je 0x43938e
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 0x4393cb
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 0x4393da
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x24