joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002f10
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180021a94], 0xa
jl 0x180002f42
mov eax, dword [0x180021a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002f42
nop word cs:[rax + rax]
jmp 0x180002f40
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180021a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180021a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180021a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180021aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180003018
mov rsi, r10
test r8b, r8b
je 0x180003030
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002fb0
test r9b, r9b
je 0x180003040
sub rsi, rcx
je 0x180003014
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180003010
test ebp, ebp
jne 0x180003010
add rbx, 1
cmp rsi, rbx
jne 0x180002fd0
jmp 0x180003014
test ebp, ebp
jne 0x180002f9c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180003030
jmp 0x180003040
Function at 0x2fc4c4d70
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.2fc4c5e30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5772
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c580a
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c57ee
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 0x2fc4c57e2
cmp qword [rbp - 0x10], 0
je 0x2fc4c57e2
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 0x2fc4c57a8
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c580b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5910
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 0x2fc4c5938
mov eax, 0
jmp 0x2fc4c5986
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 0x2fc4c5961
mov eax, 0
jmp 0x2fc4c5986
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 0x2fc4c5981
mov eax, 0
jmp 0x2fc4c5986
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c598c
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 0x2fc4c5a0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5a01
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 0x2fc4c5a01
mov rax, qword [rbp - 8]
jmp 0x2fc4c5a1f
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 0x2fc4c59d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e9c40
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.2fc4ead00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ea642
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc50f108]
test eax, eax
je 0x2fc4ea6da
lea rax, [0x2fc50f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc50f110]
mov qword [rbp - 8], rax
jmp 0x2fc4ea6be
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 0x2fc4ea6b2
cmp qword [rbp - 0x10], 0
je 0x2fc4ea6b2
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 0x2fc4ea678
lea rax, [0x2fc50f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ea6db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ea7e0
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 0x2fc4ea808
mov eax, 0
jmp 0x2fc4ea856
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 0x2fc4ea831
mov eax, 0
jmp 0x2fc4ea856
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 0x2fc4ea851
mov eax, 0
jmp 0x2fc4ea856
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ea85c
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 0x2fc4ea8da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ea8d1
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 0x2fc4ea8d1
mov rax, qword [rbp - 8]
jmp 0x2fc4ea8ef
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 0x2fc4ea8a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001dd0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, r9d
mov qword [rsp + 0x20], 0
lea r9, [0x140001d40]
xor r8d, r8d
mov edx, 0x65
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov edx, edi
mov rbx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001e6d
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001e40
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001ea0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140002874
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400028be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400028be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028c0
xor al, al
add rsp, 0x28
ret
Function at 0x180002660
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002692
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002692
nop word cs:[rax + rax]
nop
jmp 0x180002690
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
mov r8, qword [r11 + 0x10]
add r11, 0x10
cmp r8, r11
je 0x1800026f2
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
cmp dword [0x180020a7c], 0xa
jl 0x1800026f9
mov edx, dword [0x180020a80]
lea ebx, [rdx - 1]
imul ebx, edx
and ebx, 1
je 0x1800026f9
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x1800026f0
xor eax, eax
jmp 0x180002786
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov rdx, r10
nop word cs:[rax + rax]
nop
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x180002710
test r9b, r9b
je 0x180002780
sub rdx, rcx
je 0x180002782
mov r14, qword [r8 + 0x60]
xor edi, edi
nop word [rax + rax]
movzx ebx, word [r14 + rdi*2]
movsx r12d, byte [rcx + rdi]
lea r15d, [rbx - 0x41]
lea ebp, [rbx + 0x20]
cmp r15w, 0x1a
cmovae ebp, ebx
lea r15d, [r12 - 0x41]
lea esi, [r12 + 0x20]
cmp r15b, 0x1a
cmovae esi, r12d
cmp ebp, esi
jne 0x18000276f
test bx, bx
je 0x180002782
add rdi, 1
cmp rdx, rdi
jne 0x180002730
jmp 0x180002782
mov r8, qword [r8]
cmp r8, r11
jne 0x180002702
jmp 0x180002786
jmp 0x180002780
mov rax, qword [r8 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1800024e0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a8c], 0xa
jl 0x180002512
mov eax, dword [0x180020a90]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002512
nop word cs:[rax + rax]
jmp 0x180002510
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
lea r11, [rcx - 1]
xor eax, eax
mov r14, r10
mov r14, qword [r14]
cmp r14, r10
je 0x18000260b
mov rsi, r11
test r8b, r8b
je 0x1800025f0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002580
sub rsi, rcx
je 0x180002602
test r9b, r9b
je 0x180002600
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop word [rax + rax]
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800025e0
test ebp, ebp
jne 0x1800025e0
add rbx, 1
cmp rsi, rbx
jne 0x1800025a0
jmp 0x180002607
test ebp, ebp
jne 0x18000256c
jmp 0x180002607
jmp 0x1800025f0
jmp 0x180002600
test r9b, r9b
je 0x180002620
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002620
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140013130
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014480
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144a0
xor al, al
jmp 0x140014521
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144b3
xor al, al
jmp 0x140014521
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400144dd
xor al, al
jmp 0x140014521
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144f1
xor al, al
jmp 0x140014521
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014503
xor al, al
jmp 0x140014521
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001451f
xor al, al
jmp 0x140014521
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113d9
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140011800
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x1400230a3]
call fcn.140011393
lea rdx, [0x14001ad94]
mov rcx, qword [rbp + 0x440]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 0x288], rax
cmp qword [rbp + 0x288], 0
jne 0x140011880
lea rcx, [0x14001ad98]
call qword [sym.imp.ucrtbased.dll_perror]
jmp 0x140011977
xor edx, edx
mov ecx, 2
call fcn.1400111a9
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400118b6
lea rcx, [0x14001adb8]
call qword [sym.imp.ucrtbased.dll_perror]
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.ucrtbased.dll_fclose]
jmp 0x140011977
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011235
test eax, eax
jne 0x1400118f7
lea rcx, [0x14001ade8]
call qword [sym.imp.ucrtbased.dll_perror]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.ucrtbased.dll_fclose]
jmp 0x140011977
lea rdx, str._________________________________________________n
mov rcx, qword [rbp + 0x288]
call fcn.140011352
mov r8d, dword [rbp + 0x38]
lea rdx, [0x14001ae60]
mov rcx, qword [rbp + 0x288]
call fcn.140011352
mov r8d, dword [rbp + 0x50]
lea rdx, [0x14001ae78]
mov rcx, qword [rbp + 0x288]
call fcn.140011352
lea r8, [rbp + 0x5c]
lea rdx, [0x14001ae98]
mov rcx, qword [rbp + 0x288]
call fcn.140011352
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011348
test eax, eax
jne 0x1400118f7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad00]
call fcn.140011325
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x140006ea0
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
lea rdx, [0x140007100]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x200
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
lea r8, [rsp + 0x70]
mov edx, 7
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], 0
mov eax, dword [rsp + 0xf8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0x50], 0
jl 0x14000704a
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140007022
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov eax, dword [rsp + 0x50]
jmp 0x14000705d
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x100]
mov qword [rax], 0
mov eax, dword [rsp + 0x50]
jmp 0x14000705d
mov rax, qword [rsp + 0x100]
mov qword [rax], 0
mov eax, dword [rsp + 0x50]
add rsp, 0xe8
ret
Function at 0x140008000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
lea rdx, [0x140008290]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movups xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x8807
lea r8, [rsp + 0x80]
mov edx, 0x38
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14000807a
mov eax, dword [rsp + 0x40]
jmp 0x1400081c8
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x30]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x30], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rax + 8], xmm0
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x30], 0
lea rdx, [0x1400082b0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x48]
add rax, 0x30
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateSynchronizationEvent]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x28], 0
jne 0x140008124
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [rsp + 0x40], 0xc0000001
mov eax, dword [rsp + 0x40]
jmp 0x1400081c8
mov edx, 0x16
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov ecx, 0x16
rep stosb byte [rdi], al
mov eax, 1
add rax, 0xa
shl rax, 1
lea rcx, [0x140008300]
mov rdi, qword [rsp + 0x58]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov qword [section..data], 0
mov rax, qword [rsp + 0x58]
mov qword [section..data], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rsp + 0x70]
movdqu xmmword [rax + 0x18], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400081c6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x40]
jmp 0x1400081c8
xor eax, eax
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1d65f23e0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1d65f2de2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1d6631108]
test eax, eax
je 0x1d65f2e7a
lea rax, [0x1d66310e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1d6631110]
mov qword [rbp - 8], rax
jmp 0x1d65f2e5e
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 0x1d65f2e52
cmp qword [rbp - 0x10], 0
je 0x1d65f2e52
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 0x1d65f2e18
lea rax, [0x1d66310e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1d65f2e7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1d65f2f80
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 0x1d65f2fa8
mov eax, 0
jmp 0x1d65f2ff6
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 0x1d65f2fd1
mov eax, 0
jmp 0x1d65f2ff6
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 0x1d65f2ff1
mov eax, 0
jmp 0x1d65f2ff6
mov eax, 1
add rsp, 0x20
pop rbp
ret