joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401720
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401787
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call fcn.00401c70
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4017c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00401c70
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x43230c
push 0x43230c
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x40181e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
call fcn.00401c70
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret
push str.Service_installed_successfully_n
call fcn.00401c70
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d4da
mov esp, ebp
pop ebp
ret

Function at 0x401960
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x438d10], eax
test eax, eax
jne 0x4019bd
push 0x438d18
push dword [0x438d14]
mov dword [0x438d1c], 1
mov dword [0x438d24], 0
mov dword [0x438d30], 0
mov dword [0x438d20], 1
mov dword [0x438d2c], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
ret
push str.start_start
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x438d38], 0
jne 0x4019fd
push 0
push 0
push 0x438d38
push 0x401d40
push 0
push 0
mov byte [0x438d40], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x438d38], eax
test eax, eax
je 0x401977
push 0x438d18
push dword [0x438d14]
mov dword [0x438d1c], 4
mov dword [0x438d24], 0
mov dword [0x438d30], 0
mov dword [0x438d20], 1
mov dword [0x438d2c], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0xffffffffffffffff
push dword [0x438d10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x438d38
call fcn.004055d0
push 0x438d18
push dword [0x438d14]
mov dword [0x438d1c], 1
mov dword [0x438d24], 0
mov dword [0x438d30], 0
mov dword [0x438d20], 1
mov dword [0x438d2c], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, 1
ret
Function at 0x401b20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xac], 0
push 0
push eax
mov dword [ebp - 0xa8], 0
call fcn.0040fa70
add esp, 0xc
push 0x43230c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401be0
add esp, 0x14
mov dword [ebp - 0xac], 0x43230c
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020001
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d4da
mov esp, ebp
pop ebp
ret
Function at 0x401d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426050
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x43700c]
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 edi, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0
push 0
call esi
push 0x28
call fcn.0040dcc8
mov dword [ebp - 0x24], eax
add esp, 4
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], 4
mov dword [eax + 4], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], esi
mov dword [eax], vtable.CProcessWnd.0
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 0xc
call fcn.004029a0
mov ebx, eax
test ebx, ebx
js 0x401f3c
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x43249c
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x78]
mov esi, dword [0x438ce4]
add esi, 0x10
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x438d80]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402930
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0xc]
xorps xmm0, xmm0
push dword [ebp - 0x24]
movups xmmword [ebp - 0x20], xmm0
lea eax, [esi + 0x20]
push eax
push 0x4378b8
call fcn.004021d0
add esp, 8
movzx eax, ax
push eax
push 0
push 0x188
push 0x80000000
push 0x431228
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00402010
test eax, eax
je 0x401f1a
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
push 0
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push 0x4065e0
push 0
push 0
mov byte [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x38], eax
call fcn.00402840
call fcn.004026f0
mov eax, dword [edi + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004055d0
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401f10
push eax
call esi
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x401f1a
push eax
call esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x401f28
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0xc], 0
call fcn.00402560
lea ecx, [ebp - 0x78]
call fcn.00401f60
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
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.0040d4da
mov esp, ebp
pop ebp
ret
Function at 0x404360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x43700c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004042b0
mov esi, eax
test esi, esi
jne 0x404457
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x404429
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00404360
mov esi, eax
test esi, esi
jne 0x404457
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x4043f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404440
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004044a0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404466
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret 4
Function at 0x405080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426246
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40512c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40512c
call fcn.00403570
mov esi, eax
jmp 0x40521c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40514f
call fcn.00403570
jmp 0x40520f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40516d
call fcn.00403570
jmp 0x40520f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40518e
mov esi, 0x8007000e
jmp 0x405211
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403520
jmp 0x4051b8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4051cf
mov esi, 0x8007000e
jmp 0x405211
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4051ef
call fcn.00403570
jmp 0x40520f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00404f20
mov esi, eax
test edi, edi
je 0x40521c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405240
lea ecx, [ebp - 0x418]
call fcn.004034d0
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406139
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406176
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406172
nop word [eax + eax]
cmp esi, edx
jae 0x406176
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406160
cmp esi, edx
jb 0x40617d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406670
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426370
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push 0x1000
push eax
push eax
mov byte [ebp - 4], 1
mov edi, 1
push 4
push dword [ecx]
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x406740
cmp byte [esi], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x4066fd
xor ecx, ecx
jmp 0x40670b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406702
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004076a0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407020
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x58]
call fcn.004072b0
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
push edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x68]
push eax
call fcn.00406a70
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40678f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4067a4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4067b9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004069e0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4067e2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004069e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret
Function at 0x406800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4263ab
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0040fa70
add esp, 0xc
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push 0xf003f
push 0
push 0x432bd8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4068d1
lea eax, [ebp - 0x438]
mov dword [ebp - 0x428], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x438], 0x208
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
jmp 0x40690e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push str.ComputerZ_PDFAssistant.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0
push str._check_updateserver
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x434]
call fcn.00406a70
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x406973
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x434], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x406984
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret
Function at 0x406a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x468
mov eax, dword [0x43700c]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0xc], eax
test edi, edi
jne 0x406ab4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jne 0x406ac3
call fcn.00406c90
test eax, eax
je 0x406a9c
cmp dword [esi], 0
je 0x406a9c
cmp dword [ebp + 0x10], 0
je 0x406ad7
xor dword [esi + 4], 0x8000000
jmp 0x406ade
or dword [esi + 4], 0x8000000
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0040fa70
add esp, 0xc
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x68]
mov dword [esp + 0x28], str.winsta0default
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x400
push 0
push eax
call fcn.0040fa70
add esp, 0xc
lea eax, [esp + 0x68]
push dword [esp + 0xc]
push edi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esi + 8]
lea eax, [esp + 0x78]
push dword [esi + 4]
push 0
push 0
push 0
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x406b6a
test eax, eax
jne 0x406b6f
mov edi, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x406b80
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406b8b
push eax
call esi
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406bb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406bf0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4da
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406c5d
mov edi, dword [ebp + 0xc]
nop
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00410b09
add esp, 8
test eax, eax
jne 0x406c49
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x406c49
cmp dword [ebp - 0x234], edi
je 0x406c79
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406c10
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d4da
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x228]
jmp 0x406c5d
Function at 0x406c90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4263e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSGetActiveConsoleSessionId
push str.kernel32.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.WTSQueryUserToken
push str.Wtsapi32.dll
mov dword [ebp - 0x10], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x406d12
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x406cfe
call eax
mov edi, eax
mov dword [ebx + 4], 0x20
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call esi
test eax, eax
jne 0x406dda
push 0x432d28
lea ecx, [ebp - 0x10]
call fcn.004064e0
push 4
push str.lore
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00406ea0
push 3
push 0x432d3c
lea ecx, [ebp - 0x10]
call fcn.00406ea0
push 2
push 0x432d44
lea ecx, [ebp - 0x10]
call fcn.00406ea0
push edi
push dword [ebp - 0x10]
call fcn.00406bb0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406de9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406de9
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x406e09
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x406e2f
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebx]
test eax, eax
je 0x406e54
push 1
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x406e54
or dword [ebx + 4], 0x400
mov ebx, 1
jmp 0x406e5d
mov dword [ebx + 8], 0
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x406e6a
push edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406e74
push eax
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406e7e
push ecx
call esi
mov eax, ebx
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 0x401070
Capabilities:
Delete file
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x40109c
pop edi
pop esi
pop ebp
pop ecx
ret
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4010b0
pop edi
pop esi
pop ebp
pop ecx
ret
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4010d6
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push str.WriteFile
push str.KERNEL32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.SizeofResource
push str.KERNEL32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call ebx
xor esi, esi
push ebp
mov ebx, eax
push esi
call ebx
test eax, eax
jbe 0x401124
mov dl, byte [esi + edi]
push ebp
xor dl, 0x24
push 0
mov byte [esi + edi], dl
inc esi
call ebx
cmp esi, eax
jb 0x401111
lea edx, [esp + 0x10]
push 0
push edx
push ebp
push 0
call ebx
mov esi, dword [esp + 0x28]
push eax
push edi
push esi
call dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret