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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, 0xffff
push esi
mov esi, dword [ebp + 0xc]
mov eax, ebx
push edi
cmp cx, ax
je 0x100fcd7
mov eax, dword [esi + 0xc]
test al, 1
jne 0x100fc69
test al, al
jns 0x100fcd7
test al, 2
jne 0x100fcd7
test al, 0x40
jne 0x100fd2a
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fcac
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fcac
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
mov ebx, 0xffff
jmp 0x100fcb1
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
test byte [eax + 4], 0x80
je 0x100fd27
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wctomb]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100fce8
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x2a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret
mov ecx, dword [esi + 8]
add ecx, eax
cmp dword [esi], ecx
jae 0x100fcfe
cmp dword [esi + 4], 0
jne 0x100fcd7
cmp eax, dword [esi + 0x18]
jg 0x100fcd7
mov dword [esi], ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x100fd12
dec dword [esi]
dec ecx
mov dl, byte [ebp + ecx - 0xb]
mov edi, dword [esi]
mov byte [edi], dl
jns 0x100fd05
add dword [esi + 4], eax
mov eax, dword [esi + 0xc]
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, word [ebp + 8]
jmp 0x100fcd9
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 2
cmp dword [esi], eax
jae 0x100fd42
cmp dword [esi + 4], 0
jne 0x100fcd7
cmp dword [esi + 0x18], 2
jb 0x100fcd7
mov dword [esi], eax
add dword [esi], 0xfffffffe
test byte [esi + 0xc], 0x40
mov eax, dword [esi]
je 0x100fd5c
cmp word [eax], cx
je 0x100fd5f
add eax, 2
mov dword [esi], eax
jmp 0x100fcd7
mov word [eax], cx
mov eax, dword [esi + 0xc]
add dword [esi + 4], 2
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, cx
jmp 0x100fcd9
Function at 0x100fd57
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, 0xffff
push esi
mov esi, dword [ebp + 0xc]
mov eax, ebx
push edi
cmp cx, ax
je 0x100fcd7
mov eax, dword [esi + 0xc]
test al, 1
jne 0x100fc69
test al, al
jns 0x100fcd7
test al, 2
jne 0x100fcd7
test al, 0x40
jne 0x100fd2a
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fcac
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fcac
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
mov ebx, 0xffff
jmp 0x100fcb1
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
test byte [eax + 4], 0x80
je 0x100fd27
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wctomb]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100fce8
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x2a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret
mov ecx, dword [esi + 8]
add ecx, eax
cmp dword [esi], ecx
jae 0x100fcfe
cmp dword [esi + 4], 0
jne 0x100fcd7
cmp eax, dword [esi + 0x18]
jg 0x100fcd7
mov dword [esi], ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x100fd12
dec dword [esi]
dec ecx
mov dl, byte [ebp + ecx - 0xb]
mov edi, dword [esi]
mov byte [edi], dl
jns 0x100fd05
add dword [esi + 4], eax
mov eax, dword [esi + 0xc]
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, word [ebp + 8]
jmp 0x100fcd9
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 2
cmp dword [esi], eax
jae 0x100fd42
cmp dword [esi + 4], 0
jne 0x100fcd7
cmp dword [esi + 0x18], 2
jb 0x100fcd7
mov dword [esi], eax
add dword [esi], 0xfffffffe
test byte [esi + 0xc], 0x40
mov eax, dword [esi]
je 0x100fd5c
cmp word [eax], cx
je 0x100fd5f
add eax, 2
mov dword [esi], eax
jmp 0x100fcd7
mov word [eax], cx
mov eax, dword [esi + 0xc]
add dword [esi + 4], 2
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, cx
jmp 0x100fcd9
Function at 0x100fe4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100fdb6
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0100b8b2
add esp, 0x14
jmp 0x100fea0
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x100fea0
test al, 0x40
jne 0x100fea0
test al, 2
je 0x100fdd8
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x100fea0
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x100fd98
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100fe90
cmp eax, 1
je 0x100fe90
cmp eax, 0xffffffff
je 0x100fe90
test byte [esi + 0xc], 0x82
jne 0x100fe62
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fe4d
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fe4d
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100fe52
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100fe62
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x100fe80
mov eax, dword [esi + 0xc]
test al, 8
je 0x100fe80
test eax, 0x400
jne 0x100fe80
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x100fea5
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100fed2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, ecx
cmp eax, ecx
jb 0x100fee1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x100feec
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
mov eax, 0x80070216
pop ebp
ret 0xc
Function at 0x10103b8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0101139f
mov ebx, eax
cmp ebx, edi
je 0x1010428
push esi
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10103f4
mov eax, dword [ebp + 0xc]
and al, 1
movsx eax, al
push edi
push 0x2200000
neg eax
push 3
sbb eax, eax
push edi
and eax, 0xfffffff9
add eax, 7
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10103e3
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, edi
jge 0x10103d3
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x10103da
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010418
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1001bf8
jmp 0x1010403
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1001b70
push 0x3000000
push 0x102373c
mov dword [ebp - 4], eax
call fcn.0100a7e5
add esp, 0x14
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8

Function at 0x1010550
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x10105a5
xor ecx, ecx
cmp cx, word [eax]
je 0x10105a5
push edi
push esi
push eax
call fcn.0101139f
mov edi, eax
cmp edi, esi
je 0x10105a0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101056e
test al, 0x10
je 0x101056e
inc ebx
jmp 0x1010589
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1010581
mov esi, 0x10b
cmp esi, 2
jne 0x1010589
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x10105af
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10106e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp ebx, edi
je 0x1010727
xor eax, eax
cmp ax, word [ebx]
je 0x1010727
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1010727
push edi
push ebx
call fcn.0101139f
test eax, eax
je 0x1010700
push edi
push 0x2200000
push 3
push edi
push 7
push edi
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1010714
mov esi, 0x4000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x10106ce
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
push edi
push 0x900a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10106ce
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10106e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0x1f
cmp eax, edi
je 0x10106e2
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x10106f5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010714
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0x1f
cmp eax, edi
je 0x1010714
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], edi
sete al
jmp 0x1010731
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1010963
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x10109be
xor eax, eax
cmp ax, word [esi]
je 0x10109be
push ebx
push edi
push esi
call fcn.0101139f
mov ebx, eax
test ebx, ebx
je 0x10109b9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101099a
mov ecx, 0x2000
test ecx, eax
je 0x101098e
inc edi
jmp 0x101099a
or eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop ebx
jmp 0x10109c8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x1010eb9
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x1010ea9
mov eax, 0x80070057
jmp 0x1010ef1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0101421f
mov dword [esi], eax
test eax, eax
je 0x1010ebe
xor eax, eax
jmp 0x1010ef1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1010edc
and eax, edi
or eax, esi
test eax, eax
jge 0x1010eea
call ebx
test eax, eax
jle 0x1010eef
and eax, edi
or eax, esi
jmp 0x1010eef
mov eax, 0x80004005
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x101221e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x10122ca
cmp ax, word [ebx]
je 0x10122ca
push ebx
call fcn.01010534
test eax, eax
jne 0x10121d4
push ebx
push 0x1002b20
push 0x2000000
push 0x102373c
call fcn.0100a7e5
add esp, 0x10
push 3
jmp 0x10122e3
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1002af8
call fcn.01014c3e
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0x1002ad0
call fcn.01014c3e
mov dword [ebp - 0x14], eax
mov edi, 0x102373c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
test eax, eax
jbe 0x1012231
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1002a50
push 0x4000000
push edi
call fcn.0100a7e5
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
call fcn.01012035
mov esi, eax
cmp esi, 1
je 0x101224c
cmp dword [ebp - 4], 0
jne 0x1012255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
jne 0x101228b
cmp dword [ebp - 8], 3
jae 0x1012271
cmp dword [ebp - 4], 0x4c7
je 0x1012271
cmp dword [ebp - 4], 0x800704c7
jne 0x1012201
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x10029c8
push 0x2000000
push edi
call fcn.0100a7e5
add esp, 0x18
cmp dword [ebp + 8], 1
jne 0x10122a3
cmp dword [ebp - 0xc], 0
jne 0x10122a3
push 0
push 0x1002af8
call fcn.01014ce4
cmp dword [ebp - 0x14], 1
jne 0x10122bb
cmp dword [ebp - 0x10], 0
jne 0x10122bb
push 0
push 0x1002ad0
call fcn.01014ce4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
jmp 0x10122eb
push 0x1002980
push 0x2000000
push 0x102373c
call fcn.0100a7e5
add esp, 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x1012264
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x10122ca
cmp ax, word [ebx]
je 0x10122ca
push ebx
call fcn.01010534
test eax, eax
jne 0x10121d4
push ebx
push 0x1002b20
push 0x2000000
push 0x102373c
call fcn.0100a7e5
add esp, 0x10
push 3
jmp 0x10122e3
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1002af8
call fcn.01014c3e
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0x1002ad0
call fcn.01014c3e
mov dword [ebp - 0x14], eax
mov edi, 0x102373c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
test eax, eax
jbe 0x1012231
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1002a50
push 0x4000000
push edi
call fcn.0100a7e5
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
call fcn.01012035
mov esi, eax
cmp esi, 1
je 0x101224c
cmp dword [ebp - 4], 0
jne 0x1012255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
jne 0x101228b
cmp dword [ebp - 8], 3
jae 0x1012271
cmp dword [ebp - 4], 0x4c7
je 0x1012271
cmp dword [ebp - 4], 0x800704c7
jne 0x1012201
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x10029c8
push 0x2000000
push edi
call fcn.0100a7e5
add esp, 0x18
cmp dword [ebp + 8], 1
jne 0x10122a3
cmp dword [ebp - 0xc], 0
jne 0x10122a3
push 0
push 0x1002af8
call fcn.01014ce4
cmp dword [ebp - 0x14], 1
jne 0x10122bb
cmp dword [ebp - 0x10], 0
jne 0x10122bb
push 0
push 0x1002ad0
call fcn.01014ce4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
jmp 0x10122eb
push 0x1002980
push 0x2000000
push 0x102373c
call fcn.0100a7e5
add esp, 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x10126d3
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x10126fd
cmp dword [ebp + 8], 0xffffffff
je 0x10126fd
push edi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push 0x560028
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
jmp 0x1012707
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 4
Function at 0x101326c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
xor ecx, ecx
mov edx, dword [ebp + 8]
test dword [ecx + 0x1023348], edx
je 0x101327a
or eax, dword [ecx + 0x1023344]
add ecx, 8
cmp ecx, 0x18
jb 0x1013269
pop ebp
ret 4

Function at 0x101338f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
je 0x1013444
push esi
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x1013443
cmp word [esi], ax
je 0x1013443
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [eax + eax + 2]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1013441
mov dword [ebp + 8], edi
jmp 0x10133e3
cmp ax, 0x20
jne 0x1013360
inc esi
inc esi
cmp word [esi], 0x20
je 0x1013358
xor eax, eax
cmp ax, word [esi]
je 0x10133ef
cmp dword [ebp - 4], 1
jne 0x101337a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101337a
mov dword [eax], esi
inc dword [ebp - 4]
xor eax, eax
cmp word [esi], 0x22
sete al
mov dword [ebp - 8], eax
test eax, eax
je 0x10133cf
jmp 0x10133cd
cmp dword [ebp - 8], 0
jne 0x101339b
cmp ax, 0x20
je 0x10133d7
cmp ax, 0x22
jne 0x10133c3
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_CharPrevW]
test eax, eax
je 0x10133bd
cmp word [eax], 0x5c
jne 0x10133bd
mov cx, word [esi]
mov word [eax], cx
jmp 0x10133cd
and dword [ebp - 8], 0
jmp 0x10133cd
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 2
mov word [ecx], ax
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x101338f
mov ecx, dword [ebp + 8]
xor eax, eax
add dword [ebp + 8], 2
mov word [ecx], ax
movzx eax, word [esi]
test ax, ax
jne 0x1013352
cmp word [edi], 0
je 0x1013431
mov eax, dword [ebp - 4]
test eax, eax
je 0x1013431
shl eax, 2
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x1013431
xor esi, esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
mov dword [eax + esi*4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc esi
lea edi, [edi + eax*2 + 2]
cmp esi, dword [ebp - 4]
jb 0x1013416
jmp 0x1013441
and dword [ebp - 4], 0
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
pop esi
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x10136e7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push dword [ebp + 0xc]
xor edi, edi
and dword [ebp - 0x208], edi
and dword [ebp - 0x20c], edi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1013776
lea eax, [ebp - 0x208]
push eax
push 1
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call fcn.0100fec7
test eax, eax
jl 0x1013776
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x208]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.010145ab
test eax, eax
jl 0x1013776
push esi
push dword [ebp - 0x20c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1013775
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push edi
call fcn.0100a9c9
test eax, eax
jge 0x1013775
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0100b8d5
leave
ret 8

Function at 0x1013d2d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1013d90
push esi
push esi
push 0x12
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x1013d54
push 0x3e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1013d85
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013d70
and eax, edi
or eax, esi
test eax, eax
jge 0x1013d80
call ebx
test eax, eax
jle 0x1013d7c
and eax, edi
or eax, esi
mov esi, eax
jmp 0x1013d85
mov esi, 0x80004005
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013dc1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013dac
and eax, edi
or eax, esi
test eax, eax
jge 0x1013dbc
call ebx
test eax, eax
jle 0x1013db8
and eax, edi
or eax, esi
mov esi, eax
jmp 0x1013dc1
mov esi, 0x80004005
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10144b2
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0100b756
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x101454c
xor ecx, ecx
cmp cx, word [eax]
je 0x101454c
push esi
push eax
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.0100a9c9
mov esi, eax
test esi, esi
jl 0x1014547
push edi
push 0x10018f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1014525
push 0x10038c8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1014525
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 8
call eax
cmp eax, 1
jne 0x1014525
xor esi, esi
jmp 0x101453b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1014539
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test edi, edi
je 0x1014546
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
jmp 0x1014551
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100b8d5
leave
ret 4

Function at 0x10149ee
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 4], 0x8007000e
test eax, eax
je 0x1014a40
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10149da
mov ebx, dword [ebp + 0x14]
sub eax, edx
sar eax, 1
test ebx, ebx
je 0x1014a40
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
jb 0x1014a40
cmp edi, eax
ja 0x1014a40
cmp ecx, eax
ja 0x1014a40
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub ecx, edi
push esi
inc ecx
mov esi, ecx
lea ecx, [esi + esi]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebx], eax
test eax, eax
je 0x1014a3a
lea ecx, [esi - 1]
push ecx
mov ecx, dword [ebp + 8]
lea ecx, [ecx + edi*2]
push ecx
push esi
push eax
call fcn.0101487d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
jmp 0x1014a45
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 0x10