joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403da0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 2
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesSysLib
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403df7
push 4
lea edx, [esp + 4]
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.NumberOfSysLibXs
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403dfb
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x403e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 4]
push eax
push 0
push 1
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesSysLib
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403e6f
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.NumberOfSysLibXs
push ecx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403e75
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 4], 4
jne 0x403e6f
cmp dword [esp + 8], 4
jne 0x403e6f
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x4040c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [0x434018]
mov ecx, dword [0x43401c]
mov dl, byte [0x434020]
push ebx
push esi
mov esi, dword [esp + 0x23c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x28], dl
call fcn.00403e10
push 0
mov dword [esi + 0x1650], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x40412a
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x230
ret
push edi
push esi
call fcn.004038e0
add esp, 4
push 0x104
lea eax, [esi + 0x1658]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
jbe 0x4041f9
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xff
sub ecx, eax
cmp edi, ecx
jae 0x4041f9
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x30]
mov edx, ecx
mov eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x244]
lea edx, [esp + 0x134]
push ecx
mov dword [esp + 0x10], eax
mov eax, edx
mov dword [esp + 0x18], edx
push esi
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x28], eax
call fcn.00403ea0
mov edi, eax
mov eax, dword [esi + 0x164c]
push eax
call fcn.00403da0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x230
ret
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041a7bc
add esp, 0x230
ret
Function at 0x4044b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x21c]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044e0
sub eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebx
test bl, 1
je 0x40450e
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x20c
ret
push 0x94
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0041a230
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 5
jb 0x4044f4
push esi
xor esi, esi
xor ecx, ecx
test ebx, ebx
jle 0x4045ae
mov dl, byte [esp + 0x13]
lea esp, [esp]
mov al, byte [ecx + edi]
cmp al, 0x30
jl 0x40455b
cmp al, 0x39
jle 0x404571
cmp al, 0x41
jl 0x404563
cmp al, 0x46
jle 0x404571
mov bl, al
sub bl, 0x61
cmp bl, 5
ja 0x404648
mov bl, al
sub bl, 0x30
cmp bl, 9
ja 0x40457f
sub al, 0x30
jmp 0x40458f
mov bl, al
sub bl, 0x41
cmp bl, 5
ja 0x40458d
sub al, 0x41
jmp 0x40458f
sub al, 0x61
test cl, 1
je 0x4045a5
mov bl, dl
shl bl, 4
add bl, al
mov byte [esp + esi + 0x118], bl
inc esi
jmp 0x4045a7
mov dl, al
inc ecx
cmp ecx, dword [esp + 0x14]
jl 0x404550
lea ecx, [esp + 0x118]
mov byte [esp + esi + 0x118], 0
xor eax, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4045c2
sub ecx, esi
test ecx, ecx
jle 0x404610
dec ecx
lea edx, [esp + 0x18]
lea esi, [esp + 0x119]
lea edi, [esp + 0x118]
shr ecx, 1
sub esi, edx
sub edi, edx
inc ecx
lea esp, [esp]
lea edx, [esi + eax]
movzx edx, byte [esp + edx + 0x18]
mov byte [esp + eax + 0x18], dl
lea edx, [edi + eax]
movzx edx, byte [esp + edx + 0x18]
mov byte [esp + eax + 0x19], dl
add eax, 2
sub ecx, 1
jne 0x4045f0
mov byte [esp + eax + 0x18], 0
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404620
mov eax, 1
mov ecx, dword [esp + 0x218]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x20c
ret
xor eax, eax
jmp 0x40462f
Function at 0x404fe0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37cc
call fcn.0041bfd0
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x37c8], eax
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov dword [esp + 0x10], 0x449c50
push ebp
lea eax, [esp + 0x2c]
push str..PhysicalDrive_d
push eax
call fcn.0041b156
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4051fd
xor eax, eax
push 0x2710
lea edx, [esp + 0x10cc]
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0041a230
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x10d4]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call edi
test eax, eax
je 0x4051f0
mov ecx, dword [esp + 0x10d4]
lea eax, [esp + 0x8f8]
push eax
push ebx
push ecx
lea edx, [esp + 0x10d4]
push edx
call fcn.00404e80
mov ecx, dword [esp + 0x10e8]
lea eax, [esp + 0x520]
push eax
push ebx
push ecx
lea edx, [esp + 0x10e4]
push edx
call fcn.00404e80
mov ecx, dword [esp + 0x10fc]
lea eax, [esp + 0xd00]
push eax
push ebx
push ecx
lea edx, [esp + 0x10f4]
push edx
call fcn.00404e80
mov ecx, dword [esp + 0x1110]
lea eax, [esp + 0x158]
push eax
push 1
push ecx
lea edx, [esp + 0x1104]
push edx
call fcn.00404e80
movsx eax, byte [esp + 0x168]
add esp, 0x40
push eax
call fcn.0041cec8
add esp, 4
test eax, eax
jne 0x405143
movsx ecx, byte [esp + 0x13b]
push ecx
call fcn.0041cec8
add esp, 4
test eax, eax
je 0x405158
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x128]
push edx
push eax
call fcn.00404e00
add esp, 8
cmp byte [0x449848], bl
jne 0x4051bb
movsx ecx, byte [esp + 0x128]
push ecx
call fcn.0041cec8
add esp, 4
test eax, eax
jne 0x40518a
movsx edx, byte [esp + 0x13b]
push edx
call fcn.0041cec8
add esp, 4
test eax, eax
je 0x4051bb
lea eax, [esp + 0x128]
push eax
push 0x449848
call fcn.00404e00
add esp, 8
xor eax, eax
mov cl, byte [esp + eax + 0x510]
mov byte [eax + 0x449448], cl
inc eax
cmp cl, bl
jne 0x4051a1
mov dword [esp + 0x18], 1
push 0x2710
lea ecx, [esp + 0x10cc]
push ebx
push ecx
call fcn.0041a230
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x10d4]
push eax
push ebx
push ebx
push 0x700a0
push esi
call edi
jmp 0x4051f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0x400
inc ebp
cmp eax, 0x44dc50
mov dword [esp + 0x10], eax
jl 0x405012
mov ecx, dword [esp + 0x37d8]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x37cc
ret
Function at 0x405a20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x94c
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x948], eax
mov eax, dword [esp + 0x950]
push ebx
mov ebx, dword [esp + 0x95c]
push ebp
mov ebp, dword [esp + 0x964]
push edi
xor edi, edi
cmp dword [esp + 0x960], edi
mov dword [esp + 0x10], eax
jg 0x405a75
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x948]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x94c
ret
push eax
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405a5b
push esi
mov esi, dword [esp + 0x970]
jmp 0x405ac0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x433b50
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push eax
call fcn.004059a0
add esp, 4
test eax, eax
je 0x405b3e
test ebp, ebp
je 0x405b1e
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x160]
push edx
call ebp
mov eax, dword [esp + 0x964]
push esi
push ebp
push ebx
dec eax
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.00405a20
add esp, 0x14
add edi, eax
jmp 0x405b60
lea edx, [esp + 0x18]
push edx
call fcn.004059e0
add esp, 4
test eax, eax
je 0x405b60
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x160]
push ecx
inc edi
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ac0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x958]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x94c
ret

Function at 0x405d90
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlComputerNameComputerName
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ddf
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push esi
push ecx
push eax
push eax
push str.ComputerName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405de3
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
ret
Function at 0x4061c0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x78
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebp
mov ebp, dword [esp + 0x84]
push esi
movsx esi, byte [esp + 0x84]
push esi
call fcn.0041d36a
add esp, 4
test eax, eax
jne 0x4061ff
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x78
ret
push esi
lea eax, [esp + 0x1c]
push str.._c:
push eax
mov dword [esp + 0x14], 0
call fcn.0041b156
push 0x96
call fcn.0041aea6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4061ec
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x406304
cmp edi, 0xffffffff
je 0x406304
xor eax, eax
push 0x8c
push eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.0041a230
add esp, 0xc
push 0
lea edx, [esp + 0x10]
push edx
push 0x8c
push esi
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x2d1400
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
push edi
mov dword [esi + 4], 0x8c
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4062d7
push esi
call fcn.0041af0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x78
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x1c]
push esi
call fcn.0041af0b
add esp, 4
mov dword [ebp], edi
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x78
ret
push esi
call fcn.0041af0b
mov ecx, dword [esp + 0x84]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0041a7bc
add esp, 0x78
ret
Function at 0x406ad0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, dword [esp + 0x74]
mov dword [esp + 4], 0
test esi, esi
je 0x406b82
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406af8
sub eax, edx
cmp eax, 2
jl 0x406b82
movsx eax, byte [esi]
push eax
call fcn.0041d36a
add esp, 4
test eax, eax
je 0x406b82
cmp byte [esi + 1], 0x3a
jne 0x406b82
push 0x64
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0041a230
push 3
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0041b468
add esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x406b82
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
call fcn.004061c0
add esp, 8
test eax, eax
je 0x406b82
mov eax, dword [esp + 4]
test eax, eax
je 0x406b82
xor ecx, ecx
cmp eax, 7
setne cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x6c
ret
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041a7bc
add esp, 0x6c
ret

Function at 0x406bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp dword [0x484984], 0
mov dword [esp + 4], 0x800
jne 0x406c7f
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x484168], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406c46
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x484168
push eax
push eax
push str.szBkavDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406c3c
mov eax, 0x484168
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c22
sub eax, edx
je 0x406c3c
cmp byte [eax + 0x484167], 0x5c
jne 0x406c3c
mov byte [eax + 0x484167], cl
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x484168], 0
jne 0x406c75
push 0x800
push 0x484168
call fcn.00402d70
push 0x800
push str.BkavPro
push 0x484168
call fcn.0041c136
add esp, 0x14
mov dword [0x484984], 1
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x406c92
mov eax, 0x484168
pop esi
add esp, 8
ret
push edi
mov edi, dword [esp + 0x18]
lea ecx, [edi - 1]
push ecx
push 0x484168
push esi
call fcn.0041b468
add esp, 0xc
mov byte [esi + edi - 1], 0
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x406cc0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406d27
lea ecx, [esp + 8]
push ecx
push 0x434344
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406d2e
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
add esp, 0x14
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x406d4d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
add esp, 0x14
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x14
ret

Function at 0x407850
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041a230
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp]
push edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x78]
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4078b5
add esp, 0x54
ret
cmp dword [esp + 0x5c], 0
je 0x4078c8
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x4078f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041a230
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp]
push edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x78]
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407955
add esp, 0x54
ret
cmp dword [esp + 0x5c], 0
je 0x407968
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x407990
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0041a230
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
mov word [esp + 0x64], cx
mov ecx, dword [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4079f6
add esp, 0x58
ret
cmp dword [esp + 0x64], 0
je 0x407a26
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x407a26
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x58
ret

Function at 0x407a50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0041a230
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
mov word [esp + 0x64], cx
mov ecx, dword [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407ab6
add esp, 0x58
ret
cmp dword [esp + 0x64], 0
je 0x407ae6
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x407ae6
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x58
ret

Function at 0x407eb0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x48498c], 0
jne 0x407ecd
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x48498c], eax
cmp dword [0x484988], 0
jne 0x407ef4
lea eax, [esp]
push eax
push 0
push 0
push 0x407e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret