joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010988
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.1800f8e1
and dword [ebp - 0xc], 0
mov edx, esi
push ecx
push ecx
lea ecx, [ebp - 0xc]
call fcn.18012dcc
push 0x250
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.1812f700
push edi
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x268]
call fcn.18009c81
add esp, 0x18
lea ecx, [ebp - 0x264]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp esi, 0xffffffff
jne 0x18010a0e
call fcn.1801bb25
mov edi, eax
jmp 0x18010a71
cmp dword [ebp - 0x264], 0x80
je 0x18010a23
test byte [ebp - 0x264], 0x10
jne 0x18010a50
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.18009c81
pop ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.18009bb4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18010a0e
call fcn.1801bb25
mov edi, eax
cmp edi, 0x80070012
je 0x18010a78
cmp esi, 0xffffffff
je 0x18010a81
jmp 0x18010a7a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret

Function at 0x18010a9d
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.180108ab
test al, al
je 0x18010ad9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18010ace
test al, 1
je 0x18010ace
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x18010ace
pop esi
jmp fcn.1801bb25
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x18010ac8
xor eax, eax
pop esi
ret

Function at 0x180110a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
mov edi, ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180110e1
call fcn.1801bb25
jmp 0x180110f9
mov eax, dword [ebp - 8]
test esi, esi
je 0x180110ea
mov dword [esi], eax
add dword [edi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1811aa48
leave
ret 0xc
Function at 0x1801178f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x180117bc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1811aa48
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.1812f700
mov esi, dword [0x181d4050]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.18014e2f
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [ebp - 0x808]
call fcn.1801bb65
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x18011850
sub eax, 1
jne 0x18011848
int3
xor eax, eax
inc eax
jmp 0x180117af
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x18012f6b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x18013087
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x18012fea
sub edx, 4
js 0x18013087
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 1]
shr eax, 6
and ecx, 0xf
add eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + ecx]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x18012f86
sub edi, 1
je 0x1801304a
sub edi, 1
jne 0x18013080
sub edx, 3
js 0x18013087
movzx eax, byte [ebx]
mov edi, dword [ebp + 0x10]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, edi
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [edi + eax*4]
mov byte [esi + 2], al
add esi, 3
cmp byte [ebp + 0x14], 0
je 0x18013080
lea eax, [edx - 1]
test eax, eax
js 0x18013087
mov byte [esi], 0x3d
inc esi
jmp 0x18013080
sub edx, 2
js 0x18013087
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [ecx + eax*8]
mov byte [esi + 1], al
add esi, 2
cmp byte [ebp + 0x14], 0
je 0x18013080
lea eax, [edx - 2]
test eax, eax
js 0x18013087
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x18013089
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x180160da
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x11c
push 0
push eax
call fcn.1812f700
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18016281
mov ecx, dword [ebp - 0x120]
cmp ecx, 6
je 0x1801618a
cmp ecx, 0xa
je 0x1801618a
cmp ecx, 5
jne 0x18016281
cmp dword [ebp - 0x11c], 2
jne 0x18016168
cmp byte [ebp - 0xa], 1
jne 0x18016154
call fcn.18015f16
cmp eax, 9
je case.0x180161d0.1
test dword [ebp - 0xc], 0x8000
jne 0x18016281
push 2
jmp 0x1801624c
cmp dword [ebp - 0x11c], 1
jne 0x18016281
test dword [ebp - 0xc], 0x200
jne 0x18016281
xor eax, eax
inc eax
jmp 0x18016283
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
push ecx
push ecx
call fcn.18015af3
add esp, 0xc
test eax, eax
je 0x18016281
mov eax, dword [ebp - 8]
cmp eax, 0x30
ja 0x18016229
je case.0x180161d0.1
cmp eax, 0xb
ja 0x180161d7
je case.0x180161d0.2
dec eax
cmp eax, 9
ja case.0x180161d0.2
movzx eax, byte [eax + 0x180162aa]
jmp dword [eax*4 + 0x18016296]
cmp eax, 0x10
ja 0x18016208
je case.0x180161d0.4
sub eax, 0xc
je case.0x180161d0.7
sub eax, 1
je case.0x180161d0.7
sub eax, 1
je case.0x180161d0.7
sub eax, 1
je case.0x180161d0.7
jmp case.0x180161d0.2
sub eax, 0x11
je case.0x180161d0.7
sub eax, 1
je case.0x180161d0.7
sub eax, 7
je case.0x180161d0.7
dec eax
sub eax, 1
jmp 0x18016266
cmp eax, 0x7d
ja 0x1801624f
je case.0x180161d0.4
sub eax, 0x46
je case.0x180161d0.4
dec eax
sub eax, 1
je case.0x180161d0.4
sub eax, 0xc
je case.0x180161d0.4
sub eax, 0x25
je 0x1801624a
sub eax, 1
jne case.0x180161d0.2
push 4
pop eax
jmp 0x18016283
sub eax, 0x7e
je case.0x180161d0.4
sub eax, 3
je case.0x180161d0.4
sub eax, 1
je case.0x180161d0.4
sub eax, 0x3a
je case.0x180161d0.4
sub eax, 3
je case.0x180161d0.4
mov al, byte [ebp - 0xa]
cmp al, 3
je case.0x180161d0.7
cmp al, 2
je case.0x180161d0.7
test byte [ebp - 0xc], 2
jne case.0x180161d0.4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1811aa48
leave
ret
push 3
jmp 0x1801624c
Function at 0x180163ff
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x181ce00c]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.1800f8e1
mov ecx, dword [esi]
call fcn.180108ab
test al, al
jne 0x18016448
mov eax, 0x80070003
jmp 0x180164fc
push dword [esp + 0x10]
xor edi, edi
lea ecx, [esp + 0x20]
mov edx, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.18016511
mov dword [esp], 0x250
lea eax, [esp + 0x24]
push edi
push eax
call fcn.1812f700
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18016495
call fcn.1801bb25
mov edi, eax
jmp 0x180164ee
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call dword [0x1815e3d4]
call ebx
pop ecx
test al, al
je 0x180164d3
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.180074da
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.1800f907
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18016499
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, edi
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811aa48
mov esp, ebp
pop ebp
ret

Function at 0x180170f1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x18017157
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret
Function at 0x18017ba3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x18017c3f
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.1812f700
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18017c3f
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x18017c22
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x18017c3b
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18017c07
mov edi, 0x80004005
jmp 0x18017c4b
mov dword [ebx], eax
jmp 0x18017c46
call fcn.1801bb25
mov edi, eax
cmp esi, 0xffffffff
je 0x18017c52
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.1811aa48
leave
ret 4
Function at 0x180180cd
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x1816eb4c]
push ebx
push esi
push edi
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.1812f700
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1801812c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1801817b
mov dword [ebp - 0x210], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x210]
call fcn.1800768f
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.1801cf75
test eax, eax
js 0x1801816b
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
mov edx, edi
call fcn.1801802b
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.18006f52
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret
Function at 0x1801818a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.18156500
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x122c], edx
push 0x5c
mov dword [ebp - 0x1220], ecx
mov ecx, edi
pop edx
call fcn.18013870
mov esi, eax
cmp esi, 0xffffffff
setne byte [ebp - 0x1225]
xor ebx, ebx
mov dword [ebp - 0x1218], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x1218]
call fcn.1800768f
cmp esi, 0xffffffff
je 0x18018207
lea edx, [ebp - 0x1218]
mov ecx, edi
call fcn.18018377
test eax, eax
js 0x18018358
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x122c], edi
push ebx
xor edx, edx
push 5
inc edx
pop ecx
call fcn.18015a3e
pop ecx
test al, al
je 0x1801825d
call fcn.18015d62
push dword [ebp - 0x1220]
movzx eax, al
neg eax
push ebx
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x18018358
push dword [ebp - 0x1225]
mov edx, edi
mov ecx, esi
call fcn.180180cd
pop ecx
mov bl, al
jmp 0x18018351
push dword [ebp - 0x1220]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x18018358
push 0x1000
lea eax, [ebp - 0x1214]
push ebx
push eax
call fcn.1812f700
add esp, 0xc
mov dword [ebp - 0x121c], ebx
lea eax, [ebp - 0x121c]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x180182c6
push dword [ebp - 0x1225]
mov edx, edi
mov ecx, esi
call fcn.180180cd
pop ecx
mov bl, al
jmp 0x1801834d
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x180182d9
xor edi, edi
inc edi
jmp 0x180182dd
test edi, edi
je 0x18018351
mov dword [ebp - 0x1220], ebx
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.1812f700
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
mov eax, dword [ebp - 0x1220]
push dword [ebp + eax*4 - 0x1214]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x18018338
push dword [ebp - 0x1225]
mov edx, dword [ebp - 0x122c]
lea ecx, [ebp - 0x214]
call fcn.1801802b
pop ecx
test al, al
jne 0x1801834b
mov eax, dword [ebp - 0x1220]
inc eax
mov dword [ebp - 0x1220], eax
cmp eax, edi
jl 0x180182e3
jmp 0x18018351
mov bl, 1
test esi, esi
je 0x18018358
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret
Function at 0x1801898b
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.18015d62
test al, al
je 0x18018a9c
push esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov esi, eax
test esi, esi
js 0x18018a9c
xor ebx, ebx
lea ecx, [ebp - 8]
push str.._
mov dword [ebp - 8], ebx
call fcn.180074da
lea eax, [esi + 0x41]
push eax
lea ecx, [ebp - 8]
call fcn.18009f07
push 0x3a
lea ecx, [ebp - 8]
call fcn.18009f07
push ebx
push ebx
push 3
push ebx
push 7
pop edi
push edi
push 0x80
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x18018a8d
mov dword [ebp - 0x18], edi
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18018a42
cmp byte [ebp - 0x1c], bl
sete bl
jmp 0x18018a80
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x18], 8
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18018a86
xor ebx, ebx
cmp byte [ebp - 0x28], bl
setne bl
inc ebx
cmp esi, 0xffffffff
je 0x18018a8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, ebx
jmp 0x18018a9e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret
Function at 0x18018b06
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1800bf45
mov eax, dword [ebp - 0x1c]
push ebx
push esi
xor esi, esi
push esi
test eax, eax
jne 0x18018b49
push esi
push esi
jmp 0x18018b4f
push eax
push 0x400
push esi
push esi
push esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18018b69
call fcn.1801bb25
mov esi, eax
jmp 0x18018ba9
movzx ecx, byte [0x181d4056]
neg ecx
sbb ecx, ecx
and ecx, 0x181d3f50
je 0x18018ba9
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
inc eax
mov dword [ebp - 0x28], edx
push eax
push edx
mov dword [ebp - 0x24], eax
call fcn.18008b3f
push dword [ebx + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._Started_process___u_
push eax
call fcn.18007210
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1800bf9f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret

Function at 0x18018d2a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x64], eax
lea edi, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x6c], ecx
stosd dword es:[edi], eax
lea ecx, [ebp - 0x18]
mov esi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1800bf45
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1800a0ba
add eax, 0x10
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.18016794
push 0x20
lea ecx, [ebp - 8]
call fcn.18009f07
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push dword [eax - 0xc]
push eax
call fcn.18009f34
push 0x40
xor edi, edi
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.1812f700
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x58], str.WinSta0Default
inc edx
mov esi, 0x104
add esp, 0xc
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x18018dd4
push esi
lea ecx, [ebp - 8]
call fcn.1800771c
mov eax, dword [ebp - 8]
push dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
push ecx
push edi
push dword [ebp - 0x68]
push 0x400
push edi
push edi
push edi
push eax
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009eb8
test esi, esi
jne 0x18018e09
call fcn.1801bb25
mov edi, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [ebp - 0x18]
call fcn.1800bf9f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret
Function at 0x180192a1
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xb8], edx
push edi
mov ebx, ecx
mov dword [ebp - 8], esi
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x24], 0x1819c028
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.18018918
test al, al
jne 0x180192ee
mov esi, 0x80004005
jmp 0x18019465
push 0x60
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.1812f700
add esp, 0xc
lea ecx, [ebp - 0xa8]
call fcn.1800a494
push ecx
push ecx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.180102d0
test al, al
jne 0x1801932a
mov esi, 0x80004005
jmp 0x1801945a
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x14], 0x1819c000
lea edi, [ebp - 0x44]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
call fcn.1800ab89
push 0x12
push 1
mov edi, 0x1819bfc4
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.1800a512
add esp, 0x10
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x44]
push esi
push 0xc0100000
push eax
call fcn.1800ac25
lea ecx, [ebp - 0x118]
call fcn.1800a5fb
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.1800a512
add esp, 0x14
lea eax, [ebp - 0x118]
mov edi, 0xc0100000
lea ecx, [ebp - 0x44]
push esi
push edi
push eax
call fcn.1800ac25
lea ecx, [ebp - 0x118]
call fcn.1800a5fb
push esi
push edi
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x44]
call fcn.1800ac25
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.1800b6fa
lea ecx, [ebp - 0x14]
call fcn.1800b87f
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0xb0], eax
inc edi
push esi
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0xc
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xac], edi
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1801943c
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1801943c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xb8]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ecx], eax
jmp 0x18019443
call fcn.1801bb25
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.1800abd2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1819c000
call fcn.18007bd0
lea ecx, [ebp - 0xa8]
call fcn.1800a5fb
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1819c028
call fcn.1800bb80
cmp dword [ebp - 0xc], 0
je 0x18019483
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x18019492
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret