joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140216e4b
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x308
mov r12, r9
mov rbp, r8
mov rbx, rdx
mov r13, rcx
mov r14, qword [rsp + 0x3a0]
mov r15, qword [rsp + 0x398]
mov rdi, qword [rsp + 0x390]
mov esi, dword [rsp + 0x380]
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x88], rdx
call fcn.1400b4cb0
test al, al
je 0x140216f0e
call fcn.14014f9f6
lea rcx, [rax + 8]
call fcn.1402255ca
test al, al
je 0x140216f0e
mov rax, qword [rsp + 0x388]
mov ecx, dword [rsp + 0x378]
mov r9, qword [rsp + 0x370]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov rdx, rbp
mov r8, r12
call r13
mov esi, 1
test eax, eax
jne 0x140216f55
call fcn.14014f9f6
lea rcx, [rax + 8]
call fcn.140224334
xor esi, esi
test al, al
je 0x140216f55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.1401e6b08
test al, al
je 0x140216f4b
call fcn.1401e6a17
test rax, rax
jne 0x140216f7b
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x308
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rax
mov qword [rsp + 0x80], 0
lea rdi, [rsp + 0xf0]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400cf750
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140216fc1
mov qword [rsp + 0x80], rdi
movaps xmm0, xmmword [0x140257270]
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.14022433c
lea rsi, [0x140279bc0]
lea rax, [rsp + 0x98]
mov ecx, 0xb
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
movabs rcx, 0xaaaaaaaa00000018
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
mov qword [rdx + 8], r14
mov ecx, dword [r15 + 0x3c]
lea rdi, [rsp + 0x5c]
mov dword [rdi], ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x380]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x390]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x88]
lea r8, [rsp + 0x90]
lea r9, [rsp + 0x80]
mov rcx, rbx
call fcn.1402255ce
mov edi, eax
test eax, eax
jne 0x140217080
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [rsp + 0xa0], 0
sete sil
test edi, edi
jne 0x140216f4b
jmp 0x140216f55
Function at 0x140218128
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1402181d6
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r15, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1402181d6
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x1402181d8
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140219c4a
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140219ce2
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14021c768
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x140257270]
lea rbx, [rsp + 0x160]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.140206980
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, rbx
call fcn.14021bcda
test al, al
je 0x14021c82f
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14021c8bb
mov rcx, rdi
call fcn.140206980
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, rdi
mov r9, r15
call fcn.14021bcda
test al, al
je 0x14021c900
cmp dword [r15], 0x4550
jne 0x14021c93f
mov sil, 1
test r14, r14
je 0x14021c89a
mov qword [r14], rdi
jmp 0x14021c89a
mov ecx, 1
call fcn.1400ac390
test al, al
je 0x14021c898
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140122230
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1400a7acb
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14021c885
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1400a7acb
mov rcx, rdi
call fcn.140001c60
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400ac390
test al, al
je 0x14021c898
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140122230
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14021c86f
mov ecx, 1
call fcn.1400ac390
test al, al
je 0x14021c898
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140122230
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14021c869
mov ecx, 1
call fcn.1400ac390
test al, al
je 0x14021c898
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140122230
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x14021c86f

Function at 0x140229bb0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140229be7
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x140229bc1
ret

Function at 0x140229c40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140229c78
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x140229c51
ret
Function at 0x140001990
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, rdx
lea rdx, [0x14002212c]
mov rbx, rcx
call fcn.1400043a0
mov r12, rax
test rax, rax
je 0x140001ac0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx + 0x1000]
mov rcx, rax
call fcn.1400189f0
test eax, eax
js 0x140001aa0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001ad5
cmp byte [r13 + 0x10], 1
je 0x140001a80
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a18
jmp 0x140001a61
add rdi, rsi
sub rbx, rsi
je 0x140001a61
cmp rbx, 0x2000
mov rsi, rbp
mov r9, r12
mov rcx, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001a10
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002b90
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.140001590
test eax, eax
je 0x140001a61
jmp 0x140001a56
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
lea rcx, str.fseek
call fcn.140002b90
jmp 0x140001a61
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002a30
jmp 0x140001a69
mov r9d, ebx
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002b90
jmp 0x140001a61
Function at 0x140001b00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x11], 0x6e
mov r12, rcx
mov r15, rdx
mov r13, r8
je 0x140001c28
lea rdx, [0x140022254]
mov rcx, r8
call fcn.1400043a0
mov r14, rax
test rax, rax
je 0x140001d19
lea rdx, [0x14002212c]
mov rcx, r12
call fcn.1400043a0
mov r13, rax
test rax, rax
je 0x140001ca8
mov edx, dword [r15 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [r12 + 0x1000]
call fcn.1400189f0
test eax, eax
js 0x140001cf8
cmp byte [r15 + 0x10], 1
je 0x140001c60
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001d3a
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001cc0
mov edi, 0x2000
jmp 0x140001bd6
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001cd0
sub rbx, rsi
je 0x140001cc0
cmp rbx, 0x2000
mov rsi, rdi
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001bb0
lea r8, [r15 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.140002b90
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001c73
call fcn.140001990
mov r12, rax
test rax, rax
je 0x140001c85
mov rcx, rax
mov rdx, r13
call fcn.140004440
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
js 0x140001c90
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.140001590
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001c4e
mov ebx, 0xffffffff
nop word [rax + rax]
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002a30
jmp 0x140001c4e
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002a30
jmp 0x140001c7b
xor ebx, ebx
jmp 0x140001c19
lea r8, [r15 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.140002b90
jmp 0x140001c19
lea r8, [r15 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.140002b90
jmp 0x140001c73
lea r8, [r15 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140002b90
jmp 0x140001c4e
lea r8, [r15 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
or ebx, 0xffffffff
lea rcx, str.malloc
call fcn.140002b90
jmp 0x140001c73
Function at 0x140007f30
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e430
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x140008030
mov dword [rsp + 0x20], 0x5c
lea rsi, [rsp + 0x30]
mov r9, rdi
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rsi
mov ebp, 0x1000
lea r12, [0x140023d35]
lea r13, [rsp + 0x1030]
call fcn.140007f10
mov edx, 0x5c
mov rcx, rbx
movsxd rdi, eax
call sub.msvcrt.dll_strchr
sub rbp, rdi
add rdi, rsi
mov r15, rax
test rax, rax
jne 0x140007fe6
jmp 0x140008040
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.msvcrt.dll_strchr
mov r15, rax
test rax, rax
je 0x140008040
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov rcx, rdi
mov r8, r12
sub r9d, ebx
mov rdx, rbp
call fcn.140007f10
mov rcx, rsi
call fcn.140004350
test eax, eax
jne 0x140007fd0
mov rdx, r13
mov rcx, rsi
mov r8d, 0x1000
call fcn.140008ee0
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007fd0
mov eax, 0xffffffff
jmp 0x140008042
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140008060
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000e430
sub rsp, rax
mov r13, rdx
lea rdx, [0x140023d3a]
call fcn.1400043a0
mov r12, rax
test rax, rax
je 0x14000815c
mov rcx, r13
lea rdx, [0x140023d3d]
call fcn.1400043a0
mov r13, rax
test rax, rax
je 0x140008164
lea rbx, [rsp + 0x20]
jmp 0x1400080f7
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
je 0x140008140
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008130
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140008130
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
je 0x1400080b8
xor r14d, r14d
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008106
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008103
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008106
mov r14d, 0xffffffff
jmp 0x140008116
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_fclose
jmp 0x140008116
Function at 0x140008180
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140008270
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.1400189f0
test eax, eax
js 0x140008270
mov rcx, rdi
call fcn.140018aa0
movsxd r8, eax
cmp r8, rbx
jb 0x140008270
mov r13d, 1
sub r13, rbx
mov qword [rsp + 0x28], r13
cmp r8, 0x2000
mov r14d, 0x2000
cmovae r14, r8
lea rbp, [r14 - 0x2000]
sub r8, rbp
mov r15, r8
cmp rbx, r8
ja 0x140008270
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400189f0
test eax, eax
js 0x140008270
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140008270
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x14000825a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008290
mov r15, r13
test r15, r15
jne 0x140008240
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x1400081e9
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [r14 + r15 - 0x2001]
jmp 0x140008273
Function at 0x1400082a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2298
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e430
sub rsp, rax
mov r15, qword [sym.imp.msvcrt.dll__snwprintf]
lea r8, str._s
mov edx, 0x1000
lea r14, [rsp + 0x290]
mov r13, rcx
mov r9, rcx
mov rcx, r14
call r15
cmp eax, 0xfff
jg 0x140008408
lea ebx, [rax - 1]
mov eax, 0x1000
lea rsi, [rsp + 0x40]
mov rcx, r14
sub eax, ebx
mov rdx, rsi
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140008408
movsxd rax, ebx
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x6c]
lea rdi, [r14 + rax*2]
movsxd rax, dword [rsp + 0x2c]
mov qword [rsp + 0x30], rdi
lea rdi, [0x140023d5a]
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400083a0
lea rdx, [0x140023d5e]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400083a0
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r9, rbx
lea r8, [0x140023d64]
call r15
cmp eax, dword [rsp + 0x2c]
jge 0x1400083a0
mov eax, dword [rsp + 0x40]
mov rcx, r14
test al, 0x10
je 0x1400083e0
test ah, 4
je 0x140008399
cmp dword [rsp + 0x64], 0xa000000c
je 0x140008400
call fcn.1400082a0
nop
mov rdx, rsi
mov rcx, r12
call rbp
test eax, eax
jne 0x140008340
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r12
call rbp
test eax, eax
jne 0x140008340
jmp 0x1400083ac
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400083a0
mov eax, 0xffffffff
jmp 0x1400083c9

Function at 0x140008580
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x4028
push r12
call fcn.14000e430
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008ee0
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008600
lea r13, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, r12
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008600
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140008df0
add rsp, 0x4028
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x4028
pop r12
pop r13
ret
Function at 0x140008ad0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000e430
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
add rcx, 0x10
lea rdi, [rsp + 0xa0]
mov rdx, r12
call fcn.140008ee0
mov edx, 1
lea rcx, [0x140008410]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rbp, qword [fcn.1400206d0]
xor ecx, ecx
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140008c78
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Failed_to_create_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002e20
mov eax, 0xffffffff
jmp 0x140008c67
Function at 0x14000d760
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400206d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400206d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000d7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140033394]
mov r12, rcx
test ebx, ebx
jle 0x14000d900
mov rax, qword [0x140033398]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000d81c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000d8a3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000d800
mov rcx, r12
call fcn.14000e170
mov rsi, rax
test rax, rax
je 0x14000d922
mov rax, qword [0x140033398]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000e2a0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140033398]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d89c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d8b0
add dword [0x140033394], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140033398]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d89c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d760
nop dword [rax]
xor ebx, ebx
jmp 0x14000d827
mov rax, qword [0x140033398]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d760
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000d760
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000dde0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140033400]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400333e0]
test rbx, rbx
je 0x14000de34
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000de2b
test r12, r12
je 0x14000de2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000de10
lea rcx, [0x140033400]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]