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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x180089968]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x3034], ecx
test rbx, rbx
je 0x18001300d
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180013020
lea rdx, [0x180068d38]
mov rcx, rbx
mov rdi, rax
call fcn.180009ef0
mov rbx, rax
test rax, rax
je 0x180013008
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call fcn.1800436f0
mov rcx, rbx
call fcn.180042650
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x180014f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x180089968]
cmp byte [rbx + 0x3031], 0
jne 0x180015061
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001505a
lea rdx, [0x180068d34]
mov qword [rsp + 0x38], rdi
call fcn.180009ef0
mov rdi, rax
test rax, rax
je 0x180015055
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x40], r14
call fcn.180043498
mov r14d, eax
cmp eax, 0xffffffff
je 0x180015043
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.180042f40
test eax, eax
jne 0x180015043
mov rcx, rdi
call fcn.180043498
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x180015043
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.180042f40
test eax, eax
jne 0x180015043
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x180015043
mov rax, qword [0x180089968]
test rax, rax
je 0x180014fd5
inc dword [rax + 0x3b4]
mov rdx, qword [0x180089970]
mov rcx, r14
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x180015043
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.180042c68
mov rcx, rdi
cmp rax, r14
je 0x18001500f
call fcn.180042650
jmp 0x18001501f
call fcn.180042650
mov rdx, r14
mov rcx, rbp
call fcn.18000b280
mov rax, qword [0x180089968]
test rax, rax
je 0x180015031
dec dword [rax + 0x3b4]
mov rdx, qword [0x180089970]
mov rcx, rbp
call qword [0x180088008]
jmp 0x18001504b
mov rcx, rdi
call fcn.180042650
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x3031], 1
movss xmm0, dword [rbx + 0x3034]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1800150a4
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x3034], xmm0
jb 0x1800150a4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180015093
call fcn.180012fa0
jmp 0x18001509a
mov byte [rbx + 0x39c], 1
mov dword [rbx + 0x3034], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x180027ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180088280]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.1800097e0
mov rcx, qword [0x180089a78]
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov rbx, rax
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x28]
sub ecx, dword [rsp + 0x20]
movd xmm1, ecx
mov ecx, dword [rsp + 0x2c]
sub ecx, dword [rsp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x38]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 8], xmm1
movss dword [rbx + 0xc], xmm0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
xorps xmm1, xmm1
sub rax, qword [0x180089a80]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x180089a88]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rsp + 0x38]
mov qword [0x180089a80], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x138], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x139], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13b], 0
mov byte [rbx + 0x13a], al
call fcn.1800097e0
cmp byte [rax + 0x393], 0
je 0x180027ddc
cvttss2si ecx, dword [rax + 0x120]
lea rdx, [rsp + 0x30]
cvttss2si eax, dword [rax + 0x124]
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x180089a78]
mov dword [rsp + 0x34], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x180027ddc
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rbx + 0xc0], 0
je 0x180027dec
mov eax, 0xffffffff
jmp 0x180027df1
call fcn.180009860
cmp dword [0x180088238], eax
je 0x180027e04
mov dword [0x180088238], eax
call fcn.180028120
call fcn.180027e20
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180038000
add rsp, 0x50
pop rbx
ret

Function at 0x180028d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180089968]
mov rcx, qword [rax + 0x1ff0]
mov r10, qword [rax + 0x1c10]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x2b0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x250], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2b0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x2b0]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp 0x18001e780
Function at 0x180028e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180089968]
mov rcx, qword [rax + 0x1ff0]
mov r9, qword [rax + 0x1c10]
movups xmm0, xmmword [r9 + 0x250]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x2b0]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x250], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2b0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x1d7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x2b0]
add rsp, 0x38
jmp 0x18001e780
Function at 0x18003b760
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18003b78e
xor eax, eax
jmp 0x18003b874
cmp qword [rcx + 0x68], 0
je 0x18003b79f
call fcn.18003b890
jmp 0x18003b874
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18003b7b6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003b7b8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18003b7ea
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18003d5b0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18003b86e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18003b821
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18003b84a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180042c68
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18003b86e
cmp rsi, rbx
ja 0x18003b828
test rsi, rsi
je 0x18003b86e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180042c68
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18003b954
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18003b983
call fcn.18003ba14
jmp 0x18003b9fa
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x18003b99a
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18003b99c
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18003b9f4
test ecx, ecx
jle 0x18003b9d5
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.18003d5b0
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18003b9f4
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18003b9f4
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.1800436f0
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x2fc4d5a20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6b00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6422
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d64ba
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d649e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6492
cmp qword [rbp - 0x10], 0
je 0x2fc4d6492
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6458
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d64bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d65c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d65e8
mov eax, 0
jmp 0x2fc4d6636
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6611
mov eax, 0
jmp 0x2fc4d6636
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6631
mov eax, 0
jmp 0x2fc4d6636
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d663c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d66ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d66b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d66b1
mov rax, qword [rbp - 8]
jmp 0x2fc4d66cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6684
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0ba0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1c80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d15a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d163a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d161e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1612
cmp qword [rbp - 0x10], 0
je 0x2fc4d1612
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d15d8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d163b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1740
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1768
mov eax, 0
jmp 0x2fc4d17b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1791
mov eax, 0
jmp 0x2fc4d17b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d17b1
mov eax, 0
jmp 0x2fc4d17b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d17bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d183a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1831
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1831
mov rax, qword [rbp - 8]
jmp 0x2fc4d184f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1804
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3070
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4150
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3a72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3b0a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3aee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3ae2
cmp qword [rbp - 0x10], 0
je 0x2fc4d3ae2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3aa8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3b0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3c10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3c38
mov eax, 0
jmp 0x2fc4d3c86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3c61
mov eax, 0
jmp 0x2fc4d3c86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3c81
mov eax, 0
jmp 0x2fc4d3c86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3c8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d3d0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3d01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3d01
mov rax, qword [rbp - 8]
jmp 0x2fc4d3d1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3cd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x112e4
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x10], esi

Function at 0x115e8
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
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
xor sil, sil
mov r12, r8
mov rbx, rdx
mov rdi, rcx
cmp byte [0x0001f8e0], sil
je 0x11710
test rbp, rbp
je 0x11710
cmp dword [rdx + 0x10], 0x1c
jb 0x11710
lea rcx, [0x0001f7c0]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov r8, qword [0x0001f7d8]
mov r9, qword [rbx + 0x30]
mov ecx, dword [r8]
mov r11b, al
xor edx, edx
mov rax, r9
div rcx
mov rcx, qword [r8 + rdx*8 + 8]
jmp 0x11667
cmp qword [rcx], r9
je 0x1166c
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1165e
mov ebx, 1
test rcx, rcx
je 0x116d0
mov eax, dword [rbp + 0x10]
sub eax, ebx
je 0x116c3
sub eax, ebx
je 0x116b5
sub eax, ebx
je 0x116ac
sub eax, ebx
je 0x116a3
sub eax, ebx
je 0x1169a
cmp eax, ebx
jne 0x116d0
test byte [rcx + 0x190], 0x20
jmp 0x116bc
test byte [rcx + 0x190], 0x10
jmp 0x116bc
test byte [rcx + 0x190], 8
jmp 0x116bc
test byte [rcx + 0x190], 4
jmp 0x116bc
test byte [rcx + 0x190], 2
je 0x116d0
mov sil, bl
jmp 0x116d0
test byte [rcx + 0x190], bl
movzx esi, sil
cmovne esi, ebx
lea rcx, [0x0001f7c0]
mov dl, r11b
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
test sil, sil
je 0x116fd
and qword [rdi + 0x38], 0
and dword [rdi + 0x30], 0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x1172c
add byte [rdi + 0x43], bl
add qword [rdi + 0xb8], 0x48
mov rdx, rdi
mov rcx, r12
jmp 0x11726
mov ebx, 1
mov rdx, rcx
add byte [rcx + 0x43], bl
add qword [rcx + 0xb8], 0x48
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x11750
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 0x11973
sub edx, 0xe
je 0x117d8
sub edx, 1
je 0x11821
cmp edx, 3
jne 0x118b6
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x20]
sub rcx, 1
je 0x117c8
cmp rcx, 1
je 0x117b8
inc byte [rdi + 0x43]
lea rax, [rbx + 0x48]
mov rcx, r8
mov qword [rdi + 0xb8], rax
jmp 0x11944
mov rdx, rbx
mov rcx, rdi
call fcn.00012c88
jmp 0x1197e
mov rdx, rbx
mov rcx, rdi
call fcn.000121e0
jmp 0x1197e
mov r8, rbx
mov rdx, rdi
call sub.TDI.SYS_TdiMapUserRequest
test eax, eax
jns 0x11821
cmp dword [rbx + 0x18], 0x210203
jne 0x118b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x118b6
lea rcx, [0x00011590]
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 0x1197e
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x20]
cmp rcx, 2
jne 0x1194f
movzx ecx, byte [rbx + 1]
sub ecx, 1
je 0x118f6
sub ecx, 1
je 0x118ce
sub ecx, 1
je 0x118bb
sub ecx, 1
je 0x118b6
sub ecx, 2
je 0x118a3
sub ecx, 1
je 0x11890
sub ecx, 1
je 0x1187d
cmp ecx, 0x127ffc
jne 0x118b6
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.000115e8
jmp 0x1197e
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00014ad8
jmp 0x1197e
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.000159f4
jmp 0x1197e
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00013af8
jmp 0x1197e
inc byte [rdi + 0x43]
jmp 0x11900
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00012ff8
jmp 0x1197e
cmp byte [rdi + 0x43], 1
je 0x118fc
mov rdx, qword [rdi + 0xb8]
mov r8d, 0x38
lea rbx, [rdx - 0x48]
mov rcx, rbx
call fcn.0001bb60
lea rcx, [0x00013540]
jmp 0x1192a
cmp byte [rdi + 0x43], 1
jne 0x1190a
mov byte [rdi + 0x43], 2
add qword [rdi + 0xb8], 0x48
jmp 0x11941
mov rdx, qword [rdi + 0xb8]
mov r8d, 0x38
lea rbx, [rdx - 0x48]
mov rcx, rbx
call fcn.0001bb60
lea rcx, [0x000133ec]
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 0x1197e
cmp rcx, 1
jne 0x118b6
cmp byte [rbx + 1], 0xb
jne 0x118b6
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.00012360
jmp 0x1197e
mov rdx, rbx
mov rcx, rdi
call fcn.000114a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret