joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107a00a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x11059bc
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x107a086
cmp ebx, 0xc0000017
je 0x107a11a
cmp ebx, 0xc000009a
je 0x107a11a
mov ebx, 0xc0000452
jmp 0x107a11a
push dword [ebp - 4]
call fcn.01079fde
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x107a0c3
cmp ebx, edi
jl 0x107a11a
mov ebx, 0xc0000001
jmp 0x107a11a
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x107a0eb
mov ebx, 0xc000009a
jmp 0x107a11a
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x107a11a
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x107a128
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x107a147
cmp dword [ebp - 8], edi
je 0x107a147
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x107a382
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x107a3c3
mov esi, 0xc0000017
jmp 0x107a4ec
test byte [ebp + 0xc], 1
push edi
je 0x107a3e1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0107a2f4
mov esi, eax
cmp esi, ebx
jge 0x107a533
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x107a4d5
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x107a4d0
push ebx
push dword [ebp + 0xc]
push 0x11056b6
push 0x35
push dword [ebp - 0x14]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x107a43a
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0107ae94
test eax, eax
jl 0x107a4bc
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x107a4bc
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x107a4bc
add eax, 0x48
push 4
pop ecx
mov edi, 0x1007134
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x107a482
cmp byte [ebp - 1], bl
jne 0x107a497
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x107a45d
jmp 0x107a4bc
lea eax, [ebp - 0x18]
push eax
call fcn.0107b334
test eax, eax
jl 0x107a52a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0107ac88
test eax, eax
jl 0x107a52a
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x107a406
cmp byte [ebp - 1], bl
jne 0x107a531
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x107a507
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x107a522
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x107a4d5
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x107a53b
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x11056b6
push 0x35
push edi
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x107a4eb
Function at 0x107a57a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x60019
xor edi, edi
mov esi, 0x1105ab2
push esi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0107aa50
mov ebx, eax
cmp ebx, edi
jge 0x107a5b3
cmp ebx, 0xc0000034
jne 0x107a609
xor ebx, ebx
jmp 0x107a609
mov edi, 0xf003f
push edi
call fcn.0107a868
mov dword [ebp - 8], eax
test eax, eax
jne 0x107a5cc
mov ebx, 0xc0000001
jmp 0x107a609
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov ebx, eax
test ebx, ebx
jl 0x107a609
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0
call fcn.0107aa50
mov ebx, eax
test ebx, ebx
jl 0x107a609
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
xor esi, esi
cmp dword [ebp - 4], esi
je 0x107a619
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], esi
je 0x107a634
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x107a640
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x1105ab2
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
xor ebx, ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0107a57a
mov esi, eax
cmp esi, edi
jl 0x107a708
lea eax, [ebp - 8]
push eax
push 1
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov esi, eax
cmp esi, edi
jl 0x107a708
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x107a6b3
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push 0x1105a92
push dword [ebp - 4]
call fcn.0107ac14
mov esi, eax
cmp esi, edi
jl 0x107a708
push 0x60019
call fcn.0107a868
mov ebx, eax
cmp ebx, edi
jne 0x107a6f6
mov esi, 0xc0000001
jmp 0x107a708
push ebx
push 4
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov esi, eax
cmp esi, edi
jge 0x107a711
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
cmp dword [ebp - 4], edi
je 0x107a71f
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
je 0x107a737
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x107aac8
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x107ab16
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0107aa50
mov edi, eax
cmp edi, ebx
jl 0x107abdb
jmp 0x107ab1c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x107ab50
cmp edi, ebx
jl 0x107abda
mov edi, 0xc0000001
jmp 0x107abda
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x107abbb
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x107abda
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x107ab9a
mov edi, 0xc0000024
jmp 0x107abda
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x107abc2
mov edi, 0xc000009a
jmp 0x107abda
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x107abea
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x107ac07
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x107b551
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
jne 0x107b574
push 0x1007248
push 0x38
push 0x1007218
call fcn.0107b4be
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0107cfe1
mov edi, eax
cmp edi, ebx
jl 0x107b5f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x107b5d6
lea eax, [ebp - 8]
push eax
push 0x10071fc
push dword [ebp - 4]
call fcn.0107c90e
mov edi, eax
cmp edi, ebx
jl 0x107b5f9
push ebx
push 0x4000080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x107b5f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x107b5ea
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, 0x80070005
jne 0x107b5f9
mov edi, 0x80780047
push dword [ebp - 4]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
cmp dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ebx
je 0x107b61e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x107b62c
Capabilities:
Get disk information
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x107b653
push 0x1007258
push 0xe5
push 0x1007218
call fcn.0107b4be
mov ebx, dword [ebp + 0x10]
push esi
mov byte [ebx], 0
mov dword [ebp - 4], edi
call fcn.0107ee2d
mov byte [ebp + 0x13], al
lea eax, [ebp - 4]
push eax
push esi
call fcn.0107cfe1
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x107b84f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x107b725
mov eax, dword [0x111124c]
mov esi, 0x111124c
mov edi, 0x10071ec
cmp eax, esi
je 0x107b6bc
test byte [eax + 0x1c], 1
je 0x107b6bc
cmp byte [eax + 0x19], 5
jb 0x107b6bc
push dword [ebp + 8]
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
cmp byte [ebp + 0x13], 0
jne 0x107b6ce
mov dword [ebp - 8], 0x8078011a
jmp 0x107b84f
cmp byte [ebp + 0xc], 0
je 0x107b71d
push dword [ebp - 4]
call fcn.0107b551
mov dword [ebp - 8], eax
test eax, eax
jge 0x107b71d
mov eax, dword [0x111124c]
cmp eax, esi
je 0x107b84f
test byte [eax + 0x1c], 1
je 0x107b84f
cmp byte [eax + 0x19], 4
jb 0x107b84f
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x107b84f
mov byte [ebx], 1
jmp 0x107b84f
cmp eax, 1
jne 0x107b821
cmp byte [ebp + 0x13], 0
jne 0x107b76d
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107b84f
test byte [eax + 0x1c], 1
je 0x107b84f
cmp byte [eax + 0x19], 5
jb 0x107b84f
push 1
push esi
push 0x10071ec
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x107b84a
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x107b7eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x107b7e2
cmp eax, 0x52e
je 0x107b7e2
cmp eax, 0x43
je 0x107b7d9
cmp eax, 0x35
je 0x107b7d9
cmp eax, 3
je 0x107b7d9
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x107b84f
test byte [ecx + 0x1c], 1
je 0x107b84f
cmp byte [ecx + 0x19], 4
jb 0x107b84f
push eax
push 0x10071ec
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
jmp 0x107b84f
mov dword [ebp - 8], 0x80780071
jmp 0x107b84f
mov dword [ebp - 8], 0x8078006f
jmp 0x107b84f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107b818
test byte [eax + 0x1c], 1
je 0x107b818
cmp byte [eax + 0x19], 2
jb 0x107b818
push dword [ebp - 4]
push 0x10071ec
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov dword [ebp - 8], 0x8000ffff
jmp 0x107b84f
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x107b84f
test byte [ecx + 0x1c], 1
je 0x107b84f
cmp byte [ecx + 0x19], 5
jb 0x107b84f
push eax
push esi
push 0x10071ec
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x107bfde
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, 0x10072c8
jne 0x107bfff
push 0x1007304
push 0x205
push esi
call fcn.0107b4be
cmp dword [ebp + 0xc], 0
jne 0x107c015
push 0x1007300
push 0x206
push esi
call fcn.0107b4be
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x107c063
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jge 0x107c090
or eax, 0x10000000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107c090
test byte [eax + 0x1c], 1
je 0x107c090
cmp byte [eax + 0x19], 2
jb 0x107c090
push esi
push 0x100727c
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x107c090
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107c090
test byte [eax + 0x1c], 1
je 0x107c090
cmp byte [eax + 0x19], 5
jb 0x107c090
push dword [ebp + 0xc]
push 0x100727c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x107d279
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.0107d073
mov ebx, eax
cmp ebx, edi
jl 0x107d3a0
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x107d318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107d2ff
test byte [eax + 0x1c], 1
je 0x107d2ff
cmp byte [eax + 0x19], 2
jb 0x107d2ff
push esi
push dword [ebp - 4]
push 0x10075e8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp esi, edi
jg 0x107d30a
mov ebx, esi
jmp 0x107d3a5
and esi, 0xffff
or esi, 0x80070000
jmp 0x107d303
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x107d38a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107d376
test byte [eax + 0x1c], 1
je 0x107d376
cmp byte [eax + 0x19], 2
jb 0x107d376
push esi
push dword [ebp - 4]
push 0x10075e8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
cmp esi, edi
jle 0x107d386
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
jmp 0x107d395
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [0x111124c]
cmp dword [ebp - 4], edi
je 0x107d3b8
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp ebx, edi
jge 0x107d3e8
cmp eax, 0x111124c
je 0x107d3e8
test dword [eax + 0x1c], 0x200
je 0x107d3e8
cmp byte [eax + 0x19], 2
jb 0x107d3e8
push ebx
push dword [ebp + 8]
push 0x10075e8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x107da30
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [0x111124c]
mov esi, 0x111124c
mov ebx, 0x10075e8
cmp eax, esi
je 0x107da77
test byte [eax + 0x1c], 1
je 0x107da77
cmp byte [eax + 0x19], 4
jb 0x107da77
push ebx
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push edi
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
stosd dword es:[edi], eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x5a
mov byte [ebp - 0x19], 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
pop edi
test eax, eax
jge 0x107dadb
or eax, 0x10000000
mov dword [ebp - 0x20], eax
mov eax, dword [0x111124c]
cmp eax, esi
je 0x107db6a
test byte [eax + 0x1c], 8
je 0x107db4c
cmp byte [eax + 0x19], 2
jb 0x107db4c
push dword [ebp - 0x20]
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x107db47
mov eax, dword [0x111124c]
cmp eax, esi
je 0x107db06
test byte [eax + 0x1c], 1
je 0x107db06
cmp byte [eax + 0x19], 4
jb 0x107db06
push dword [ebp - 8]
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp dword [ebp - 8], 2
jne 0x107db10
mov byte [ebp - 0x19], 1
cmp eax, esi
je 0x107db3f
test byte [eax + 0x1c], 1
je 0x107db3f
cmp byte [eax + 0x19], 4
jb 0x107db3f
cmp byte [ebp - 0x19], 0
mov ecx, 0x1003110
jne 0x107db30
mov ecx, 0x1003108
push ecx
push ebx
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp - 0x19]
mov byte [eax], cl
mov eax, dword [0x111124c]
cmp eax, esi
je 0x107db6a
test byte [eax + 0x1c], 1
je 0x107db6a
cmp byte [eax + 0x19], 4
jb 0x107db6a
push ebx
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 4
Function at 0x107dc74
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov dword [eax], esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x107dcc8
call ebx
cmp eax, 0xea
je 0x107dcc8
cmp eax, esi
jg 0x107dcbc
mov dword [ebp - 4], eax
jmp 0x107dd79
and eax, 0xffff
or eax, 0x80070000
jmp 0x107dcb4
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
add eax, eax
push eax
call esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x107dce9
mov dword [ebp - 4], 0x8007000e
jmp 0x107dd6a
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x107dd0f
call ebx
test eax, eax
jle 0x107dd0a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x107dd6a
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107dd15
sub eax, edx
sar eax, 1
mov ebx, eax
je 0x107dd6a
lea edi, [ebx + ebx]
lea eax, [edi + 2]
push eax
call esi
mov esi, eax
test esi, esi
jne 0x107dd3f
mov dword [ebp - 4], 0x8007000e
jmp 0x107dd5f
push dword [ebp - 8]
inc ebx
push ebx
push esi
call fcn.01025872
mov dword [ebp - 4], eax
test eax, eax
jl 0x107dd5f
xor eax, eax
mov word [edi + esi - 2], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor esi, esi
test esi, esi
je 0x107dd6a
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
je 0x107dd79
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
jge 0x107ddb2
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107ddb2
test byte [eax + 0x1c], 1
je 0x107ddb2
cmp byte [eax + 0x19], 3
jb 0x107ddb2
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10075e8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [ebp - 4]
leave
ret 8