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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140222820]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x410
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
cmp dword [r8 + 4], 0
je 0x14000e267
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9, rdi
lea r8, str.__s___s
lea rcx, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x410
call fcn.1400040e8
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e397
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x20f01ff
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor eax, eax
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
lea ebx, [rax + 0x70]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r8, [rbp]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x628
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test eax, eax
je 0x14000e36e
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test bl, bl
je 0x14000e397
mov al, 1
jmp 0x14000e399
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14001af50
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140010c54
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010c87
xor r8d, r8d
mov cl, r8b
movabs rax, 0x51533f1509c71599
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010c60
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x140010c8c
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x25], 0
mov rdx, rcx
je 0x140010cbf
xor r8d, r8d
mov cl, r8b
movabs rax, 0x61a7ddf587214d1b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0x25
jb 0x140010c98
mov byte [rdx + 0x25], 0
mov rax, rdx
ret

Function at 0x140010cc4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
mov rdx, rcx
je 0x140010cf7
xor r8d, r8d
mov cl, r8b
movabs rax, 0x33936bbb8fbf972b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 6
jb 0x140010cd0
mov byte [rdx + 6], 0
mov rax, rdx
ret

Function at 0x140010cfc
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xb], 0
mov rdx, rcx
je 0x140010d2f
xor r8d, r8d
mov cl, r8b
movabs rax, 0xb5e3ff6f79e787bf
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0xb
jb 0x140010d08
mov byte [rdx + 0xb], 0
mov rax, rdx
ret

Function at 0x140010d34
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010d67
xor r8d, r8d
mov cl, r8b
movabs rax, 0x717f5d0f8b9d9be7
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010d40
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x2fc4d3130
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.2fc4d4210
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3b32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3bca
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 0x2fc4d3bae
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 0x2fc4d3ba2
cmp qword [rbp - 0x10], 0
je 0x2fc4d3ba2
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 0x2fc4d3b68
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3bcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3cd0
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 0x2fc4d3cf8
mov eax, 0
jmp 0x2fc4d3d46
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 0x2fc4d3d21
mov eax, 0
jmp 0x2fc4d3d46
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 0x2fc4d3d41
mov eax, 0
jmp 0x2fc4d3d46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3d4c
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 0x2fc4d3dca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3dc1
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 0x2fc4d3dc1
mov rax, qword [rbp - 8]
jmp 0x2fc4d3ddf
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 0x2fc4d3d94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007ce4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov rax, qword [0x14001ce40]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov r9, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140011f28
mov r11d, edi
lea rax, [rsp + 0x50]
cmp word [rax], r15w
je 0x140007d4c
add rax, 2
sub r11, 1
jne 0x140007d3c
test r11, r11
je 0x140007d59
mov rax, rdi
sub rax, r11
jmp 0x140007d5c
mov rax, r15
test r11, r11
je 0x140007d7c
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x50]
lea rcx, [rcx + rax*2]
lea r9, [0x140016370]
call fcn.140011f28
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140007dce
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140007edb
mov rcx, qword [rbp + 0x188]
mov edx, 0xc9
call fcn.14000680c
mov ebx, eax
jmp 0x140007ede
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x34]
mov rcx, rsi
call fcn.140007b6c
mov ebx, eax
test eax, eax
jns 0x140007e04
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xcf
call fcn.1400067d0
jmp 0x140007ede
mov rax, rdi
lea rcx, [rsp + 0x50]
cmp word [rcx], r15w
je 0x140007e1c
add rcx, 2
sub rax, 1
jne 0x140007e0c
test rax, rax
je 0x140007e29
mov rcx, rdi
sub rcx, rax
jmp 0x140007e2c
mov rcx, r15
test rax, rax
je 0x140007e4c
sub rdi, rcx
lea rax, [rsp + 0x50]
lea rcx, [rax + rcx*2]
lea r9, [0x140016378]
mov rdx, rdi
call fcn.140011f28
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140007e86
mov rcx, qword [rbp + 0x188]
mov edx, 0xd5
call fcn.14000680c
mov ebx, eax
jmp 0x140007eae
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140007b6c
mov ebx, eax
test eax, eax
jns 0x140007ebe
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd7
call fcn.1400067d0
nop
test rdi, rdi
je 0x140007ebc
mov rcx, rdi
call fcn.1400077f8
nop
jmp 0x140007ede
mov rcx, rdi
call fcn.1400077f8
nop
movsxd rcx, dword [rsp + 0x30]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x34]
or rax, rcx
mov qword [r14], rax
mov ebx, r15d
test rsi, rsi
je 0x140007eec
mov rcx, rsi
call fcn.1400077f8
nop
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140012390
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000eaec
Capabilities:
Set registry value

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, 0x70
mov rdi, rdx
mov r14, rcx
mov ebx, dword [r8]
mov ebp, 4
mov ecx, ebp
call fcn.1400126ac
mov rsi, rax
mov qword [rsp + 0x30], rax
lea rdx, [rax + 4]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov dword [rax], ebx
cmp qword [rdi + 0x18], 8
jb 0x14000eb3c
mov rdi, qword [rdi]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
mov r9d, ebp
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000eb86
mov rdx, rbp
mov rcx, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
jmp fcn.1400123b8
lea r9, str.RegSetValueEx__key___name.c_str____0__regkey_tag_T_::flags____0x00000000FFFFFFFF__buffer_0___static_cast_uint32_t___buffer.size______
lea r8, [0x14001c0c8]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400050e4
lea rdx, [0x14001a300]
lea rcx, [rsp + 0x48]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3

Function at 0x1400100d8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x14001016c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov ecx, 1
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoGetMalloc]
nop dword [rax + rax]
test eax, eax
js 0x140010124
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x28]
call qword [0x140015a30]
jmp 0x140010151
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_DebugBreak]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x490
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140010168
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140015a30]
and qword [rbx], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140011948
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp qword [r8 + 0x18], 8
mov ebp, r9d
mov rsi, r8
mov rdi, rdx
mov r15, rcx
jb 0x140011974
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x14001197e
mov rdx, qword [rdx]
mov r12, qword [rsp + 0x90]
lea rax, [rsp + 0x70]
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140011a4f
mov r14, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [r14]
mov rax, qword [r14 + 8]
sub rax, rdx
cmp rcx, rax
jae 0x1400119d7
lea rax, [rdx + rcx]
mov qword [r14 + 8], rax
jmp 0x140011a0c
jbe 0x140011a0c
mov rax, qword [r14 + 0x10]
sub rax, rdx
cmp rcx, rax
jbe 0x1400119f2
mov rdx, rcx
mov rcx, r14
call fcn.140011a70
jmp 0x140011a0c
lea rbx, [rdx + rcx]
mov rcx, qword [r14 + 8]
mov r8, rbx
xor edx, edx
sub r8, qword [r14 + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [r14 + 8], rbx
cmp qword [rsi + 0x18], 8
mov rax, qword [r14]
jb 0x140011a19
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
jb 0x140011a23
mov rdi, qword [rdi]
lea rcx, [rsp + 0x70]
mov r9d, ebp
mov qword [rsp + 0x30], rcx
mov r8, rsi
mov rcx, qword [r15]
mov rdx, rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140011ce8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14001ce40]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
and qword [rsp + 0x48], 0
mov r14d, 0x20a
mov ecx, r14d
call fcn.1400126ac
mov qword [rsp + 0x38], rax
lea rbx, [rax + 0x20a]
mov qword [rsp + 0x48], rbx
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rsp + 0x40], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov ecx, r14d
call fcn.1400126ac
mov qword [rsp + 0x20], rax
lea rbx, [rax + 0x20a]
mov qword [rsp + 0x30], rbx
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rsp + 0x28], rbx
mov rdx, qword [rsp + 0x20]
sub rbx, rdx
sar rbx, 1
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
je 0x140011ee9
lea edx, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.140002710
mov rdx, qword [rsp + 0x20]
lea rcx, [rbp - 0x18]
call fcn.14000269c
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x58]
call fcn.14000d614
nop
lea rcx, [rbp - 0x18]
call fcn.140003f40
nop
lea rcx, [rsp + 0x20]
call fcn.140002978
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.14000d614
nop
mov rdx, qword [rsi]
cmp qword [rdx + 0x18], 8
jb 0x140011e10
mov rdx, qword [rdx]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
mov r9, qword [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140011eb0
lea rcx, [rbp - 0x38]
call fcn.140003f40
nop
lea rcx, [rbp - 0x58]
call fcn.140003f40
lea edx, [rbx + 1]
lea rcx, [rsp + 0x38]
call fcn.140002710
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x58]
call fcn.14000269c
nop
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.14000d614
nop
lea rcx, [rbp - 0x58]
call fcn.140003f40
nop
lea rcx, [rsp + 0x38]
call fcn.140002978
mov rax, rdi
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140012390
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
mov edx, eax
lea r9, str.GetTempFileName_failed
lea r8, [0x14001c0c8]
lea rcx, [rsp + 0x58]
call fcn.1400050e4
lea rdx, [0x14001a300]
lea rcx, [rsp + 0x58]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea r9, str.GetTempDirectory_failed
lea r8, [0x14001c0c8]
lea rcx, [rbp - 0x80]
call fcn.1400050e4
lea rdx, [0x14001a300]
lea rcx, [rbp - 0x80]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x140012360
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]

Function at 0x140012af4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14001d4e0], eax
call fcn.140012840
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14001d4e0], 0
jne case.default.0x140012b4a
mov ecx, 1
call fcn.140012840
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
or byte [rdi - 0x186ac4b4], bl
invalid
Function at 0x2fc4d0330
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.2fc4d1410
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0d32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0dca
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0dae
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 0x2fc4d0da2
cmp qword [rbp - 0x10], 0
je 0x2fc4d0da2
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 0x2fc4d0d68
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0dcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d0ed0
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 0x2fc4d0ef8
mov eax, 0
jmp 0x2fc4d0f46
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 0x2fc4d0f21
mov eax, 0
jmp 0x2fc4d0f46
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 0x2fc4d0f41
mov eax, 0
jmp 0x2fc4d0f46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6890
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.2fc4d7970
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7292
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d732a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d730e
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 0x2fc4d7302
cmp qword [rbp - 0x10], 0
je 0x2fc4d7302
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 0x2fc4d72c8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d732b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7430
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 0x2fc4d7458
mov eax, 0
jmp 0x2fc4d74a6
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 0x2fc4d7481
mov eax, 0
jmp 0x2fc4d74a6
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 0x2fc4d74a1
mov eax, 0
jmp 0x2fc4d74a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d74ac
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 0x2fc4d752a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7521
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 0x2fc4d7521
mov rax, qword [rbp - 8]
jmp 0x2fc4d753f
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 0x2fc4d74f4
mov eax, 0
add rsp, 0x20
pop rbp
ret