joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cafe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800cb25
mov eax, 0x80070057
jmp 0x1800cbd4
push edi
mov ecx, esi
call fcn.18007526
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x1800cbb5
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800cb6a
mov edx, str.ProgramFiles
jmp 0x1800cb80
cmp ecx, 0x1c
jne 0x1800cb76
mov edx, str.LocalAppData
jmp 0x1800cb80
cmp ecx, 0x23
jne 0x1800cba1
mov edx, str.ProgramData
lea ecx, [ebp - 0x210]
call fcn.1800dad3
push eax
mov ecx, esi
call fcn.18009e6a
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800cbae
xor eax, eax
inc eax
jmp 0x1800cbd3
lfence
mov eax, edi
jmp 0x1800cbd3
lea eax, [ebp - 0x20c]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.180075cd
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x1800cbe2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x260]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x264], edi
call fcn.18132f50
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
add esp, 0xc
push edi
call fcn.180074da
push 0x181a0ebc
lea ecx, [ebp - 0xc]
call fcn.1800f7d5
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cc53
call fcn.1801baa5
mov edi, eax
jmp 0x1800ccf5
xor ebx, ebx
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
push edi
call fcn.180074da
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 8]
call fcn.1800f7d5
lea eax, [ebp - 0x234]
push 0x181a0ec4
push eax
call fcn.1813a922
pop ecx
pop ecx
test eax, eax
je 0x1800ccba
lea eax, [ebp - 0x234]
push 0x181a0e50
push eax
call fcn.1813a922
pop ecx
pop ecx
test eax, eax
je 0x1800ccba
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800d0b0
test eax, eax
jns 0x1800ccaf
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [ebp - 0x264]
jmp 0x1800ccc0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f52
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cc55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800ccfc
test edi, edi
jle 0x1800ccf5
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x1800cd05
jmp 0x1800ccfe
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1800cd21
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push 0x250
mov edi, ecx
mov dword [ebp - 0x264], ebx
push ebx
push eax
mov dword [ebp - 0x268], edi
call fcn.18132f50
add esp, 0xc
mov dword [ebp - 8], ebx
lea ecx, [ebp - 8]
push edi
call fcn.180074da
push 0x5c
lea ecx, [ebp - 8]
call fcn.18009f07
mov esi, 0x181a0ecc
push esi
call fcn.18136fa0
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f34
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1800cdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce53
call fcn.1801baa5
mov ebx, eax
jmp 0x1800ce53
test byte [ebp - 0x260], 0x10
jne 0x1800ce1e
push dword [ebp - 0x268]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.180074da
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.18009f07
lea eax, [ebp - 0x234]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f34
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800ce16
mov ecx, esi
call fcn.18010a65
mov dword [ebp - 0x264], eax
lea ecx, [esi - 0x10]
call fcn.18006f52
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce44
call fcn.1801baa5
mov esi, eax
jmp 0x1800ce4a
mov esi, dword [ebp - 0x264]
push edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1800ce70
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x264], edi
test edi, edi
je 0x1800d09c
movzx eax, word [edi]
test ax, ax
je 0x1800d09c
push 0x2e
xor cl, cl
mov dword [ebp - 8], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800cedf
cmp dx, 0x2f
je 0x1800cedf
cmp dx, word [ebp - 8]
je 0x1800cedf
cmp dx, bx
je 0x1800cecf
mov cl, 1
jmp 0x1800cedf
mov cl, al
cmp esi, edi
jbe 0x1800cedf
cmp word [esi - 2], bx
je 0x1800d09c
push 0x3a
pop eax
cmp dx, ax
sete al
add esi, 2
dec al
and cl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1800ceb2
test cl, cl
je 0x1800d09c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800cf29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800cf1f
xor eax, eax
jmp 0x1800d0a1
call fcn.1801baa5
jmp 0x1800d0a1
and eax, 0x410
cmp eax, 0x10
jne 0x1800d09c
mov ecx, edi
call fcn.1800cd21
push 0x250
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.18132f50
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
add esp, 0xc
push edi
call fcn.180074da
mov esi, 0x181a0ed0
push esi
call fcn.18136fa0
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f34
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cfb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800d08d
call fcn.1801baa5
test ebx, ebx
jns 0x1800d08b
jmp 0x1800d08d
test byte [ebp - 0x260], 0x10
je 0x1800d054
push 0
push 2
mov edx, 0x181a0e50
lea ecx, [ebp - 0x234]
call fcn.1801331a
pop ecx
pop ecx
test eax, eax
je 0x1800d054
push 0
push 3
mov edx, 0x181a0ec4
lea ecx, [ebp - 0x234]
call fcn.1801331a
pop ecx
pop ecx
test eax, eax
je 0x1800d054
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push edi
call fcn.180074da
mov edi, 0x181a01b8
push edi
call fcn.18136fa0
pop ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.18009f34
lea eax, [ebp - 0x234]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f34
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.1800ce70
test ebx, ebx
js 0x1800d046
test eax, eax
jns 0x1800d046
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18006f52
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cfb1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800d08d
mov ecx, edi
call fcn.18010a65
test ebx, ebx
js 0x1800d08d
test eax, eax
jns 0x1800d08d
mov ebx, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, ebx
jmp 0x1800d0a1
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1801802f
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x18172bcc]
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.18132f50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1801808e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x180180dd
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.1801cef5
test eax, eax
js 0x180180cd
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
mov edx, edi
call fcn.18017f8d
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.1811e2a8
leave
ret
Function at 0x1801921f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x181d000c]
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], 0x1819d1e8
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.18018896
test al, al
jne 0x1801926c
mov esi, 0x80004005
jmp 0x180193e3
push 0x60
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.18132f50
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.1801022e
test al, al
jne 0x180192a8
mov esi, 0x80004005
jmp 0x180193d8
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x14], 0x1819d1c0
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, 0x1819d184
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 0x180193ba
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x180193ba
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 0x180193c1
call fcn.1801baa5
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.1800abd2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1819d1c0
call fcn.18007bd0
lea ecx, [ebp - 0xa8]
call fcn.1800a5fb
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1819d1e8
call fcn.1800bb80
cmp dword [ebp - 0xc], 0
je 0x18019401
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x18019410
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.1811e2a8
leave
ret
Function at 0x1801a36d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov edi, 0x80070003
call fcn.180074da
lea ecx, [ebp - 0x14]
call fcn.1801b001
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x1801a4c8
xor ecx, ecx
mov dword [ebp - 0x10], 0x1819d20c
push ecx
push ecx
or edx, 0xf003f
mov dword [ebp - 0xc], ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 0x200
call fcn.1801a08c
mov edi, eax
test edi, edi
jne 0x1801a4b3
mov eax, dword [ebp + 8]
sub eax, 1
je 0x1801a470
sub eax, 1
je 0x1801a46c
sub eax, 1
je 0x1801a43d
sub eax, 1
je 0x1801a42e
sub eax, 3
je 0x1801a41b
sub eax, 4
je 0x1801a409
mov edi, 0x8007065d
jmp 0x1801a480
push dword [ebx + 4]
lea ecx, [ebp - 0x10]
push dword [ebx]
push dword [ebp - 0x18]
call fcn.1801a9f8
jmp 0x1801a47e
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.1801aa5e
jmp 0x1801a47e
push dword [ebx]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.1801a9ce
jmp 0x1801a47e
mov eax, ebx
neg eax
lfence
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x1801a480
movzx edi, di
or edi, 0x80070000
jmp 0x1801a480
push 2
jmp 0x1801a472
push 1
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.1801aa22
mov edi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
je 0x1801a4ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x1801a49f
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x1801a4b6
mov edi, ecx
jmp 0x1801a4b6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x1819d20c
test eax, eax
je 0x1801a4c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1801af05
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x220], eax
and dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0x1819d20c
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0x200
mov eax, dword [edi + 8]
or eax, 0xf003f
push eax
push ebx
push dword [edi + 4]
call fcn.1801a206
mov esi, eax
cmp esi, 0x80070002
je 0x1801af64
cmp esi, 0x80070003
jne 0x1801afa9
xor esi, esi
inc esi
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1819d20c
je 0x1801af80
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e2a8
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.1801af05
mov esi, eax
test esi, esi
jne 0x1801af67
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1801af99
cmp dword [esp + 0x14], esi
je 0x1801aff2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x200
push ebx
mov ecx, edi
call fcn.18019fc4
mov esi, eax
jmp 0x1801af67

Function at 0x1801b6d5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 0xc], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0x10]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x1801b73d
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push esi
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 esi
call fcn.1811e2a8
leave
ret
Function at 0x1801cef5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], eax
mov ecx, eax
call fcn.18007526
mov ax, word [0x18172bcc]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1801cf5d
call fcn.1801baa5
jmp 0x1801d008
mov eax, dword [0x181a2714]
mov dword [ebp - 0xc], eax
mov ax, word [0x181a2718]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x1801d001
movzx ecx, ax
mov ax, word [0x18172bcc]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1801cfea
lea eax, [ebp - 0x41c]
push eax
call fcn.18136fa0
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1813c46a
add esp, 0x10
test eax, eax
je 0x1801d015
push esi
call fcn.18136fa0
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801cf86
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
push dword [ebp - 0x420]
call fcn.18016b1d
add esp, 0x10
xor eax, eax
jmp 0x1801d006
Function at 0x18027c2c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10820
call fcn.18159d50
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1081c], esi
mov ecx, dword [edi]
call fcn.18010809
test al, al
jne 0x18027c68
mov eax, 0x80070002
jmp 0x18027d68
mov ecx, esi
call fcn.1801cc8d
push 0x10000
lea eax, [ebp - 0x1080c]
push 0
push eax
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x1080c]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x10814], 0
mov dword [ebp - 0x10818], eax
test eax, eax
je 0x18027d66
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.18132f50
mov eax, dword [ebp - 0x10814]
lea ecx, [ebp - 0x1080c]
and dword [ebp - 0x10810], 0
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10810]
call fcn.180074da
push dword [edi]
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0
push dword [ebp - 0x10810]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10810]
mov ecx, esi
push eax
call fcn.18028fb0
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
call fcn.180075cd
mov eax, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x10814], esi
call fcn.18006f52
cmp esi, dword [ebp - 0x10818]
mov esi, dword [ebp - 0x1081c]
jb 0x18027cb4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x18027d77
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x18027d9f
xor eax, eax
inc eax
jmp 0x18027e85
mov edx, 0x181a6800
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xc]
call fcn.1800edda
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], edi
jne 0x18027dc3
call fcn.1801baa5
mov edi, eax
jmp 0x18027e78
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18027dee
call fcn.1801baa5
mov edi, eax
jmp 0x18027e77
mov dword [ebp - 8], edi
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.18012770
push dword [eax]
lea eax, [ebp - 8]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.18016b32
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push edi
push ecx
mov dword [ebp - 0x10], edi
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18027e59
call fcn.1801baa5
mov edi, eax
jmp 0x18027e65
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
call fcn.18009e6a
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret