joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dce9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b781d
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push 0x4e4904
push eax
call fcn.00404460
add esp, 0xc
push 0x4e4904
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00404390
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00404150
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ff6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408014
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x1c], 0
mov ecx, 0x440
mov eax, 0x40
mov dword [ebp - 0x58], 0x3c
cmovne eax, ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
mov ecx, 5
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp byte [ebp + 0x18], al
mov dword [ebp - 0x4c], 0
cmovne eax, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x408097
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [edi], eax
cmp byte [ebp + 0x10], 0
je 0x4080b6
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4080d8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dcfd0
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004b7e00
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b781d
mov dword [ebp - 4], 1
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x4088e1
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
push 0x800
push 0
mov dword [ebp - 0x14], 2
mov dword [edi], eax
lea eax, [ebp - 0x814]
push eax
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4087f0
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4087c4
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00406c70
push 1
push 0x4e4834
mov ecx, edi
call fcn.00404660
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4088d0
mov dword [ebp - 4], 2
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x4088eb
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
push 0x800
push 0
mov dword [ebp - 0x14], 5
lea esi, [eax + 0x10]
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x10], esi
push eax
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4088a1
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408870
sub ecx, edx
lea eax, [ebp - 0x1014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406c70
push 1
push 0x4e4834
lea ecx, [ebp - 0x10]
call fcn.00404660
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00404150
mov dword [ebp - 0x14], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4088cf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
push 0x80004005
call fcn.00404870
int3
Function at 0x408c70
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd07e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004b781d
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x408d82
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x408d71
mov edx, dword [ebp - 0x18]
xor eax, eax
push esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x408d1c
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], 0
je 0x408d0f
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x408d00
jmp 0x408d1c
lea eax, [eax + eax*2]
movq xmm0, qword [esi + eax*4]
movq qword [ebp - 0x2c], xmm0
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0x2c]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x408d70
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x408d45
xor ecx, ecx
jmp 0x408d5f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d50
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406c70
push dword [ebp - 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3
Function at 0x4095b0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd1e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
call fcn.004b781d
push 0x208
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x4097d5
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004048a0
test al, al
jne 0x409672
lea ecx, [ebp - 0x2a8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409654
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c70
push ebx
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x12]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x94], 1
push eax
push ecx
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4d005c
push edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 0x630069
mov dword [ebp - 0x88], 0x6f0072
mov dword [ebp - 0x84], 0x6f0073
mov dword [ebp - 0x80], 0x740066
mov dword [ebp - 0x7c], 0x49005c
mov dword [ebp - 0x78], 0x74006e
mov dword [ebp - 0x74], 0x720065
mov dword [ebp - 0x70], 0x65006e
mov dword [ebp - 0x6c], 0x200074
mov dword [ebp - 0x68], 0x780045
mov dword [ebp - 0x64], 0x6c0070
mov dword [ebp - 0x60], 0x72006f
mov dword [ebp - 0x5c], 0x720065
mov dword [ebp - 0x58], 0x51005c
mov dword [ebp - 0x54], 0x690075
mov dword [ebp - 0x50], 0x6b0063
mov dword [ebp - 0x4c], 0x4c0020
mov dword [ebp - 0x48], 0x750061
mov dword [ebp - 0x44], 0x63006e
mov dword [ebp - 0x40], 0x5c0068
mov dword [ebp - 0x3c], 0x730055
mov dword [ebp - 0x38], 0x720065
mov dword [ebp - 0x34], 0x500020
mov dword [ebp - 0x30], 0x6e0069
mov dword [ebp - 0x2c], 0x65006e
mov dword [ebp - 0x28], 0x5c0064
mov dword [ebp - 0x24], 0x610054
mov dword [ebp - 0x20], 0x6b0073
mov dword [ebp - 0x1c], 0x610042
mov dword [ebp - 0x18], 0x5c0072
call fcn.00403ee0
mov edx, dword [eax]
mov dword [ebp - 4], 2
pop ebx
test edx, edx
jne 0x40979b
xor eax, eax
jmp 0x4097af
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097a0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00404660
lea ecx, [ebp - 0xa0]
call fcn.0040c330
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3
Function at 0x4097e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd247
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b781d
mov dword [ebp - 4], 1
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x409932
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x104
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x138]
push eax
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.004041d0
push 2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004061a0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404150
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4098ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x55005c
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x650073
mov dword [ebp - 0x1c], 0x730072
mov dword [ebp - 0x18], 0x5c
call fcn.00403ee0
mov edx, dword [eax]
mov dword [ebp - 4], 3
test edx, edx
jne 0x4098fa
xor eax, eax
jmp 0x409910
mov eax, edx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409900
sub eax, edi
sar eax, 1
pop edi
push eax
push edx
mov ecx, esi
call fcn.00404660
lea ecx, [ebp - 0x34]
call fcn.0040c330
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3
Function at 0x409eb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
mov ecx, 0x510279
call fcn.004b781d
push 6
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 8]
push eax
push 0x4e48d4
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x409fd5
push ebx
push edi
lea eax, [ebp - 1]
mov dword [ebp - 0x70], 0x790053
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], 0x740073
push ecx
lea edx, [ebp - 0x70]
mov dword [ebp - 0x68], 0x6d0065
push edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x64], 0x56002e
mov dword [ebp - 0x60], 0x6c006f
mov dword [ebp - 0x5c], 0x6d0075
mov dword [ebp - 0x58], 0x2e0065
mov dword [ebp - 0x54], 0x690042
mov dword [ebp - 0x50], 0x4c0074
mov dword [ebp - 0x4c], 0x63006f
mov dword [ebp - 0x48], 0x65006b
mov dword [ebp - 0x44], 0x500072
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x650074
mov dword [ebp - 0x38], 0x740063
mov dword [ebp - 0x34], 0x6f0069
mov dword [ebp - 0x30], 0x6e
call fcn.00403ee0
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax]
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040c330
pop edi
pop ebx
test esi, esi
js 0x409fd5
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
xorps xmm0, xmm0
lea edx, [ebp - 0x2c]
movups xmmword [ebp - 0x18], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x409fd5
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, 1
je 0x409fe2
cmp esi, 3
je 0x409fe2
cmp esi, 5
je 0x409fe2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x409fe2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409ff0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x510279
push 0xffffffffffffffff
push 0x4dd315
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.004b781d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40a143
lea eax, [ebp - 0x14]
push eax
call fcn.00408c70
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004ba880
add esp, 0x10
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x40a154
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.004048a0
test al, al
jne 0x40a0bf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a0a0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406c70
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40a10a
cmp dword [esi - 0xc], 0
je 0x40a10a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404270
add esp, 8
test al, al
je 0x40a10a
lea ecx, [ebp - 0x10]
call fcn.00403fc0
lea ecx, [ebp - 0x14]
call fcn.00403fc0
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a124
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40a143
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3
Function at 0x40a2c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
mov ecx, 0x510279
call fcn.004b781d
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov byte [ebp - 1], 1
test ebx, ebx
je 0x40a396
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a37c
nop
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a33e
test dx, dx
je 0x40a33a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a33e
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a318
xor eax, eax
jmp 0x40a343
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a365
mov esi, dword [ebp - 0x228]
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x40a378
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a310
jmp 0x40a37c
mov byte [ebp - 1], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 1]
xor ecx, ecx
pop edi
cmp esi, 0xffffffff
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a4d0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd37d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b781d
call fcn.00406d90
call fcn.00407060
mov eax, dword [eax + 8]
test eax, eax
je 0x40a5a9
cmp eax, 0xa
ja 0x40a51e
jb 0x40a5a9
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0
sub esp, 0x18
mov ecx, esi
mov edx, esp
lea edi, [ecx + 2]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a541
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403070
call fcn.0040de60
mov esi, dword [ebp + 8]
add esp, 0x1c
mov eax, esi
xorps xmm0, xmm0
push 1
sub esp, 0x18
lea edi, [eax + 2]
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a584
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
push esi
call fcn.00403070
call fcn.0040de60
add esp, 0x1c
jmp 0x40a65e
xor eax, eax
mov dword [ebp - 0x3c], 0x610074
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], 0x6b0073
push eax
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0x610062
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], 0x750072
mov dword [ebp - 0x2c], 0x70006e
mov dword [ebp - 0x28], 0x6e0069
call fcn.00403ee0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c330
xor eax, eax
mov dword [ebp - 0x38], 0x610074
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x34], 0x6b0073
push eax
push ecx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], 0x610062
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], 0x700072
mov dword [ebp - 0x28], 0x6e0069
call fcn.00403ee0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c330
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a680
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bab0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x510279
push edi
call fcn.004b781d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40bb16
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40baf5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40bb15
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
test eax, eax
jg 0x40bb32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bb40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x510279
call fcn.004b781d
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bb9c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x40bb86
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop esi
test eax, eax
jg 0x40bbb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bbc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b781d
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x40bc94
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bc83
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc57
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3
Function at 0x40bca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b781d
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x40bd74
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bd63
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bd37
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3

Function at 0x40bd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b781d
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x40be54
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004ba880
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40be43
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be17
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404660
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404870
int3