joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e70
Capabilities:
Enumerate processes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x5a6008]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
lea ecx, [esp + 0x140]
call fcn.00426620
push 0x560f28
lea eax, [esp + 0x24c]
push 0x81
push eax
call fcn.0051736e
add esp, 0xc
lea eax, [esp + 0x140]
push eax
push 0x100
lea eax, [esp + 0x250]
push eax
push 0x560f28
push str.alternate_shell
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x124
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0
push 0
push eax
call fcn.00513330
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0x1000
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x425f2e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edi, dword [esp + 0x10]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x425f5e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x425f75
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax + eax]
lea eax, [esp + 0x3c]
push str.explorer.exe
push eax
call fcn.00522f90
add esp, 8
test eax, eax
je 0x425fc4
lea ecx, [esp + 0x248]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425fa0
sub ecx, edx
je 0x425fe5
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00522f90
add esp, 8
test eax, eax
jne 0x425fe5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x425fe5
cmp dword [esp + 0x10], edi
je 0x426011
lea eax, [esp + 0x18]
push eax
push esi
call ebx
test eax, eax
jne 0x425f80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2d4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x426170
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5b6e6c]
sub esp, 8
cmp dword [eax + 0xe20], 0
push esi
mov esi, ecx
je 0x4261f0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x426239
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
cmp dword [ebp - 4], 0
jne 0x4261f0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 0x560f28
push 0x101
push esi
call fcn.0051736e
add esp, 0xc
mov ecx, 0x560f28
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x426240
test dl, dl
je 0x4261ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x426240
add eax, 2
add ecx, 2
test dl, dl
jne 0x4261d0
xor eax, eax
jmp 0x426245
mov ecx, esi
mov dword [ebp - 8], 0x101
call fcn.00426040
test al, al
jne 0x4261c5
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4261c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
je 0x4261b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.processHelper::GetCurrentUser_:_getusername_error__d_n
push 0
push 0x5a6c48
call fcn.0041d720
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42626f
mov eax, dword [0x5b6e6c]
cmp dword [eax + 0xe20], 0
jne 0x42626f
push 0x101
push str.Default
push 0x101
push esi
call fcn.00522f4c
add esp, 0x10
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426850
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov eax, dword [esi + 4]
test eax, eax
jne 0x426872
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push eax
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x426892
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 0x109bc], eax
pop esi
setne al
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret
Function at 0x427810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53efd4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5a6008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5a8b40]
push 0x7f00
push 0
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x4275a0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0xffffff
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.borderscreen
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edi, dword [ebp + 0x14]
sub edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
sub ebx, dword [ebp + 8]
push 0
push dword [0x5a8b40]
push 0
push 0
push edi
push ebx
push closesocket
push closesocket
push 0x86000000
push str.borderscreen
push str.borderscreen
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x591cac
mov dword [0x5a8c48], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x427912
push 0x591cb4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0xfffffffffffffff0
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffbbffff
push eax
push 0xfffffffffffffff0
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_SetWindowLongA]
test esi, esi
je 0x427987
push 0xffffffffffffffec
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80028
push eax
push 0xffffffffffffffec
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push 0xffffff
push dword [0x5a8c48]
call esi
push 0x30
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x5b4770]
test eax, eax
jne 0x4279c8
push 0x20
call fcn.0051134c
add esp, 4
mov dword [ebp + 0x14], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00474710
mov dword [0x5b4770], eax
cmp byte [eax + 5], 0
je 0x4279dc
push 0x11
push dword [0x5a8c48]
call dword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4279f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f032
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5a6008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5b4770]
test ecx, ecx
jne 0x427a4b
push 0x20
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00474710
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5b4770], ecx
jmp 0x427a4d
mov eax, ecx
cmp byte [ecx + 5], 0
jne 0x427a86
test eax, eax
jne 0x427a7e
push 0x20
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00474710
mov dword [ebp - 4], 0xffffffff
mov dword [0x5b4770], eax
mov ecx, eax
cmp byte [ecx + 4], 0
jne 0x427ab7
test eax, eax
jne 0x427ab1
push 0x20
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00474710
mov dword [ebp - 4], 0xffffffff
mov dword [0x5b4770], eax
cmp byte [eax + 6], 0
je 0x427acc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 0
je 0x427b9f
cmp byte [ebp + 8], 0
je 0x427b71
call fcn.00426ed0
cmp byte [eax + 0xb], 0
je 0x427b4b
call fcn.00426ed0
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
js 0x427b4b
cmp dword [ebp + 0xc], 0
je 0x427b4b
push 0
call dword [sym.imp.dwmapi.dll_Ordinal_102]
test eax, eax
js 0x427b23
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x18]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x427b47
lea ecx, [ebp + 0xc]
push ecx
call eax
test eax, eax
js 0x427b47
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi + 0xb], al
jmp 0x427b4b
mov byte [esi + 0xb], 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0x427480
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x427b6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x427ba2
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x427b8f
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor bl, bl
call fcn.00426ed0
mov ecx, eax
call fcn.00474a10
jmp 0x427ba2
mov bl, byte [ebp + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427c60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5a6008]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0x30
push edi
push 5
mov dword [esp + 0x14], 3
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], 0x427dd0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], str.mouseSimulator
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x427d11
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x3c]
push 0
push dword [esi + 0x20]
push 0
push edi
push eax
mov eax, dword [esp + 0x58]
sub eax, ecx
push eax
push edx
push ecx
push 0x86800000
push str.mouseSimulator
push str.mouseSimulator
push 0x800a8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, eax
push esi
push 0xffffffffffffffeb
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call esi
and eax, 0xff30ffff
push eax
push 0xfffffffffffffff0
push ebx
call edi
push 0xffffffffffffffec
push ebx
call esi
and eax, 0xfffdfdfe
push eax
push 0xffffffffffffffec
push ebx
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0
push 0xffffff
push ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x42af50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5a6aa4], 0x63
mov byte [0x5a8d8c], 0
je 0x42b137
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42b137
lea eax, [ebp - 0x228]
push eax
push 0x20019
push 0
push str.System
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42afe7
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 4
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x224], 4
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42b137
cmp dword [ebp - 0x220], 4
jne 0x42b137
cmp dword [ebp - 0x224], 4
jne 0x42b137
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
cmp eax, dword [0x5a6aa4]
je 0x42b137
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str._en_auc
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051736e
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [0x5a6aa4]
call fcn.0052322e
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.005173c8
add esp, 0x24
mov dword [ebp - 0x26c], 0x3c
mov dword [ebp - 0x268], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 0x260], str.runas
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x24c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x42b150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, dl
push edi
mov edi, ecx
cmp bl, byte [0x5a6a95]
je 0x42b2aa
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x43c
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xorps xmm0, xmm0
push 0x493
push edi
movups xmmword [ebp - 0x14], xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x44], xmm0
call esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x42b2aa
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
je 0x42b201
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x42b1f2
movzx eax, bl
push eax
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x42b1c6
test bl, bl
jne 0x42b278
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [0x5a8c5c], 0
jne 0x42b243
cmp dword [0x5a8fec], 0
jne 0x42b243
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [0x5a8c5c], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
push 0
push dword [ebp - 0x48]
mov dword [0x5a8fec], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
push 6
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [0x5a6a95], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
push 6
push dword [0x5a8fec]
push dword [0x5a8c5c]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [0x5a6a95], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x42b5f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f260
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00426620
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.00425e70
test eax, eax
je 0x42b669
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push ecx
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42b71f
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42b6ed
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.005128c0
add esp, 8
test eax, eax
jne 0x42b6eb
mov eax, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42b6d7
push eax
call edi
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x42b801
push ecx
jmp 0x42b7ff
mov byte [eax], bl
push 0x560f28
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0051736e
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call fcn.005173c8
add esp, 0x18
mov eax, 0x58e428
jmp 0x42b73e
push 0x560f28
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0051736e
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call fcn.005173c8
push str.SC_20.ini
push 0x104
push edi
call fcn.005173c8
mov eax, dword [ebp - 0x120]
add esp, 0x18
test eax, eax
je 0x42b7c9
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x42b77e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x42b7c9
mov eax, dword [ebp - 0x120]
push 0x104
push edi
push str._TEMP_
push eax
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
push 0x58e428
push 0x104
push edi
call fcn.005173c8
push str.SC_20.ini
push 0x104
push edi
call fcn.005173c8
add esp, 0x18
mov ecx, esi
call fcn.0042b820
mov ecx, esi
call fcn.0042bc10
jmp 0x42b7db
mov ecx, esi
call fcn.0042b820
mov ecx, esi
call fcn.0042bc10
test ebx, ebx
jne 0x42b7e1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42b7f4
push eax
call edi
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x42b801
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x42bf10
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, ecx
mov eax, 8
sub eax, dword [ebp + 8]
push edi
push eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
add eax, dword [ebp + 8]
push eax
mov ecx, dword [ecx + 0x3a0]
call fcn.0047d6f0
mov ecx, dword [esp + 0x14]
mov edi, ecx
and edi, 0xff0000
mov eax, ecx
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
shl eax, 8
or edi, eax
cmp edi, 0xffffffff
jne 0x42bfa3
cmp byte [esi + 0x10], 0
jne 0x42c057
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x42c560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
je 0x42c057
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xfffffffe
jne 0x42bfcc
cmp byte [esi + 0x10], 0
je 0x42c057
push 0
push 1
push 0x111
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xfffffffd
je 0x42c057
cmp edi, 0x4000
jg 0x42c057
test edi, edi
jne 0x42c00d
push 0x560f28
push 0x475
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x4000
push edi
push dword [esi + 0x1c]
call fcn.00513330
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x4000
push 0
push dword [esi + 0x1c]
call fcn.00513330
mov ecx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [ecx + 0x3a0]
push edi
push dword [esi + 0x1c]
call fcn.0047d6f0
push 9
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xff
push dword [esi + 0x20]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0042c150
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42e740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42e787
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.005128c0
add esp, 8
test eax, eax
je 0x42e85a
mov byte [eax], 0
push str.uvnckeyboardhelper.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005173c8
lea eax, [ebp - 0x108]
push 0x592700
push eax
call fcn.0052394f
add esp, 0x14
test eax, eax
je 0x42e85a
push eax
call fcn.00523a8b
add esp, 4
mov dword [ebp - 0x144], 0x3c
lea eax, [ebp - 0x108]
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
movlpd qword [ebp - 0x120], xmm0
push eax
movlpd qword [ebp - 0x118], xmm0
movlpd qword [ebp - 0x110], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], 0x560f28
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x42e85a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret