joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053a00
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
vmovaps xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
lea rax, vtable.Stockfish::Thread.0
mov qword [rcx], rax
add rcx, 0x40
mov dword [rsi + 0x40], 0
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsi + 0x48], ymm0
vmovups ymmword [rsi + 0x68], ymm0
mov qword [rsi + 0x88], 0
mov qword [rbp - 0x48], rcx
mov edx, 2
vzeroupper
call fcn.14006256c
lea rcx, [rsi + 0x90]
mov qword [rbp - 0x40], rcx
call fcn.1400621b0
mov qword [rsi + 0xd8], rdi
mov word [rsi + 0xe0], 0x100
mov ecx, 0x10
call fcn.140060b80
mov rdi, rax
mov qword [rax], rsi
lea rax, [0x140053dd0]
mov qword [rdi + 8], rax
lea rax, [rsi + 0xf0]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140056150]
xor ecx, ecx
xor edx, edx
mov r9, rdi
call fcn.140067c58
mov qword [rsi + 0xe8], rax
test rax, rax
je 0x140053c44
vxorps xmm6, xmm6, xmm6
vmovups xmmword [rsi + 0xf8], xmm6
mov qword [rsi + 0x108], 0
mov ecx, 0xc00027
call fcn.140060b80
lea rcx, [rsi + 0xf8]
mov qword [rbp - 0x20], rcx
mov rcx, rax
add rcx, 0x27
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rsi + 0xf8], rcx
lea rdi, [rcx + 0xc00000]
mov qword [rsi + 0x108], rdi
mov r8d, 0xc00000
xor edx, edx
call fcn.14008abb0
mov qword [rsi + 0x100], rdi
vmovaps xmmword [rsi + 0x110], xmm6
mov qword [rsi + 0x120], 0
mov ecx, 0x50027
call fcn.140060b80
lea r14, [rsi + 0x110]
mov rcx, rax
add rcx, 0x27
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rsi + 0x110], rcx
lea rdi, [rcx + 0x50000]
mov qword [rsi + 0x120], rdi
mov r8d, 0x50000
xor edx, edx
call fcn.14008abb0
mov qword [rsi + 0x118], rdi
lea r15, [rsi + 0x1680]
vxorps xmm0, xmm0, xmm0
vmovaps xmmword [rsi + 0x1680], xmm0
mov qword [rsi + 0x1690], 0
vmovups xmmword [rsi + 0x138], xmm0
mov qword [rsi + 0x148], 0
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.140062580
test eax, eax
jne 0x140053c5c
cmp dword [rsi + 0x8c], 0x7fffffff
mov rbx, qword [rbp - 0x40]
jne 0x140053c1b
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x30], r14
mov dword [rsi + 0x8c], 0x7ffffffe
mov ecx, 6
call fcn.140061824
mov rcx, rbx
mov rdx, rdi
call fcn.1400621c0
cmp byte [rsi + 0xe1], 0
jne 0x140053c10
mov rcx, rdi
call fcn.140062588
mov rax, rsi
vmovaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp - 0x20], rdi
mov rax, qword [rbp - 0x38]
mov dword [rax], 0
mov ecx, 6
call fcn.140061824
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x30], r14
mov ecx, 5
call fcn.140061824
int3

Function at 0x140063430
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140067f94
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140067ffb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140067ffb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140067ffb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140067ffb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140067ffb
cmp dword [rcx + 0x84], 0xe
jbe 0x140067ffb
cmp dword [rcx + 0xf8], 0
je 0x140067ffb
mov ecx, ebx
call fcn.140067ee0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140068114
cmp dword [rbp + 0x20], 0
je 0x140068048
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140067f3c
int3

Function at 0x140074070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140074098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140074098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400019a0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r13, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140023129]
call fcn.140004690
mov r12, rax
test rax, rax
je 0x140001ad0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.1400194e0
test eax, eax
js 0x140001ab0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001ae5
cmp byte [r13 + 0x10], 1
je 0x140001a90
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a28
jmp 0x140001a71
add rdi, rsi
sub rbx, rsi
je 0x140001a71
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 0x140001a20
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002f50
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.1400015a0
test eax, eax
je 0x140001a71
jmp 0x140001a66
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.140002f50
jmp 0x140001a71
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002dc0
jmp 0x140001a79
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.140002f50
jmp 0x140001a71
Function at 0x140001bc0
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 dword [rcx + 0x5074], 1
mov r12, rcx
mov r15, rdx
jne 0x140001dc0
cmp byte [rdx + 0x11], 0x6e
je 0x140001cf8
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140008810
mov r14, rax
test rax, rax
je 0x140001dd6
lea rcx, [r12 + 0x70]
lea rdx, [0x140023129]
call fcn.140004690
mov r13, rax
test rax, rax
je 0x140001d58
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.1400194e0
test eax, eax
js 0x140001da0
cmp byte [r15 + 0x10], 1
je 0x140001d18
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001df6
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001d70
mov r15d, 0x2000
jmp 0x140001ca6
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001d80
sub rbx, rsi
je 0x140001d70
cmp rbx, 0x2000
mov rsi, r15
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001c80
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.140002f50
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001d2b
call fcn.140001b10
mov ebx, eax
test eax, eax
js 0x140001d40
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.1400015a0
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001d03
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002dc0
jmp 0x140001d03
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002dc0
jmp 0x140001d33
xor ebx, ebx
jmp 0x140001ce8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.140002f50
jmp 0x140001ce8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.140002f50
jmp 0x140001d2b
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140002dc0
jmp 0x140001d03
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140002f50
jmp 0x140001d03
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.140002f50
jmp 0x140001d2b
Function at 0x140001e20
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140023129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140004690
mov r12, rax
test rax, rax
je 0x140002027
mov rax, qword [0x140029660]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008e70
mov rsi, rax
test rax, rax
jne 0x140001ea0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.1400194e0
test eax, eax
js 0x140001fd0
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ff0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x14002f050], ecx
mov rcx, r12
call fcn.1400194e0
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140002032
mov r9, r12
mov r8d, 1
mov rdx, r14
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001fb0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x140002010
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001e86
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp r8, rax
ja 0x140001f80
jmp 0x140001e86
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002f50
jmp 0x140001e86
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002f50
jmp 0x140001e86
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002f50
jmp 0x140001e86
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.140002dc0
jmp 0x140001e86
mov r13d, 0xffffffff
jmp 0x140001e8e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002f50
jmp 0x140001e86
Function at 0x1400080e0
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.14000eb70
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.140009490
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140008128
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.1400092c0
mov rcx, rax
test rax, rax
je 0x140008117
cmp byte [rax], 0
je 0x140008117
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x1400081d0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140009490
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x1400084e0
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000eb70
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea rbx, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140009490
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000854c
cmp ax, 0x5c
jne 0x1400085a0
lea rdx, [0x1400255ba]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.140019100
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400085b8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x1400255b6]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000854c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbp
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x30]
mov rcx, rbx
mov r8, r12
mov r15, r12
call fcn.140008620
jmp 0x1400085ff
mov rdi, r12
mov ecx, 0x46
mov rsi, rbp
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, rbx
mov r12, r15
call fcn.140008620
mov rdx, rbp
mov rcx, r14
call fcn.1400191d0
test eax, eax
je 0x1400085e0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140008577

Function at 0x140008620
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.14000eb70
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x1400255be]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140008668
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x1400255c2]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008653
xor eax, eax
mov rcx, r13
mov rdx, r12
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rbx], 0x10
je 0x1400086c0
call fcn.140009790
test eax, eax
jne 0x1400086e8
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.1400092c0
mov rcx, r12
call fcn.1400084e0
jmp 0x140008653
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140008653
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x140008653
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140008653
Function at 0x140008940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000eb70
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14002565c]
call fcn.140004690
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140008810
mov r13, rax
test r12, r12
je 0x140008a4a
test rax, rax
je 0x140008a3d
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140008a38
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x1400089e0
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008990
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008a0f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008a01
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008990
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
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
xor r14d, r14d
jmp 0x140008a0f
test r12, r12
je 0x140008a4a
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140008a17
jmp 0x140008a1f
Function at 0x140008ac0
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.14000eb70
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.140009490
mov edx, 1
lea rcx, [0x140007f90]
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.140021250]
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 0x140008c70
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.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002ea0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008e70
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 0x140008f60
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.1400194e0
test eax, eax
js 0x140008f60
mov rcx, rdi
call fcn.140019590
movsxd r8, eax
cmp r8, rbx
jb 0x140008f60
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 0x140008f60
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400194e0
test eax, eax
js 0x140008f60
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140008f60
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x140008f4a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008f80
mov r15, r13
test r15, r15
jne 0x140008f30
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x140008ed9
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 0x140008f63

Function at 0x140009730
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14002f320]
test rax, rax
je 0x14000976f
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002e30
mov eax, 0xffffffff
jmp 0x14000976a
Function at 0x14000dea0
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.140021250
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.140021250
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 0x14000df10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400303b4]
mov r12, rcx
test ebx, ebx
jle 0x14000e040
mov rax, qword [0x1400303b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000df5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000dfe3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000df40
mov rcx, r12
call fcn.14000e8b0
mov rsi, rax
test rax, rax
je 0x14000e062
mov rax, qword [0x1400303b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000e9e0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400303b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e047
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000dfdc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000dff0
add dword [0x1400303b4], 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 [0x1400303b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000dfdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000dea0
nop dword [rax]
xor ebx, ebx
jmp 0x14000df67
mov rax, qword [0x1400303b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000dea0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000dea0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e520
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140030420]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030400]
test rbx, rbx
je 0x14000e574
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 0x14000e56b
test r12, r12
je 0x14000e56b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e550
lea rcx, [0x140030420]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]