joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010304
Capabilities:
Check if file exists
Get 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 0x1010375
xor ecx, ecx
cmp cx, word [eax]
je 0x1010375
push edi
push esi
push eax
call fcn.0101116c
mov edi, eax
cmp edi, esi
je 0x1010370
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101033e
test al, 0x10
je 0x101033e
inc ebx
jmp 0x1010359
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1010351
mov esi, 0x10b
cmp esi, 2
jne 0x1010359
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 0x101037f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x10103e8
xor ecx, ecx
cmp cx, word [eax]
je 0x10103e8
push esi
push ebx
push eax
call fcn.0101116c
mov esi, eax
cmp esi, ebx
je 0x10103e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10103c2
test eax, 0x400
je 0x10103c2
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebx
pop esi
jmp 0x10103f2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
je 0x101057c
xor ecx, ecx
cmp cx, word [eax]
je 0x101057c
push esi
push edi
push eax
call fcn.0101116c
mov esi, eax
test esi, esi
je 0x1010568
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101054e
test al, 0x10
je 0x1010549
push 2
pop edi
jmp 0x1010556
xor ebx, ebx
inc ebx
jmp 0x1010556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1010570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop esi
jmp 0x1010586
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1010721
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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 0x101078e
xor eax, eax
cmp ax, word [esi]
je 0x101078e
push ebx
push edi
push esi
call fcn.0101116c
mov ebx, eax
test ebx, ebx
je 0x1010789
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101076a
mov ecx, 0x2000
test ecx, eax
je 0x101075e
inc edi
jmp 0x101076a
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 0x1010798
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x1010870
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x258], edi
cmp ebx, edi
je 0x10109e8
xor eax, eax
cmp ax, word [ebx]
je 0x10109e8
push ebx
call fcn.01010304
test eax, eax
je 0x10109e8
cmp esi, edi
je 0x10109e8
push esi
push ebx
call fcn.0101405b
mov dword [ebp - 0x268], eax
cmp eax, edi
je 0x10109e0
push edi
push eax
call fcn.0101116c
mov dword [ebp - 0x264], eax
cmp eax, edi
je 0x10109e0
lea ecx, [ebp - 0x254]
push ecx
push eax
mov dword [ebp - 0x258], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x10109c6
test byte [ebp - 0x254], 0x10
jne 0x1010990
lea eax, [ebp - 0x228]
push eax
push ebx
call fcn.0101405b
mov ebx, eax
test ebx, ebx
je 0x101096e
push ebx
call fcn.01010858
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x101096e
mov dword [ebp - 0x258], ecx
jmp 0x1010975
and dword [ebp - 0x258], 0
test ebx, ebx
je 0x1010981
push ebx
push 0
call edi
push eax
call esi
cmp dword [ebp - 0x258], 1
jne 0x10109ba
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x101093d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10109ba
and dword [ebp - 0x258], 0
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x268]
push 0
call edi
push eax
call esi
push dword [ebp - 0x264]
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 0x258]
jmp 0x10109f2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b6a5
leave
ret 8
Function at 0x1010a08
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
test dword [ebp + 0x1c], 0xfffffff8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
je 0x1010a31
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1010b8f
xor eax, eax
inc eax
test dword [ebp + 0x1c], eax
je 0x1010a3c
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp + 8]
call fcn.0101116c
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1010b8c
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0101116c
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1010b67
mov dword [ebp - 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x102273c
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1010aec
test dword [ebp + 0x1c], 2
je 0x1010ae6
call ebx
inc dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
call fcn.010100b9
test eax, eax
je 0x1010ae6
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1001ec0
push 0x4000000
push edi
call fcn.0100a624
add esp, 0x1c
cmp dword [ebp - 4], 0
jbe 0x1010a74
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010a74
cmp dword [ebp - 8], 0
je 0x1010b65
test dword [ebp + 0x1c], 4
je 0x1010b65
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1010b65
call ebx
mov dword [ebp + 0x1c], 0x1f
test eax, eax
je 0x1010b1a
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
mov esi, 0x2000000
push dword [ebp + 0xc]
push 0x1001e20
push esi
push edi
call fcn.0100a624
add esp, 0x14
push dword [ebp + 0xc]
call fcn.01010858
test eax, eax
jne 0x1010b5c
call ebx
test eax, eax
jne 0x1010b49
push 0x1f
pop eax
push eax
push dword [ebp + 0xc]
push 0x1001dc0
push esi
push edi
call fcn.0100a624
add esp, 0x14
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
cmp dword [ebp - 0x14], ebx
je 0x1010b8a
push dword [ebp - 0x14]
push ebx
call esi
push eax
call edi
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x18
Function at 0x1010b99
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x1010c51
cmp dword [ebp + 0xc], ebx
je 0x1010c51
push esi
push edi
push ebx
push dword [ebp + 8]
call fcn.0101116c
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
je 0x1010c11
push ebx
push dword [ebp + 0xc]
call fcn.0101116c
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1010c11
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1010bf3
push dword [ebp - 4]
call fcn.01010858
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 2
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
push esi
call fcn.01010a08
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp esi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0xc], eax
je 0x1010c33
push dword [ebp + 8]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x1010c41
push dword [ebp - 4]
push ebx
call edi
push eax
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
jmp 0x1010c5b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x14
Function at 0x1010e18
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp eax, esi
je 0x1010f0b
xor ecx, ecx
cmp cx, word [eax]
je 0x1010f0b
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x1010f0b
cmp cx, word [eax]
je 0x1010f0b
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
je 0x1010ef2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebx + ebx]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1010efb
push eax
push ebx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1010edd
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call edi
test eax, eax
je 0x1010edd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01010d93
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call edi
test eax, eax
je 0x1010ebf
cmp dword [ebp - 4], 0
jne 0x1010ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
je 0x1010ee6
push dword [ebp - 4]
push edi
call esi
push eax
call ebx
mov dword [ebp - 4], edi
jmp 0x1010ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push 0
call esi
push eax
call ebx
jmp 0x1010efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop ebx
jmp 0x1010f15
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x101136e
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x1011502
xor eax, eax
cmp ax, word [esi]
je 0x1011502
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0101116c
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10114eb
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0101114e
cmp eax, ebx
jl 0x101147f
cmp dword [ebp - 0x1c], 1
jne 0x101144a
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10113e4
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x101140e
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x10114bf
xor eax, eax
mov word [esi], ax
call fcn.01010304
test eax, eax
jne 0x1011440
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x1011414
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x101145c
cmp ax, 0x7a
jbe 0x1011468
cmp ax, 0x41
jb 0x101140e
cmp ax, 0x5a
ja 0x101140e
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x101140e
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x101140e
add esi, 8
jmp 0x101140e
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1002180
push 0x3000000
push 0x102273c
mov dword [ebp - 0x10], eax
call fcn.0100a624
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x10114f4
call fcn.01010304
xor esi, esi
inc esi
cmp eax, esi
je 0x10114e6
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x10114e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1002120
jmp 0x1011496
mov dword [ebp - 0x18], esi
jmp 0x10114ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x101150c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b6a5
leave
ret 4
Function at 0x1011e02
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x220]
push eax
push 0x10115e3
push 0x1011d45
xor edi, edi
push ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], ecx
call fcn.010118f5
push esi
push ebx
mov dword [ebp - 0x224], eax
call fcn.010115a9
test eax, eax
jne 0x1011e88
inc dword [ebp - 0x21c]
cmp dword [ebp - 0x220], edi
jne 0x1011e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x21c], edi
jbe 0x1011f35
push 0x204
lea eax, [ebp - 0x208]
push edi
push eax
mov dword [ebp - 0x20c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1011ecc
mov word [ebp - 0x20c], ax
xor eax, eax
lea ecx, [ebp - 0x20c]
cmp ax, word [ebp - 0x20c]
jne 0x1011ee2
mov ecx, 0x1002900
cmp dword [ebp - 0x21c], 1
mov eax, 0x10028fc
jne 0x1011ef5
mov eax, 0x1001db8
push ecx
push dword [ebp - 0x220]
push ebx
push eax
push dword [ebp - 0x21c]
push 0x1002838
push 0x4000000
push 0x102273c
call fcn.0100a624
add esp, 0x20
cmp dword [ebp - 0x220], edi
je 0x1011f2f
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x224], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
xor ecx, ebp
pop edi
call fcn.0100b6a5
leave
ret
Function at 0x10126d3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
jne 0x10126e7
xor eax, eax
jmp 0x101270e
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x101270c
push 0x43
pop ecx
shr eax, 2
test edi, edi
jne 0x101270c
test al, 1
jne 0x1012703
inc edi
mov word [esi], cx
inc ecx
shr eax, 1
cmp cx, 0x5a
jbe 0x10126f7
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1012b88
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x1012bb0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1012c31
lea eax, [ebp - 8]
push eax
call fcn.0101331d
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1012c26
push ebx
push eax
call fcn.010123cc
mov esi, eax
cmp esi, edi
je 0x1012c37
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], edi
jne 0x1012bff
cmp dword [esi], ebx
je 0x1012bff
push dword [ebp + 8]
call fcn.0101248d
test eax, eax
je 0x1012c02
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 4], edi
jne 0x1012c26
cmp esi, edi
je 0x1012c26
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push edi
push dword [ebp - 8]
call fcn.010133b9
mov eax, esi
pop edi
pop esi
leave
ret 0xc
push 0x38
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x1012c02
push edi
lea eax, [ebp + 0x10]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x2d1080
push dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp + 0x10], edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1012c02
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
cmp dword [ebp + 0xc], edi
je 0x1012bff
cmp dword [ebp - 0xc], edi
jbe 0x1012c02
push edi
push eax
call fcn.01012ab0
cmp eax, edi
je 0x1012c02
xor edx, edx
cmp dword [eax + 4], edi
jbe 0x1012cdd
lea ecx, [eax + 0x38]
cmp dword [ebp - 4], edi
jne 0x1012cdd
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [ecx + 0x10]
jne 0x1012cd1
mov ebx, dword [ecx]
mov dword [esi + 0x10], ebx
mov ebx, dword [ecx + 4]
mov dword [esi + 0x14], ebx
mov ebx, dword [ecx + 8]
mov dword [esi + 0x18], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 4], 1
mov dword [esi + 0x1c], ebx
inc edx
add ecx, 0x90
cmp edx, dword [eax + 4]
jb 0x1012ca6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1012c02
Function at 0x1012d6e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x41
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
pop esi
jl 0x1012e44
cmp ebx, eax
je 0x1012e44
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1012e2f
push 0x3a
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
test byte [ebp - 0x20], 1
mov word [ebp - 0xc], si
mov word [ebp - 6], ax
je 0x1012e1d
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1012e1d
push 0x5c
pop eax
push 0x2e
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
pop eax
push 0x5c
mov word [ebp - 0x18], ax
pop eax
push 0x3a
mov word [ebp - 0x16], ax
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x12], ax
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x14], si
call fcn.01012cf6
test eax, eax
jne 0x1012e23
shr dword [ebp - 0x20], 1
inc esi
jmp 0x1012daa
mov word [ebx], si
mov dword [ebp - 0x24], 1
jmp 0x1012e36
mov dword [ebp - 0x28], 0x490
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x24]
jmp 0x1012e4e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b6a5
leave
ret 0x10

Function at 0x10136e5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x101377c
cmp dword [ebp + 0x18], esi
je 0x101377c
push edi
cmp dword [ebp + 0xc], esi
je 0x1013753
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1002f74
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x101376b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101376b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x1013786
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0x18