joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180103eb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x18010401
xor eax, eax
jmp 0x18010408
push esi
call fcn.18130750
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.1800768d
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
mov dword [ebp - 4], eax
add eax, 3
push eax
xor eax, eax
test bl, bl
push 0
push dword [ebp + 0x14]
sete al
dec eax
and eax, 0x102
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x180104ad
call fcn.1801b6cc
movzx ecx, byte [0x181cc106]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181cc000
je 0x180104a9
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008bfd
mov edx, esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
call fcn.180072ef
push edi
push 0
push dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x18]
push str._File::OpenShareMode___CreateFile_failed___s___d___d__0x_x_
push eax
call fcn.180072d0
mov ecx, dword [ebp - 8]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, edi
jmp 0x18010516
test bl, bl
je 0x1801050a
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1801050a
call fcn.1801b6cc
movzx ecx, byte [0x181cc106]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181cc000
je 0x18010506
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008bfd
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._File::OpenShareMode___SetFileAttributes_failed__0x_x_
push eax
call fcn.180072d0
add esp, 0xc
mov eax, esi
jmp 0x18010516
and dword [edi + 0xc], 0
xor bl, 1
mov byte [edi + 8], bl
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x180105fa
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x181c600c]
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.1800f589
and dword [ebp - 0xc], 0
mov edx, esi
push ecx
push ecx
lea ecx, [ebp - 0xc]
call fcn.180129ec
push 0x250
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.1812c700
push edi
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x268]
call fcn.18009d3c
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.18007012
cmp esi, 0xffffffff
jne 0x18010680
call fcn.1801b6cc
mov edi, eax
jmp 0x180106e3
cmp dword [ebp - 0x264], 0x80
je 0x18010695
test byte [ebp - 0x264], 0x10
jne 0x180106c2
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.18009d3c
pop ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.18009c74
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18010680
call fcn.1801b6cc
mov edi, eax
cmp edi, 0x80070012
je 0x180106ea
cmp esi, 0xffffffff
je 0x180106f3
jmp 0x180106ec
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18007012
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.1801051d
test al, al
je 0x1801074b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18010740
test al, 1
je 0x18010740
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x18010740
pop esi
jmp fcn.1801b6cc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1801073a
xor eax, eax
pop esi
ret

Function at 0x18010cb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c600c]
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 0x18010cf3
call fcn.1801b6cc
jmp 0x18010d0b
mov eax, dword [ebp - 8]
test esi, esi
je 0x18010cfc
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.18117a58
leave
ret 0xc
Function at 0x180113a1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x180113ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.18117a58
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.1812c700
mov esi, dword [0x181cc100]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.18014a9f
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.18007012
lea ecx, [ebp - 0x808]
call fcn.1801b70c
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 0x18011462
sub eax, 1
jne 0x1801145a
int3
xor eax, eax
inc eax
jmp 0x180113c1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x18012b8b
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 0x18012ca7
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x18012c0a
sub edx, 4
js 0x18012ca7
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 0x18012ba6
sub edi, 1
je 0x18012c6a
sub edi, 1
jne 0x18012ca0
sub edx, 3
js 0x18012ca7
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 0x18012ca0
lea eax, [edx - 1]
test eax, eax
js 0x18012ca7
mov byte [esi], 0x3d
inc esi
jmp 0x18012ca0
sub edx, 2
js 0x18012ca7
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 0x18012ca0
lea eax, [edx - 2]
test eax, eax
js 0x18012ca7
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x18012ca9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x18015d4a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x11c
push 0
push eax
call fcn.1812c700
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18015ef1
mov ecx, dword [ebp - 0x120]
cmp ecx, 6
je 0x18015dfa
cmp ecx, 0xa
je 0x18015dfa
cmp ecx, 5
jne 0x18015ef1
cmp dword [ebp - 0x11c], 2
jne 0x18015dd8
cmp byte [ebp - 0xa], 1
jne 0x18015dc4
call fcn.18015b86
cmp eax, 9
je case.0x18015e40.1
test dword [ebp - 0xc], 0x8000
jne 0x18015ef1
push 2
jmp 0x18015ebc
cmp dword [ebp - 0x11c], 1
jne 0x18015ef1
test dword [ebp - 0xc], 0x200
jne 0x18015ef1
xor eax, eax
inc eax
jmp 0x18015ef3
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
push ecx
push ecx
call fcn.18015763
add esp, 0xc
test eax, eax
je 0x18015ef1
mov eax, dword [ebp - 8]
cmp eax, 0x30
ja 0x18015e99
je case.0x18015e40.1
cmp eax, 0xb
ja 0x18015e47
je case.0x18015e40.2
dec eax
cmp eax, 9
ja case.0x18015e40.2
movzx eax, byte [eax + 0x18015f1a]
jmp dword [eax*4 + 0x18015f06]
cmp eax, 0x10
ja 0x18015e78
je case.0x18015e40.4
sub eax, 0xc
je case.0x18015e40.7
sub eax, 1
je case.0x18015e40.7
sub eax, 1
je case.0x18015e40.7
sub eax, 1
je case.0x18015e40.7
jmp case.0x18015e40.2
sub eax, 0x11
je case.0x18015e40.7
sub eax, 1
je case.0x18015e40.7
sub eax, 7
je case.0x18015e40.7
dec eax
sub eax, 1
jmp 0x18015ed6
cmp eax, 0x7d
ja 0x18015ebf
je case.0x18015e40.4
sub eax, 0x46
je case.0x18015e40.4
dec eax
sub eax, 1
je case.0x18015e40.4
sub eax, 0xc
je case.0x18015e40.4
sub eax, 0x25
je 0x18015eba
sub eax, 1
jne case.0x18015e40.2
push 4
pop eax
jmp 0x18015ef3
sub eax, 0x7e
je case.0x18015e40.4
sub eax, 3
je case.0x18015e40.4
sub eax, 1
je case.0x18015e40.4
sub eax, 0x3a
je case.0x18015e40.4
sub eax, 3
je case.0x18015e40.4
mov al, byte [ebp - 0xa]
cmp al, 3
je case.0x18015e40.7
cmp al, 2
je case.0x18015e40.7
test byte [ebp - 0xc], 2
jne case.0x18015e40.4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.18117a58
leave
ret
push 3
jmp 0x18015ebc
Function at 0x1801606f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x25c], edx
push edi
mov ecx, eax
mov dword [ebp - 0x260], eax
call fcn.1800f589
mov ecx, dword [esi]
call fcn.1801051d
test al, al
jne 0x180160b5
mov eax, 0x80070003
jmp 0x1801617d
push dword [ebp - 0x25c]
xor edi, edi
lea ecx, [ebp - 8]
mov edx, esi
mov dword [ebp - 0x264], edi
mov dword [ebp - 8], edi
call fcn.1801618c
mov dword [esp], 0x250
lea eax, [ebp - 0x258]
push edi
push eax
call fcn.1812c700
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18016107
call fcn.1801b6cc
mov edi, eax
jmp 0x18016170
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call dword [0x1815b3d4]
call ebx
pop ecx
test al, al
je 0x18016151
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.1800759a
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.18009c74
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1801610d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x264]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x18016d6c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181c600c]
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 0x18016dd2
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.18117a58
leave
ret
Function at 0x18017813
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181c600c]
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 0x180178af
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.1812c700
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 0x180178af
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x18017892
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x180178ab
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18017877
mov edi, 0x80004005
jmp 0x180178bb
mov dword [ebx], eax
jmp 0x180178b6
call fcn.1801b6cc
mov edi, eax
cmp esi, 0xffffffff
je 0x180178c2
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.18117a58
leave
ret 4
Function at 0x18017d3d
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x1816bb7c]
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.1812c700
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x18017d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x18017deb
mov dword [ebp - 0x210], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x210]
call fcn.1800774f
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.1801cb15
test eax, eax
js 0x18017ddb
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
mov edx, edi
call fcn.18017c9b
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.18007012
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x18017dfa
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.18153500
mov eax, dword [0x181c600c]
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.18013490
mov esi, eax
cmp esi, 0xffffffff
setne byte [ebp - 0x1225]
xor ebx, ebx
mov dword [ebp - 0x1218], ebx
call fcn.1800703b
push eax
lea ecx, [ebp - 0x1218]
call fcn.1800774f
cmp esi, 0xffffffff
je 0x18017e77
lea edx, [ebp - 0x1218]
mov ecx, edi
call fcn.18017fe7
test eax, eax
js 0x18017fc8
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x122c], edi
push ebx
xor edx, edx
push 5
inc edx
pop ecx
call fcn.180156ae
pop ecx
test al, al
je 0x18017ecd
call fcn.180159d2
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 0x18017fc8
push dword [ebp - 0x1225]
mov edx, edi
mov ecx, esi
call fcn.18017d3d
pop ecx
mov bl, al
jmp 0x18017fc1
push dword [ebp - 0x1220]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x18017fc8
push 0x1000
lea eax, [ebp - 0x1214]
push ebx
push eax
call fcn.1812c700
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 0x18017f36
push dword [ebp - 0x1225]
mov edx, edi
mov ecx, esi
call fcn.18017d3d
pop ecx
mov bl, al
jmp 0x18017fbd
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x18017f49
xor edi, edi
inc edi
jmp 0x18017f4d
test edi, edi
je 0x18017fc1
mov dword [ebp - 0x1220], ebx
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.1812c700
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 0x18017fa8
push dword [ebp - 0x1225]
mov edx, dword [ebp - 0x122c]
lea ecx, [ebp - 0x214]
call fcn.18017c9b
pop ecx
test al, al
jne 0x18017fbb
mov eax, dword [ebp - 0x1220]
inc eax
mov dword [ebp - 0x1220], eax
cmp eax, edi
jl 0x18017f53
jmp 0x18017fc1
mov bl, 1
test esi, esi
je 0x18017fc8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18007012
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x180185fb
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.180159d2
test al, al
je 0x1801870c
push esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov esi, eax
test esi, esi
js 0x1801870c
xor ebx, ebx
lea ecx, [ebp - 8]
push str.._
mov dword [ebp - 8], ebx
call fcn.1800759a
lea eax, [esi + 0x41]
push eax
lea ecx, [ebp - 8]
call fcn.18009fc2
push 0x3a
lea ecx, [ebp - 8]
call fcn.18009fc2
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 0x180186fd
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 0x180186b2
cmp byte [ebp - 0x1c], bl
sete bl
jmp 0x180186f0
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 0x180186f6
xor ebx, ebx
cmp byte [ebp - 0x28], bl
setne bl
inc ebx
cmp esi, 0xffffffff
je 0x180186fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, ebx
jmp 0x1801870e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x18018776
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
push eax
cmp dword [ebp + 8], eax
jne 0x18018790
push eax
push eax
jmp 0x18018798
push dword [ebp + 8]
push 0x400
push eax
push eax
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180187ae
call fcn.1801b6cc
jmp 0x180187f0
movzx ecx, byte [0x181cc106]
neg ecx
sbb ecx, ecx
and ecx, 0x181cc000
je 0x180187ee
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18008bfd
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.180072d0
add esp, 0xc
xor eax, eax
pop esi
leave
ret
Function at 0x1801895b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [edx]
mov eax, dword [ebp + 0x14]
sub ecx, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x50], eax
call fcn.1800a175
add eax, 0x10
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.1801640f
push 0x20
lea ecx, [ebp - 8]
call fcn.18009fc2
mov eax, dword [esi]
lea ecx, [ebp - 8]
push dword [eax - 0xc]
push eax
call fcn.18009fef
push 0x40
xor edi, edi
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.1812c700
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x44], 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 0x180189f1
push esi
lea ecx, [ebp - 8]
call fcn.180077dc
mov eax, dword [ebp - 8]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push ecx
push edi
push dword [ebp - 0x54]
push 0x400
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009f73
test esi, esi
jne 0x18018a24
call fcn.1801b6cc
mov edi, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x18018be7
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18018c5d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18018c5d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push esi
push esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18018c64
call fcn.1801b6cc
mov esi, eax
cmp dword [ebp - 8], 0
je 0x18018c73
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18117a58
leave
ret