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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1092637
cmp dword [ebp - 0x34], 1
je 0x1092647
cmp dword [ebp - 0x34], 2
je 0x1092662
jmp 0x109268f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x1092693
push 0xe
push 8
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov dword [ebp - 0xc], eax
jmp 0x1092693
push 5
push 0x18
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x109268d
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
jmp 0x1092693
xor al, al
jmp 0x10926fa
cmp dword [ebp - 0xc], 0
je 0x10926ac
mov eax, dword [ebp - 0xc]
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call fcn.0108f8a0
xor al, al
jmp 0x10926fa
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
adc edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
push 0xe
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10926ea
mov eax, dword [ebp - 0xc]
push eax
call fcn.0108f8c0
xor al, al
jmp 0x10926fa
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1092710
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0xd], 0
push 5
push 0x18
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x109274f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov byte [ebp - 0xd], 1
jmp 0x1092758
mov eax, dword [ebp - 0xc]
push eax
call fcn.0108f8c0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8
Function at 0x1092a10
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 8], 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntdll.dll_RtlDosPathNameToNtPathName_U
movzx edx, al
test edx, edx
jne 0x1092a3e
xor al, al
jmp 0x1092aef
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x40
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 1
push 1
push 0
push 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0x10000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwCreateFile]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
cmp dword [ebp - 0x1c], 0
jge 0x1092ab3
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0108f8c0
xor al, al
jmp 0x1092aef
mov byte [ebp - 1], 1
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0x1c], 0
jge 0x1092aed
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0108f8c0
xor al, al
jmp 0x1092aef
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1093450
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.01092db0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x1093479
mov edx, dword [ebp - 0x10]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x10934bd
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwDeleteValueKey]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x10934aa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0x10], 0
jge 0x10934bb
mov eax, dword [ebp - 0x10]
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x10934bd
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1094540
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.01092db0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x109456c
mov edx, dword [ebp - 0x10]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x109460d
cmp dword [ebp + 0xc], 0
je 0x1094582
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x1094591
push 0x1001464
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 1
je 0x10945a9
cmp dword [ebp + 0x14], 7
je 0x10945a9
cmp dword [ebp + 0x14], 2
jne 0x10945c9
cmp dword [ebp + 0x1c], 0
je 0x10945c9
mov ecx, dword [ebp + 0x1c]
shr ecx, 1
mov edx, dword [ebp + 0x18]
movzx eax, word [edx + ecx*2 - 2]
test eax, eax
je 0x10945c9
mov ecx, dword [ebp + 0x1c]
add ecx, 2
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwSetValueKey]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x10945fa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0x10], 0
jge 0x109460b
mov eax, dword [ebp - 0x10]
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x109460d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1095ac0
Capabilities:
Manipulate boot configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x510
mov word [ebp - 0x300], 0
push 0xfe
push 0
lea eax, [ebp - 0x2fe]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x504], ecx
lea edx, [ebp - 0x300]
mov dword [ebp - 0x508], edx
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x504]
mov dx, word [ecx]
mov word [ebp - 0x50e], dx
mov eax, dword [ebp - 0x508]
mov cx, word [ebp - 0x50e]
mov word [eax], cx
mov edx, dword [ebp - 0x504]
add edx, 2
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x508]
add eax, 2
mov dword [ebp - 0x508], eax
cmp word [ebp - 0x50e], 0
jne 0x1095b0b
mov word [ebp - 0x200], 0
push 0x1fe
push 0
lea ecx, [ebp - 0x1fe]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x500], 0
push 0x1fe
push 0
lea edx, [ebp - 0x4fe]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
push 0x10062a4
lea ecx, [ebp - 0x200]
push ecx
call sub.ntdll.dll_swprintf
add esp, 0xc
lea edx, [ebp - 0x300]
push edx
push 0x100628c
lea eax, [ebp - 0x500]
push eax
call sub.ntdll.dll_swprintf
add esp, 0xc
lea ecx, [ebp - 0x200]
push ecx
call fcn.01095c00
test eax, eax
jne 0x1095be7
lea edx, [ebp - 0x500]
push edx
call fcn.01095c00
test eax, eax
je 0x1095bee
mov eax, 1
jmp 0x1095bf0
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10bf4a0
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x10bf4c9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x10bf4f5
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 0xc]
shr eax, 8
xor eax, dword [edx*4 + 0x1009048]
mov dword [ebp - 0xc], eax
jmp 0x10bf4c0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10c8220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11b5746
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov byte [ebp - 0x25], al
lea ecx, [ebp - 0x25]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 8
call fcn.010c29f0
mov dword [ebp - 4], 0
xor edx, edx
mov byte [ebp - 0x26], dl
lea eax, [ebp - 0x26]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x18
call fcn.010c29f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x40], 0xffffffff
mov dword [ecx + 0x44], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x38], 0xffffffff
mov dword [edx + 0x3c], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x34], 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 8
call fcn.010cabe0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x28], 1
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c8500
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c88a0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c89f0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c9d90
push 0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c8fd0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c9760
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c8430
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
sub esp, 0x18
mov ecx, esp
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x2c]
call fcn.010ca7d0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.010c9d10
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10c8500
Capabilities:
Manipulate boot configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov dword [ebp - 0x614], ecx
mov eax, dword [ebp - 0x614]
cmp dword [eax + 0x28], 0
je 0x10c8527
mov eax, 1
jmp 0x10c876e
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
call fcn.010946d0
mov dword [ebp - 4], eax
mov word [ebp - 0x610], 0
push 0xfe
push 0
lea edx, [ebp - 0x60e]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x80
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x614]
cmp dword [ecx + 0x2c], 0
je 0x10c85f1
mov edx, dword [ebp - 0x614]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x618], eax
lea ecx, [ebp - 0x610]
mov dword [ebp - 0x61c], ecx
mov edx, dword [ebp - 0x61c]
mov dword [ebp - 0x620], edx
mov eax, dword [ebp - 0x618]
mov cx, word [eax]
mov word [ebp - 0x622], cx
mov edx, dword [ebp - 0x61c]
mov ax, word [ebp - 0x622]
mov word [edx], ax
mov ecx, dword [ebp - 0x618]
add ecx, 2
mov dword [ebp - 0x618], ecx
mov edx, dword [ebp - 0x61c]
add edx, 2
mov dword [ebp - 0x61c], edx
cmp word [ebp - 0x622], 0
jne 0x10c85a9
cmp dword [ebp - 0x50c], 0
jne 0x10c8635
call fcn.010947d0
mov dword [ebp - 0x628], eax
push 0x78
push 0x100a17c
call fcn.010c8780
push eax
push 0x100a140
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [ebp - 0x628]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
add esp, 0xc
xor eax, eax
jmp 0x10c876e
mov word [ebp - 0x108], 0
push 0xfe
push 0
lea ecx, [ebp - 0x106]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x610]
mov dword [ebp - 0x62c], edx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x630], eax
mov ecx, dword [ebp - 0x630]
mov dword [ebp - 0x634], ecx
mov edx, dword [ebp - 0x62c]
mov ax, word [edx]
mov word [ebp - 0x636], ax
mov ecx, dword [ebp - 0x630]
mov dx, word [ebp - 0x636]
mov word [ecx], dx
mov eax, dword [ebp - 0x62c]
add eax, 2
mov dword [ebp - 0x62c], eax
mov ecx, dword [ebp - 0x630]
add ecx, 2
mov dword [ebp - 0x630], ecx
cmp word [ebp - 0x636], 0
jne 0x10c8678
mov word [ebp - 0x308], 0
push 0x1fe
push 0
lea edx, [ebp - 0x306]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x508], 0
push 0x1fe
push 0
lea eax, [ebp - 0x506]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x10062a4
lea edx, [ebp - 0x308]
push edx
call sub.ntdll.dll_swprintf
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x100a12c
lea ecx, [ebp - 0x508]
push ecx
call sub.ntdll.dll_swprintf
add esp, 0xc
lea edx, [ebp - 0x308]
push edx
mov ecx, dword [ebp - 0x614]
call fcn.010c8430
test eax, eax
je 0x10c8769
lea eax, [ebp - 0x508]
push eax
mov ecx, dword [ebp - 0x614]
call fcn.010c8430
test eax, eax
je 0x10c8769
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10c9760
Capabilities:
Manipulate boot configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov dword [ebp - 0x444], ecx
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0x28], 0
je 0x10c9785
or eax, 0xffffffff
jmp 0x10c99bf
call fcn.010946d0
mov dword [ebp - 4], eax
mov word [ebp - 0x440], 0
push 0xfe
push 0
lea ecx, [ebp - 0x43e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x80
lea edx, [ebp - 0x440]
push edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x444]
cmp dword [ecx + 0x2c], 0
je 0x10c9846
mov edx, dword [ebp - 0x444]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x448], eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x448]
mov cx, word [eax]
mov word [ebp - 0x452], cx
mov edx, dword [ebp - 0x44c]
mov ax, word [ebp - 0x452]
mov word [edx], ax
mov ecx, dword [ebp - 0x448]
add ecx, 2
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 0x44c]
add edx, 2
mov dword [ebp - 0x44c], edx
cmp word [ebp - 0x452], 0
jne 0x10c97fe
cmp dword [ebp - 0x32c], 0
jne 0x10c9857
or eax, 0xffffffff
jmp 0x10c99bf
mov word [ebp - 0x120], 0
push 0xfe
push 0
lea eax, [ebp - 0x11e]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x458], ecx
lea edx, [ebp - 0x120]
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x458]
mov dx, word [ecx]
mov word [ebp - 0x462], dx
mov eax, dword [ebp - 0x45c]
mov cx, word [ebp - 0x462]
mov word [eax], cx
mov edx, dword [ebp - 0x458]
add edx, 2
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x45c]
add eax, 2
mov dword [ebp - 0x45c], eax
cmp word [ebp - 0x462], 0
jne 0x10c989a
mov word [ebp - 0x328], 0
push 0x1fe
push 0
lea ecx, [ebp - 0x326]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
push 0x10062a4
lea eax, [ebp - 0x328]
push eax
call sub.ntdll.dll_swprintf
add esp, 0xc
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x334]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x40
lea eax, [ebp - 0x334]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x338], 1
cmp dword [ebp + 8], 0
je 0x10c9976
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x128], 0
push 0
push 0
push 0x60
mov ecx, dword [ebp - 0x338]
push ecx
push 1
push 0x80
push 0
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0xc0100000
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.ntdll.dll_ZwCreateFile]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x128]
mov esp, ebp
pop ebp
ret 4
Function at 0x112b620
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x74]
test ecx, ecx
je 0x112b673
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.ntdll.dll_NtReadFile]
mov dword [ebp - 0x10], eax
jmp 0x112b75d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
xor eax, eax
sub edx, 1
sbb eax, 0
not edx
not eax
and edx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + edx - 1]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x94]
sub eax, 1
not eax
and ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x94]
lea eax, [ecx + edx - 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
sub edx, 1
not edx
and eax, edx
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x112b70b
mov dword [ebp - 0x10], 0xc000009a
jmp 0x112b75d
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.ntdll.dll_NtReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x112b73d
jmp 0x112b75d
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 4]
add edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0x18]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x112b774
mov edx, dword [ebp - 0x14]
push edx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x112b790
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x74]
test ecx, ecx
je 0x112b7e3
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [ebp - 0x10], eax
jmp 0x112b913
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
xor eax, eax
sub edx, 1
sbb eax, 0
not edx
not eax
and edx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + edx - 1]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x94]
sub eax, 1
not eax
and ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x94]
lea eax, [ecx + edx - 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
sub edx, 1
not edx
and eax, edx
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x112b881
mov dword [ebp - 0x10], 0xc000009a
jmp 0x112b913
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x14]
jne 0x112b899
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jne 0x112b899
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x112b8cb
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.ntdll.dll_NtReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x112b8cb
jmp 0x112b913
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 4]
add eax, dword [ebp - 0x14]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x112b92a
mov edx, dword [ebp - 0x14]
push edx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1175920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11b648b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0xd]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.010c29f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], 0xc
xor eax, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x40], 0
mov ecx, dword [ebp - 0x14]
call fcn.01175c50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc