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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
push edi
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
call fcn.00415712
cmp eax, 1
je 0x4155ba
add eax, 0xfffffffe
cmp eax, 1
ja 0x4155b0
mov eax, 0x420ed0
jmp 0x4155bf
mov esi, 0xc00000bb
jmp 0x415705
mov eax, 0x420ebc
push ebx
lea ebx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.004153e8
mov esi, eax
test esi, esi
js 0x4156b4
cmp dword [ebp + 8], edi
je 0x415637
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4155e2
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 2]
lea eax, [ebx + ebx]
push eax
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x41561e
mov esi, 0xc000009a
mov ebx, dword [ebp - 4]
jmp 0x4156b6
push dword [ebp - 0xc]
push ebx
push edi
call fcn.0041bcf9
push 0x420bc8
push ebx
push edi
call fcn.0041bc6d
add esp, 0x18
mov ebx, dword [ebp - 0x10]
add ebx, 2
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x415658
mov esi, 0xc000000d
mov edi, dword [ebp - 8]
jmp 0x415616
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41569d
sub edi, ebx
sar edi, 1
inc edi
lea eax, [edi + edi]
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp dword [ebp - 8], 0
mov ecx, eax
mov dword [ebp - 4], ecx
jne 0x41568b
mov esi, 0xc000009a
jmp 0x415653
lea eax, [edi - 1]
push eax
push ebx
push edi
push ecx
call fcn.0041bd66
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
test ecx, ecx
je 0x4156a9
mov dword [ecx], edi
mov ebx, dword [ebp - 4]
test eax, eax
je 0x4156b6
mov dword [eax], ebx
jmp 0x4156b6
mov ebx, edi
cmp dword [ebp - 0xc], 0
je 0x4156d0
push dword [ebp - 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x415704
test edi, edi
je 0x4156ed
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x4156ef
xor edi, edi
test ebx, ebx
je 0x415704
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x415712
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x422718], 0
push esi
je 0x415735
mov eax, dword [0x422388]
jmp 0x415765
push 0
push 0x20
lea eax, [ebp - 0x28]
push eax
xor esi, esi
push 0x5a
inc esi
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x415756
mov esi, dword [ebp - 0x18]
cmp esi, 3
jl 0x415756
xor esi, esi
mov dword [0x422388], esi
mov byte [0x422718], 1
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b8aa
leave
ret
Function at 0x416222
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x194]
xor ebx, ebx
push eax
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x18
pop esi
lea eax, [ebp - 0x194]
mov dword [ebp - 0x16c], eax
xor eax, eax
lea edi, [ebp - 0x15c]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 3
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x174]
push eax
push 0x80000000
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], 0x40
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
js 0x41642f
push ebx
push ebx
lea eax, [ebp - 0x18c]
push eax
push 0x1f0003
lea eax, [ebp - 0x150]
push eax
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x180], 0x200
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], ebx
call dword [sym.imp.ntdll.dll_ZwCreateEvent]
test eax, eax
js 0x41642f
push ebx
push ebx
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x15c]
stosd dword es:[edi], eax
push 0x560028
stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push dword [ebp - 0x150]
mov ebx, dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
push dword [ebp - 0x154]
call ebx
mov esi, dword [sym.imp.ntdll.dll_ZwWaitForSingleObject]
cmp eax, 0x103
jne 0x41635d
push 0
push 0
push dword [ebp - 0x150]
call esi
test eax, eax
js 0x416365
mov eax, dword [ebp - 0x15c]
test eax, eax
jns 0x41642f
mov edi, 0x11c
push edi
lea eax, [ebp - 0x14c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x14c], edi
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x416428
cmp dword [ebp - 0x148], 5
jne 0x416428
cmp dword [ebp - 0x144], 0
jne 0x416428
push 0
push dword [ebp - 0x150]
call dword [sym.imp.ntdll.dll_ZwResetEvent]
xor eax, eax
push 0x20
lea edi, [ebp - 0x15c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
push edi
push edi
push 0x74004
lea eax, [ebp - 0x15c]
push eax
push edi
push edi
push dword [ebp - 0x150]
push dword [ebp - 0x154]
call ebx
cmp eax, 0x103
jne 0x416406
push edi
push edi
push dword [ebp - 0x150]
call esi
test eax, eax
js 0x41642f
mov eax, dword [ebp - 0x15c]
test eax, eax
js 0x41642f
cmp dword [ebp - 0x1c], 0x1d
jne 0x416424
cmp dword [ebp - 0x2c], 0x3a00
jne 0x416424
cmp dword [ebp - 0x28], edi
jne 0x416424
cmp dword [ebp - 0x18], 1
je 0x416428
mov eax, edi
jmp 0x41642d
mov eax, 0xc00000bb
test eax, eax
mov esi, dword [sym.imp.ntdll.dll_ZwClose]
setns bl
cmp dword [ebp - 0x150], 0
je 0x416449
push dword [ebp - 0x150]
call esi
cmp dword [ebp - 0x154], 0
je 0x41645a
push dword [ebp - 0x154]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041b8aa
leave
ret 4
Function at 0x4164d2
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 dword [ebp + 8]
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 1
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_ZwOpenSymbolicLinkObject]
test eax, eax
js 0x416622
push edi
lea eax, [ebp - 0xc]
push eax
call esi
mov ebx, edi
mov dword [ebp + 8], edi
mov edi, dword [sym.imp.ntdll.dll_ZwClose]
jmp 0x41657e
cmp dword [ebp - 8], 0
je 0x416557
push dword [ebp - 8]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
lea ebx, [eax + 2]
push ebx
mov word [ebp - 0xa], ax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
test eax, eax
je 0x416629
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x41653d
push dword [ebp - 4]
call edi
and dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test esi, esi
js 0x41660a
movzx ecx, word [ebp - 0xc]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xa], bx
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
jns 0x41657e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x416606
push dword [ebp - 4]
call edi
and dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test esi, esi
jns 0x416620
test eax, eax
je 0x416620
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
mov esi, 0xc000009a
jmp 0x4165f4

Function at 0x4168be
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x422720], 0
push esi
jne 0x41691a
push 0x420d6a
lea esi, [ebp - 0x20]
call fcn.00415804
test eax, eax
js 0x416910
push 0
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x8f
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x416910
mov ecx, dword [ebp - 0x20]
mov edx, 0x42271c
xor eax, eax
lock cmpxchg dword [edx], ecx
xor eax, eax
inc eax
mov ecx, 0x422720
xchg dword [ecx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x42271c], eax
pop esi
setne al
xor ecx, ebp
call fcn.0041b8aa
leave
ret
Function at 0x4169f6
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
xor ecx, ecx
push esi
push edi
lea ebx, [esp + 0x10]
mov dword [esp + 0x14], ecx
mov edi, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [eax], ecx
call fcn.00416c1a
mov esi, eax
xor ebx, ebx
test esi, esi
js 0x416bef
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x416a35
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
sub ecx, edx
lea eax, [esp + 0x24]
push eax
sar ecx, 1
lea esi, [ecx + 1]
push 0x420d7e
push esi
push dword [esp + 0x28]
call fcn.0041bb98
add esp, 0x1c
cmp eax, 4
je 0x416a7c
mov esi, 0xc0000001
jmp 0x416bef
cmp dword [esp + 0x18], ebx
jne 0x416b9c
cmp dword [esp + 0x1c], ebx
jne 0x416b9c
add esi, 0xa
lea eax, [esi + esi]
push eax
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov edi, eax
test edi, edi
jne 0x416abb
mov esi, 0xc000009a
xor ebx, ebx
jmp 0x416bef
push dword [esp + 0x10]
push 0x420dce
push 0x420de2
push esi
push edi
call fcn.0041bc4c
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00416ecc
mov esi, eax
test esi, esi
js 0x416ba5
push dword [esp + 0xc]
call fcn.00416d34
mov esi, eax
test esi, esi
js 0x416ba5
cmp dword [ebp + 8], 0
jne 0x416b8f
push 0x420dec
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x416b1c
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x416b23
sub ecx, edx
sar ecx, 1
lea esi, [ecx*2 + 2]
push esi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call ebx
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x416b59
mov esi, 0xc000009a
jmp 0x416ba5
push esi
push edi
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword fs:[0x30]
add esp, 0xc
push dword [esp + 0xc]
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], esi
call fcn.00416ecc
mov esi, eax
test esi, esi
js 0x416ba5
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ebx, ebx
jmp 0x416ba1
mov esi, 0xc0000001
test esi, esi
jns 0x416bc1
xor ebx, ebx
cmp dword [esp + 0xc], ebx
je 0x416bc1
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x416bd6
mov eax, dword fs:[0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416bef
push eax
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [esp + 0x10], 0
je 0x416c0a
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416d92
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [eax], esi
lea eax, [ebp - 0x10]
push eax
mov ebx, esi
mov dword [ebp - 4], esi
mov dword [edi], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0xc], ebx
je 0x416e0b
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00416cc0
mov esi, eax
test esi, esi
js 0x416e98
mov edi, dword [ebp + 0x14]
xor esi, esi
lea eax, [ebp + 8]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
je 0x416e10
test esi, esi
js 0x416e98
mov esi, 0xc0000001
jmp 0x416e98
mov dword [ebp - 4], esi
jmp 0x416dda
push dword [ebp + 8]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x416e31
mov esi, 0xc000009a
jmp 0x416e98
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push ebx
push 2
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
js 0x416e98
cmp dword [ebx + 4], 1
je 0x416e5b
mov esi, 0xc0000024
jmp 0x416e98
mov eax, dword [ebp + 8]
sub eax, 0xc
push eax
mov dword [ebp + 8], eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x416e2a
push dword [ebp + 8]
lea eax, [ebx + 0xc]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [edi], eax
xor esi, esi
cmp dword [ebp - 4], 0
je 0x416ea7
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x416ebd
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x416ecc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
lea eax, [esp + 0x24]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
call esi
lea eax, [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
js 0x417048
push edi
lea eax, [esp + 0x1c]
push eax
call esi
mov ebx, edi
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
jmp 0x416f8e
cmp dword [esp + 0x1c], 0
je 0x416f64
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
lea ebx, [eax + 2]
push ebx
mov word [esp + 0x1e], ax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x417051
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x416f48
push dword [esp + 0x10]
call edi
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test esi, esi
js 0x417030
movzx ecx, word [esp + 0x18]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [esp + 0x18]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
xor esi, esi
push 1
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x26], bx
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jns 0x416f8e
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esp + 0x10], 0
je 0x41702c
push dword [esp + 0x10]
call edi
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test esi, esi
jns 0x417046
test eax, eax
je 0x417046
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 0xc000009a
jmp 0x417016
Function at 0x4175ee
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x18
pop ebx
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
push 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
js 0x4176b9
push edi
push edi
lea eax, [ebp - 0x34]
push eax
push 0x1f0003
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov esi, eax
test esi, esi
js 0x4176b9
push 0x28
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0xc
push dword [ebp + 0xc]
push 0x2d1400
push eax
push edi
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov esi, eax
cmp esi, 0x103
jne 0x4176b9
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
js 0x4176b9
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], edi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
je 0x4176c9
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], 0
je 0x4176d4
push dword [ebp - 0xc]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417766
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
push 0x6a
mov dword [esp + 0x34], eax
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
mov byte [esp + 0x1f], bl
mov dword [esp + 0x20], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
test edi, edi
jne 0x4177be
mov esi, 0xc0000017
jmp 0x417937
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004176e2
mov esi, eax
test esi, esi
jns 0x4178f2
push ebx
push 0x18
lea eax, [esp + 0x3c]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x4178d5
mov eax, ebx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x34], eax
jbe 0x4178d0
mov ebx, dword [esp + 0x14]
push 0
push eax
push 0x420b4c
push 0x35
push edi
call fcn.0041bc4c
add esp, 0x14
test ebx, ebx
je 0x417833
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004172ba
mov ebx, dword [esp + 0x14]
test eax, eax
js 0x4178ab
cmp dword [ebx], 1
jne 0x4178ab
and dword [esp + 0x2c], 0
cmp dword [ebx + 4], 0
jbe 0x4178ab
mov edx, dword [esp + 0x20]
lea eax, [ebx + 0x48]
mov dword [esp + 0x24], eax
push 4
xor ebx, ebx
mov ebx, dword [esp + 0x18]
pop ecx
mov edi, 0x405284
lea esi, [eax + 8]
repe cmpsd dword [esi], dword es:[edi]
jne 0x417890
cmp byte [esp + 0x13], 0
jne 0x4178c9
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x2c]
inc ecx
add eax, 0x90
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
cmp ecx, dword [ebx + 4]
jb 0x417861
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x34]
jb 0x417805
cmp byte [esp + 0x13], 0
je 0x4178d0
xor esi, esi
jmp 0x4178f6
mov esi, 0xc0000451
jmp 0x4178d5
mov esi, 0xc0000452
push dword [esp + 0x28]
mov eax, dword fs:[0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
mov ebx, dword [esp + 0x14]
jmp 0x417925
mov ebx, dword [esp + 0x14]
cmp dword [ebp + 8], 0
jne 0x417901
and dword [esp + 0x18], 0
push dword [esp + 0x18]
push dword [esp + 0x20]
push 0x420b4c
push 0x35
push edi
call fcn.0041bc4c
mov eax, dword [esp + 0x44]
mov dword [eax], edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esp, 0x14
test ebx, ebx
je 0x417937
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call edi
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b8aa
mov esp, ebp
pop ebp
ret 8
Function at 0x419286
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0x1c
mov dword [ebp - 0x58], eax
jb 0x4193a2
cmp dword [edi + 0x18], 0x14
jb 0x4193a2
push 7
add edi, 0x1c
push 0x420f22
push edi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4193a2
mov esi, dword [edi + 0xc]
cmp esi, 0x14
jb 0x4193a2
cmp dword [edi + 8], eax
je 0x4193a2
add esi, 0xffffffec
lea eax, [edi + 0x14]
push esi
push eax
call fcn.0041be38
pop ecx
pop ecx
cmp eax, esi
je 0x4193a2
mov esi, dword [edi + 0xc]
mov eax, dword fs:[0x30]
sub esi, 0x14
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x419327
mov esi, 0xc000009a
jmp 0x4193a7
push esi
lea eax, [edi + 0x14]
push eax
push ebx
call sub.msvcrt.dll_memcpy
push ebx
call sub.msvcrt.dll__wcsupr
push 0x420f2a
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x18
test eax, eax
jne 0x419352
mov esi, 0xc0000225
jmp 0x41938d
add eax, 0x14
sub esi, eax
add esi, ebx
cmp esi, 0x4e
jb 0x41934b
push 0x13
mov esi, eax
pop ecx
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
mov word [ebp - 8], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp - 0x58]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ntdll.dll_RtlGUIDFromString]
mov esi, eax
mov ecx, dword fs:[0x30]
push ebx
push 0
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x4193a7
mov esi, 0xc000000d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b8aa
leave
ret 4