joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8690
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
test dword [rcx + 0xe70], 0x4000000
movsxd r10, r9d
je 0x1400a87b7
cmp r8d, 0xff
jne 0x1400a86f4
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400a86de
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xdf5c0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140076f50
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140076f50
cmp r8d, 0xfb
jne 0x1400a8706
lea r9, str.WILL
jmp 0x1400a8744
cmp r8d, 0xfc
jne 0x1400a8718
lea r9, str.WONT
jmp 0x1400a8744
cmp r8d, 0xfd
jne 0x1400a872a
lea r9, [0x1400dffe4]
jmp 0x1400a8744
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400a87a0
cmp r10d, 0x27
jg 0x1400a8777
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xdfbe0]
test r8, r8
jne 0x1400a8787
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140076f50
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400a875e
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140076f50
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140076f50
add rsp, 0x38
ret

Function at 0x1400a8b10
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x240]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a8b6f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140076dd0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400a8690
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8d20
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400a8ecd
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400a8d6e
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
jmp 0x1400a8d71
mov rax, rsi
cmp rax, rbx
jae 0x1400a8d8a
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a8d8a
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400a8dc1
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a8e17
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8e17
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8e17
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8e17
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a8e17
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a87c0
mov rcx, qword [r14 + 0x240]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400a8e79
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140076dd0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a8ba0
mov rcx, qword [r14 + 0x240]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a8ec5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140076dd0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400aa690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x798]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
mov rdx, qword [rdi + 0x168]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x1400aa725
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400bd846
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r8d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r8d, 4
jge 0x1400aa786
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140076dd0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14005f850
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rdi + 0x168]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rdi + 0xc], edx
sub edx, 3
je 0x1400aa836
sub edx, 1
je 0x1400aa8ac
sub edx, 1
je 0x1400aa7f0
cmp edx, 1
je 0x1400aa7d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400ddbd0]
call fcn.140076dd0
jmp 0x1400aa8ac
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.1400aa3c0
test eax, eax
je 0x1400aa8ac
jmp 0x1400aa75a
mov rdx, rax
lea rbp, [rax + 4]
lea eax, [r8 - 4]
movsxd rbx, eax
movzx ecx, byte [rdx + 2]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1400aa2e0
cmp rax, rbx
jae 0x1400aa8ac
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.140076f50
jmp 0x1400aa8ac
cmp r8d, 4
jle 0x1400aa8ac
movzx ecx, byte [rax + 2]
mov rdx, rax
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400aa8ac
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140076cf0
mov ebx, eax
test eax, eax
je 0x1400aa88b
mov edx, 5
mov rcx, rdi
call fcn.1400ab330
mov eax, ebx
jmp 0x1400aa75a
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x110], rax
mov rdx, qword [rsi + 0x110]
call fcn.1400944d0
mov rcx, r14
call fcn.1400947a0
test eax, eax
je 0x1400aa758
mov edx, 5
mov rcx, rdi
call fcn.1400ab330
mov eax, 0x2a
jmp 0x1400aa75a
Function at 0x1400ba380
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ba3c2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ba409
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ba462
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ba420
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ba4a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e355a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e355b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ba470
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x114e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
and qword [rax + 0x20], 0
mov rbp, rdx
xor edx, edx
mov r12, r8
mov rbx, rcx
lea r8d, [rdx + 0x28]
lea rcx, [rax - 0x40]
call fcn.000134b0
and dword [rsp + 0x80], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x98]
mov edx, 0x20019
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x40
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jne 0x1168a
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1168a
xor r9d, r9d
lea rax, [rsp + 0x80]
mov rdx, rbp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 2]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
jne 0x1167c
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1167c
mov rsi, rax
mov edi, 8
mov r8d, 0x33524946
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x115df
add edi, 0xffffffff
jne 0x115bc
jmp 0x115ec
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.000134b0
mov rcx, qword [rsp + 0x98]
test rbx, rbx
je 0x11684
lea rax, [rsp + 0x80]
mov r9, rbx
mov r8d, 2
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x80]
mov rdx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x11649
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x33524946
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1168a
cmp dword [rbx + 4], 4
jne 0x1162b
cmp dword [rbx + 8], 4
jne 0x1162b
mov eax, dword [rbx + 0xc]
mov rcx, qword [rsp + 0x98]
mov dword [r12], eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x33524946
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x1168f
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x11784
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 8]
mov qword [rcx], rax
mov dword [0x0012cdcc], 0x67452301
mov dword [0x0012cdd0], 0xefcdab89
mov dword [0x0012cdd4], 0x98badcfe
mov dword [0x0012cdd8], 0x10325476
mov ecx, dword [0x0012cdd0]
mov eax, dword [0x0012cdcc]
xor eax, ecx
mov dword [0x0012cddc], eax
mov ecx, dword [0x0012cdd8]
mov eax, dword [0x0012cdd4]
xor eax, ecx
mov dword [0x0012cde0], eax
mov rax, qword [rsp + 8]
add rax, 0xc
ret
Function at 0x11c50
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xb0
and qword [r11 + 0x10], 0
and qword [r11 - 0x78], 0
xor eax, eax
mov rbx, rcx
lea r8d, [rax + 0x28]
lea rcx, [r11 - 0x60]
xor edx, edx
mov qword [r11 - 0x70], rax
call fcn.000134b0
and qword [rsp + 0xd0], 0
and dword [rsp + 0xd8], 0
xor eax, eax
mov dword [rsp + 0x50], 0x30
mov dword [rsp + 0x68], 0x200
and qword [rsp + 0x58], rax
and qword [rsp + 0x60], rax
and qword [rsp + 0x70], rax
and qword [rsp + 0x78], rax
mov dword [rsp + 0xdc], eax
test rbx, rbx
jne 0x11cca
mov eax, 0xc000000d
jmp 0x11dcd
mov qword [rsp + 0x30], rbx
lea rax, [0x000117f8]
mov ebx, 0x1f03ff
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0xc8]
xor r9d, r9d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x11dcd
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xd8]
mov r8, qword [r8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd0]
xor r9d, r9d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x11db8
and dword [rsp + 0x80], 0
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x28]
call fcn.000134b0
mov rcx, qword [rsp + 0xd0]
and dword [rsp + 0xc0], 0
and qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0xc8]
lea r11, [rsp + 0xc0]
lea r8, [rsp + 0x80]
mov r9d, 0x30
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationThread]
mov ebx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x11dcb
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0xb0
pop rbx
ret

Function at 0x11ddc
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rbp, rcx
mov dword [rax - 0x18], ebx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
cmp rax, rbx
jne 0x11e10
mov ebx, 0xc000007b
jmp 0x11e93
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
je 0x11e28
cmp eax, 0x20b
jne 0x11e06
mov rsi, qword [rdi + 0x30]
jmp 0x11e2b
mov esi, dword [rdi + 0x34]
lea r9, [rsp + 0x20]
mov r8d, 5
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
cmp rax, rbx
je 0x11e83
mov ecx, dword [rsp + 0x20]
cmp ecx, ebx
je 0x11e83
mov r9, rbp
sub r9, rsi
mov edx, dword [rax + 4]
cmp edx, ebx
je 0x11e06
sub ecx, edx
add edx, 0xfffffff8
lea r8, [rax + 8]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rax]
shr edx, 1
add rcx, rbp
call fcn.00011eb0
cmp rax, rbx
je 0x11e06
mov ecx, dword [rsp + 0x20]
cmp ecx, ebx
jne 0x11e54
jmp 0x11e93
mov al, byte [rdi + 0x16]
and al, 1
neg al
sbb eax, eax
and eax, 0xc0000018
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1277c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x0012cde8]
xor esi, esi
mov dword [rsp + 0x48], esi
cmp rax, rsi
jne 0x128cb
lea r9, [0x00013ad0]
mov ecx, 0x7fff
mov word [rsp + 0x20], si
mov word [rsp + 0x22], si
mov qword [rsp + 0x28], rsi
lea r8d, [rsi + 2]
mov rdx, r9
mov rax, rcx
cmp word [rdx], si
je 0x127d4
add rdx, r8
sub rax, 1
jne 0x127c6
cmp rax, rsi
je 0x127f3
sub rcx, rax
mov qword [rsp + 0x28], r9
lea rax, [rcx + rcx]
mov word [rsp + 0x20], ax
add ax, r8w
mov word [rsp + 0x22], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
cmp rax, rsi
jne 0x1280d
xor eax, eax
jmp 0x128cb
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea r9, [rsp + 0x48]
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov r11d, dword [rsp + 0x48]
cmp r11d, esi
je 0x12806
mov rdx, r11
xor ecx, ecx
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.000134b0
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, esi
jl 0x128b1
mov ecx, esi
cmp dword [rbx], esi
jbe 0x128b1
lea rdx, [rbx + 0x18]
cmp rdi, qword [rdx]
jb 0x12885
mov eax, dword [rdx + 8]
add rax, qword [rdx]
cmp rdi, rax
jb 0x12894
inc ecx
add rdx, 0x128
cmp ecx, dword [rbx]
jae 0x128b1
jmp 0x12875
imul rcx, rcx, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x0012cde8], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x0012cde4], eax
cmp rbx, rsi
je 0x128c4
mov edx, 0x656e6f42
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x0012cde8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x128e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
cmp rdx, r8
je 0x129cb
mov r11d, dword [rax + rcx + 0x8c]
mov dword [rsp + 0x60], r11d
mov esi, dword [rax + rcx + 0x88]
lea rax, [rcx + rsi]
mov r14d, dword [rax + 0x1c]
add r14, rcx
mov r13d, dword [rax + 0x24]
add r13, rcx
mov r12d, dword [rax + 0x20]
lea rdi, [rcx + r12]
mov qword [rsp + 0x10], rdi
mov r15d, dword [rax + 0x18]
mov r9d, dword [rax + 0x14]
mov dword [rsp + 0x68], r9d
mov edx, r8d
mov dword [rsp], edx
cmp edx, r12d
jae 0x129d8
mov r10d, edx
movsx eax, word [r13 + r10*2]
cmp edx, r15d
jae 0x129c7
cmp eax, r9d
jae 0x129c7
mov r9d, dword [r14 + rax*4]
cmp r9d, esi
jb 0x1297e
lea eax, [rsi + r11]
cmp r9d, eax
jb 0x129bb
mov eax, dword [rdi + r10*4]
add rax, rcx
mov rdi, rbx
sub rdi, rax
movzx r10d, byte [rax]
movzx r11d, byte [rax + rdi]
sub r10d, r11d
jne 0x129a1
inc rax
test r11d, r11d
jne 0x1298b
cmp r10d, r8d
jne 0x129b1
lea r8, [rcx + r9]
mov qword [rsp + 8], r8
jmp 0x129d8
mov r11d, dword [rsp + 0x60]
mov rdi, qword [rsp + 0x10]
inc edx
mov dword [rsp], edx
mov r9d, dword [rsp + 0x68]
jmp 0x12954
xor eax, eax
jmp 0x129e5
mov r8d, dword [rax + rcx + 0x28]
add r8, rcx
mov qword [rsp + 8], r8
jmp 0x129e2
mov rax, r8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x12ae0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rcx
xor eax, eax
xor ebx, ebx
xor ecx, ecx
mov rbp, r8
mov r12, rdx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], eax
call fcn.0001277c
lea edx, [rbx + 8]
lea rcx, [rsp + 0x68]
mov rsi, rax
call fcn.00012a60
cmp eax, ebx
je 0x12c3c
lea r14d, [rbx + 4]
mov rcx, rsi
mov edx, r14d
call fcn.00012a60
cmp eax, ebx
je 0x12c3c
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x12c3c
lea rcx, [rsi + 0x3c]
mov edx, r14d
call fcn.00012a60
cmp eax, ebx
je 0x12c3c
movsxd rdi, dword [rsi + 0x3c]
mov edx, r14d
add rdi, rsi
mov rcx, rdi
call fcn.00012a60
cmp eax, ebx
je 0x12c3c
cmp dword [rdi], 0x4550
jne 0x12c3c
lea rcx, [rdi + 8]
mov edx, r14d
call fcn.00012a60
cmp eax, ebx
je 0x12c3c
lea rcx, [rdi + 0x58]
mov edx, r14d
call fcn.00012a60
cmp eax, ebx
je 0x12c3c
cmp dword [rdi + 0x58], ebx
je 0x12c3c
cmp dword [rdi + 8], ebx
je 0x12c3c
cmp dword [rdi + 0x58], 0x550986
jne 0x12bea
cmp dword [rdi + 8], 0x4cc791bd
jne 0x12c3c
mov dword [r13], 0x11a080
mov dword [r12], 0x1e7470
mov dword [rbp], 3
jmp 0x12c37
cmp dword [rdi + 0x58], 0x551c2c
jne 0x12c0e
cmp dword [rdi + 8], 0x4ca43a80
jne 0x12c3c
mov dword [r13], 0x11ef40
mov dword [r12], 0x1ed470
jmp 0x12be1
cmp dword [rdi + 0x58], 0x77ac55
jne 0x12c3c
cmp dword [rdi + 8], 0x578998f1
jne 0x12c3c
mov dword [r13], 0xbedd8
mov dword [r12], 0x2f4c40
mov dword [rbp], 2
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1300c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
mov r13d, ebx
mov dword [rsp + 0x20], ebx
mov r12d, ebx
mov dword [rsp + 0x24], ebx
mov esi, ebx
mov dword [rsp + 0x28], ebx
mov r15d, ebx
mov dword [rsp + 0x70], ebx
cmp rcx, rbx
jne 0x13048
xor eax, eax
jmp 0x13148
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x13117
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x13117
cmp dword [rax + rcx + 0x78], ebx
je 0x13117
mov eax, dword [rax + rcx + 0x78]
add rax, rcx
mov qword [rsp + 0x88], rax
mov edi, 1
cmp r15d, dword [rax + 0x18]
jae 0x1311c
mov eax, dword [rax + 0x20]
mov ecx, r15d
add rax, r14
mov eax, dword [rax + rcx*4]
add rax, r14
mov qword [rsp + 0x80], rax
lea rdx, [0x00013b20]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
jne 0x130c2
add r13d, edi
mov dword [rsp + 0x20], r13d
lea rdx, [0x00013b30]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
jne 0x130e3
add r12d, edi
mov dword [rsp + 0x24], r12d
lea rdx, [0x00013b40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe__stricmp]
cmp eax, ebx
jne 0x13102
add esi, edi
mov dword [rsp + 0x28], esi
add r15d, edi
mov dword [rsp + 0x2c], r15d
mov rax, qword [rsp + 0x88]
jmp 0x13085
mov edi, 1
jmp 0x13135
cmp r13d, 2
jne 0x13146
cmp r12d, r13d
jne 0x13146
cmp esi, r13d
cmove ebx, edi
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x131e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov ebx, ecx
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x68], ecx
mov r12d, ecx
cmp rsi, rcx
jne 0x13214
xor eax, eax
jmp 0x13375
mov eax, 0x5a4d
cmp ax, word [rsi]
jne 0x1336e
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1336e
cmp dword [rax + rsi + 0x78], ecx
je 0x1336e
mov r13d, dword [rax + rsi + 0x78]
add r13, rsi
cmp r12d, dword [r13 + 0x18]
jae 0x1336e
mov edx, r12d
mov eax, dword [r13 + 0x20]
lea rcx, [rsi + rax]
mov r14d, dword [rcx + rdx*4]
add r14, rsi
mov eax, dword [r13 + 0x24]
lea rcx, [rsi + rax]
movzx edx, word [rcx + rdx*2]
mov eax, dword [r13 + 0x1c]
lea rcx, [rsi + rax]
mov r15d, dword [rcx + rdx*4]
lea rdx, [0x00013b20]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
jne 0x132c0
inc ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x20], ebx
lea rbx, [rsi + r15]
lea edx, [rax + 6]
lea r8d, [rax + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8d, 6
lea rdx, [0x00015118]
mov rcx, rbx
call fcn.00012e58
lea rdx, [0x00013b30]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
jne 0x1330d
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x24], eax
lea rbx, [rsi + r15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8d, 6
lea rdx, [0x00015120]
mov rcx, rbx
call fcn.00012e58
lea rdx, [0x00013b40]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
jne 0x1335d
mov r14d, dword [rsp + 0x68]
inc r14d
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x28], r14d
lea rbx, [rsi + r15]
lea r8d, [rax + 1]
lea r14d, [rax + 6]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8d, r14d
lea rdx, [0x00015128]
mov rcx, rbx
call fcn.00012e58
inc r12d
mov dword [rsp + 0x2c], r12d
mov ebx, dword [rsp + 0x70]
jmp 0x13245
jmp 0x13370
mov eax, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret