joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018410
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
lea rax, [0x14003a39f]
mov rbx, rdx
test rcx, rcx
je 0x14001842a
cmp qword [rcx], 0
jne 0x140018448
mov rcx, rax
call sym.getenv
mov rcx, rax
test rax, rax
je 0x14001845c
add rsp, 0x20
pop rbx
jmp sym.cstrToNimstr
lea rax, [rcx + 0x10]
mov rcx, rax
call sym.getenv
mov rcx, rax
test rax, rax
jne 0x14001843a
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.copyString

Function at 0x140018760
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14003a410]
call sym.getenv
mov rcx, rax
test rax, rax
je 0x1400187d0
call sym.cstrToNimstr
mov rsi, rax
test rsi, rsi
je 0x1400187df
mov rax, qword [rsi]
lea rcx, [rax + 1]
call sym.rawNewString
lea rdx, [rsi + 0x10]
mov rbx, rax
mov rax, qword [rax]
lea rcx, [rbx + rax + 0x10]
mov rax, qword [rsi]
lea r8, [rax + 1]
call sym.memcpy
mov rax, qword [rsi]
add rax, qword [rbx]
mov qword [rbx], rax
mov edx, 0x5c
mov word [rbx + rax + 0x10], dx
mov rax, rbx
add qword [rbx], 1
add rsp, 0x28
pop rbx
pop rsi
ret
xor ecx, ecx
call sym.copyString
mov rsi, rax
test rsi, rsi
jne 0x140018787
mov ecx, 1
call sym.rawNewString
mov rbx, rax
mov rax, qword [rax]
jmp 0x1400187b7
Function at 0x14001ac60
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
cmp rdx, 3
jle 0x14001ae00
sar rdx, 0x3f
mov rdi, rsi
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
mov rdx, rsi
sub rdi, rax
cmp rdi, rsi
cmovle rdx, rdi
xor r13d, r13d
xor r12d, r12d
mov eax, dword [rbx + r13]
add r13, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp r13, rdx
jl 0x14001aca8
lea rbp, [rsi - 1]
cmp rdi, r13
jle 0x14001ad15
nop dword [rax + rax]
mov rcx, r13
mov rdx, rbp
call sym.raiseIndexError2
mov eax, dword [rbx + r13]
add r13, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp rdi, r13
jg 0x14001ace0
lea rax, [rdi - 1]
shr rax, 2
test rdi, rdi
lea r13, [rax*4 + 4]
mov eax, 4
cmovle r13, rax
mov rax, rsi
xor r14d, r14d
sar rax, 0x3f
shr rax, 0x3e
lea rdi, [rsi + rax]
and edi, 3
sub rdi, rax
test rdi, rdi
jle 0x14001adb8
lea r15, [rsi - 1]
jmp 0x14001ad6d
cmp rbp, rsi
jge 0x14001ad8b
movzx eax, byte [rbx + rbp]
shl r14d, 8
or r14d, eax
test rdi, rdi
je 0x14001ada6
sub rdi, 1
mov rbp, r13
add rbp, rdi
js 0x14001ae0b
cmp rbp, rdi
jb 0x14001ae0b
test rbp, rbp
jns 0x14001ad58
mov rdx, r15
mov rcx, rbp
shl r14d, 8
call sym.raiseIndexError2
movzx eax, byte [rbx + rbp]
or r14d, eax
test rdi, rdi
jne 0x14001ad6d
imul r14d, r14d, 0xcc9e2d51
rol r14d, 0xf
imul r14d, r14d, 0x1b873593
xor r12d, esi
mov eax, r12d
xor eax, r14d
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
imul r12d, r12d, 0x85ebca6b
mov edx, r12d
shr edx, 0xd
xor edx, r12d
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
xor r12d, r12d
jmp 0x14001ad31
call sym.raiseOverflow
jmp 0x14001ad86

Function at 0x14001ae20
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
test rcx, rcx
je 0x14001ae3b
mov rdx, qword [rcx]
test rdx, rdx
js 0x14001ae50
add rbx, 0x10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.murmurHash__pureZhashes_192
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call sym.raiseIndexError4
mov rdx, qword [rbx]
jmp 0x14001ae37
Function at 0x140021050
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
mov r9, rdx
test rdx, rdx
je 0x1400210ab
mov rcx, qword [rcx]
mov r8, qword [r10 + 8]
cmp rdx, 0xffffffffffffffff
je 0x1400210b0
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r11, r8
xor rcx, r8
ror r8, 0x1c
shl r11, 0xe
xor rcx, r11
mov r11, rdx
add r11, rax
jb 0x140021074
mov qword [r10], rcx
xor edx, edx
lea rcx, [r9 + 1]
div rcx
mov qword [r10 + 8], r8
mov r9, rdx
mov rax, r9
ret
lea r9, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov rax, r8
xor rcx, r8
ror r8, 0x1c
shl rax, 0xe
mov qword [r10 + 8], r8
xor rcx, rax
mov rax, r9
mov qword [r10], rcx
ret

Function at 0x1400210e0
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
mov r11, rcx
xor edx, edx
test r9, r9
je 0x14002113a
mov rcx, qword [rcx]
mov r8, qword [r11 + 8]
cmp r9, 0xffffffffffffffff
je 0x140021140
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r10, r8
xor rcx, r8
ror r8, 0x1c
shl r10, 0xe
xor rcx, r10
mov r10, rdx
add r10, rax
jb 0x140021106
mov qword [r11], rcx
xor edx, edx
lea rcx, [r9 + 1]
div rcx
mov qword [r11 + 8], r8
mov rax, rdx
ret
mov rax, rcx
mov rdx, rcx
xor rax, r8
ror rdx, 9
mov r9, rax
xor rdx, rax
ror rax, 0x1c
shl r9, 0xe
mov qword [r11 + 8], rax
xor rdx, r9
mov qword [r11], rdx
lea rdx, [rcx + r8]
mov rax, rdx
ret

Function at 0x140021170
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
js 0x1400211f8
jne 0x140021190
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
xor edx, edx
mov rcx, qword [0x140054c70]
mov r8, qword [0x140054c78]
div rbx
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r10, rdx
mov r9, r8
xor rcx, r8
ror r8, 0x1c
shl r9, 0xe
xor rcx, r9
add r10, rax
jb 0x1400211aa
add rbx, 1
xor edx, edx
mov qword [0x140054c70], rcx
div rbx
mov qword [0x140054c78], r8
mov rbx, rdx
mov rax, rbx
add rsp, 0x20
pop rbx
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
cmp rbx, 0xffffffffffffffff
jne 0x140021190
mov rbx, qword [0x140054c70]
mov rcx, qword [0x140054c78]
mov rax, rbx
mov rdx, rbx
add rbx, rcx
xor rax, rcx
ror rdx, 9
mov r8, rax
xor rdx, rax
ror rax, 0x1c
shl r8, 0xe
mov qword [0x140054c78], rax
xor rdx, r8
mov qword [0x140054c70], rdx
jmp 0x14002117f
Function at 0x140022550
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [r8]
mov rbx, qword [r8 + 8]
mov rdi, rcx
mov rbp, rdx
test rcx, rcx
je 0x140022581
mov rcx, qword [rcx]
lea rdx, [0x1400552e0]
call sym.isObj
test al, al
je 0x140022620
mov rax, qword [rbp]
test rsi, rsi
js 0x1400225e8
test rax, rax
je 0x1400225d0
mov rdx, qword [rax]
cmp rdx, rsi
jle 0x1400225f0
add rbx, 1
jo 0x140022634
sub rbx, rsi
jo 0x14002262a
test rbx, rbx
js 0x140022600
mov rax, qword [rbp]
mov rcx, qword [rdi + 0x58]
mov r8, rbx
lea rdx, [rax + rsi + 0x10]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.readBuffer__systemZio_144
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call sym.raiseIndexError2
jmp 0x140022597
test rax, rax
je 0x1400225d0
mov rdx, qword [rax]
sub rdx, 1
jmp 0x1400225d7
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x1400225af
call sym.raiseObjectConversionError
jmp 0x140022581
call sym.raiseOverflow
jmp 0x1400225aa
call sym.raiseOverflow
jmp 0x1400225a1

Function at 0x140022640
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
test rcx, rcx
je 0x140022668
mov rcx, qword [rcx]
lea rdx, [0x1400552e0]
call sym.isObj
test al, al
je 0x1400226a0
test rsi, rsi
js 0x140022688
mov rcx, qword [rbx + 0x58]
mov r8, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.readBuffer__systemZio_144
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call sym.raiseRangeErrorI
jmp 0x14002266d
call sym.raiseObjectConversionError
jmp 0x140022668
Function at 0x14002a150
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
movdqu xmm0, xmmword [0x14003bca0]
xor eax, eax
lea rbp, [rsp + 0x30]
mov r12, rcx
mov ecx, 0xd
mov r14, rdx
mov rdi, rbp
mov r13, r8
rep stosq qword [rdi], rax
movups xmmword [rsp + 0x38], xmm0
movdqu xmm0, xmmword [0x14003bcb0]
movups xmmword [rsp + 0x48], xmm0
test rdx, rdx
jle 0x14002a2c8
lea rcx, [rdx - 1]
mov r15, rdx
xor esi, esi
mov edi, 0x40
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x100], r8
jmp 0x14002a22e
test bl, 4
jne 0x14002a2f8
test ebx, ebx
je 0x14002a1eb
movzx edx, byte [rcx]
mov byte [rax], dl
test bl, 2
jne 0x14002a310
add rsi, rbx
jno 0x14002a1f5
call sym.raiseOverflow
sub r15, rbx
add ebx, dword [rsp + 0x30]
mov dword [rsp + 0x30], ebx
jae 0x14002a207
add dword [rsp + 0x34], 1
and ebx, 0x3f
jne 0x14002a221
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x38]
mov r8d, 0x40
call sym.sha256Transform__OOZOOZOOZOnimbleZpkgsZnimcrypto4548O54O48ZnimcryptoZsha50_235
test r15, r15
jle 0x14002a2c0
mov eax, dword [rsp + 0x30]
mov r13d, eax
mov rbx, rdi
and r13d, 0x3f
sub rbx, r13
cmp rbx, r15
cmovg rbx, r15
test rsi, rsi
js 0x14002a2b0
cmp r14, rsi
jle 0x14002a2b0
lea rax, [rbp + r13 + 0x28]
lea rcx, [r12 + rsi]
cmp ebx, 8
jb 0x14002a1d0
mov rdx, qword [rcx]
lea r10, [rax + 8]
and r10, 0xfffffffffffffff8
mov qword [rax], rdx
mov edx, ebx
mov r8, qword [rcx + rdx - 8]
mov qword [rax + rdx - 8], r8
sub rax, r10
sub rcx, rax
add eax, ebx
and eax, 0xfffffff8
cmp eax, 8
jb 0x14002a1eb
and eax, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov r9, qword [rcx + r8]
mov qword [r10 + r8], r9
cmp edx, eax
jb 0x14002a291
jmp 0x14002a1eb
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call sym.raiseIndexError2
jmp 0x14002a24c
mov r13, qword [rsp + 0x100]
mov rdx, r13
mov rcx, rbp
call sym.finish__mmmbar_248
mov edx, 0x68
mov rcx, rbp
call sym.burnMem__OOZOOZOOZOnimbleZpkgsZnimcrypto4548O54O48ZnimcryptoZutils_250
nop
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, ebx
mov ecx, dword [rcx + rdx - 4]
mov dword [rax + rdx - 4], ecx
jmp 0x14002a1eb
mov edx, ebx
movzx ecx, word [rcx + rdx - 2]
mov word [rax + rdx - 2], cx
jmp 0x14002a1eb
Function at 0x140030a60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140030ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140057494]
mov rbx, rcx
test esi, esi
jle 0x140030c00
mov rax, qword [0x140057498]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140030b1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140030ba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140030b00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140030c22
mov rax, qword [0x140057498]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140057498]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140030c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140030b9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140030bb0
add dword [0x140057494], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140057498]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140030b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140030b28
mov rax, qword [0x140057498]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140031190
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140057500]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400574e0]
test rbx, rbx
je 0x1400311ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400311e3
test rsi, rsi
je 0x1400311e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400311c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140031400
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140031418
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140031420
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140031430
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14003147d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140031474
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14003147f
add rax, 0x28
cmp rax, r9
jne 0x140031460
xor eax, eax
ret

Function at 0x140031480
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140031510
mov rdx, qword [0x14003cbf0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400314fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400314fe
cmp word [rax + 0x18], 0x20b
jne 0x1400314fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140031510
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400314e9
add rbx, 0x28
cmp rbx, rdi
je 0x140031510
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400314e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140031520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003cbf0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140031540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140031548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140031540
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003159d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140031594
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140031540
add rax, 0x28
cmp rax, r9
jne 0x140031580
xor eax, eax
ret

Function at 0x1400315a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003cbf0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400315bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400315c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400315bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400315e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14003cbf0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140031600
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140031608
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140031600
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140031650
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140031647
test rcx, rcx
je 0x140031600
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140031638
xor eax, eax
ret

Function at 0x140031660
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003cbf0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003167f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140031688
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400316a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003cbf0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400316c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400316c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400316c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400316c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140031714
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140031720
add rdx, 0x28
cmp r9, rdx
jne 0x140031700
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140031730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14003cbf0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140031752
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140031760
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140031752
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140031752
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140031752
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400317b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400317c8
add rdx, 0x28
cmp rdx, r10
jne 0x1400317a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400317d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400317e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400317be
test ecx, ecx
jg 0x1400317d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x133c0
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov rbp, rcx
call fcn.0001b534
lea rcx, [0x0001f7c0]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
lea rsi, [0x0001f8c0]
mov rcx, rsi
mov bl, al
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
and qword [0x0001f8e8], 0
mov byte [0x0001f8e0], 0
mov dil, al
lea r12, [0x0001f820]
jmp 0x13432
mov rdx, qword [rcx + 8]
mov r8, qword [rcx]
mov qword [rdx], r8
mov qword [r8 + 8], rdx
mov edx, 0xa
call fcn.00014268
mov rcx, qword [0x0001f820]
cmp rcx, r12
jne 0x1341a
mov dl, dil
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
lea rcx, [0x0001f7c0]
mov dl, bl
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
lea rdi, [0x0001f830]
jmp 0x134b7
mov rcx, qword [r8 + 8]
mov rdx, qword [r8]
xor eax, eax
mov qword [rcx], rdx
lea rbx, [r8 - 0xa8]
mov qword [rdx + 8], rcx
xchg qword [rbx + 0x68], rax
test rax, rax
je 0x134ba
mov dl, r11b
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
and qword [rbx + 0x38], 0
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], 0xc0000120
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov r11b, al
mov r8, qword [0x0001f830]
cmp r8, rdi
jne 0x1346b
mov dl, r11b
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
lea rcx, [0x0001f7c0]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rbx, qword [0x0001f7c8]
lea r14, [0x0001f7c8]
mov r12b, al
jmp 0x13577
test byte [rbx + 0x48], 2
je 0x13574
mov dl, 1
mov rcx, rbx
call fcn.00018bc0
lea rcx, [rbx + 0x190]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
and dword [rbx + 0x48], 0
mov ecx, 0x2000
mov sil, al
mov byte [rbx + 0x158], 0
call fcn.00016d5c
test rax, rax
je 0x13564
and dword [rax + 0xdc], 0
mov rdx, qword [rbx + 0x10]
lea r8, [rbx + 0x138]
mov qword [rax + 0x10], rdx
mov rdx, qword [r8 + 8]
mov qword [rax], r8
mov qword [rax + 8], rdx
mov qword [rdx], rax
mov edx, 2
mov rcx, rbx
mov qword [r8 + 8], rax
call fcn.0001abcc
lea rcx, [rbx + 0x190]
mov dl, sil
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x134f5
mov rbx, qword [0x0001f7f8]
lea rdi, [0x0001f7f8]
jmp 0x1359f
mov rcx, rbx
call fcn.00014da8
and dword [rbx + 0x30], 0
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x13590
lea rcx, [0x0001f7c0]
mov dl, r12b
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
lea rcx, [0x0001e140]
call fcn.00013c24
lea rcx, [0x0001e120]
call fcn.00013c24
and dword [rbp + 0x30], 0
and qword [rbp + 0x38], 0
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop r14
pop r12
pop rdi
ret