joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ea54
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002240]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002230]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000146d
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400203e0]
mov dword [rax], 1
mov rax, qword [0x1400203f0]
mov dword [rax], 1
mov rax, qword [0x140020400]
mov dword [rax], 1
mov rax, qword [0x140020360]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014be
mov eax, 0
jmp 0x14000156b
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 0x1400014ea
mov eax, 0
jmp 0x14000156b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001510
cmp eax, 0x20b
je 0x140001537
jmp 0x140001566
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001523
mov eax, 0
jmp 0x14000156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000156b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001552
mov eax, 0
jmp 0x14000156b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000156b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c90
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [rcx]
mov rbx, rcx
mov r13, rdx
test r12, r12
je 0x140001da0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx + 8]
mov rcx, r12
call fcn.14000f0c0
test eax, eax
js 0x140001db8
mov esi, dword [r13 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001ded
cmp byte [r13 + 0x10], 1
je 0x140001d80
mov rbp, rax
mov r14d, 0x2000
test rsi, rsi
jne 0x140001d08
jmp 0x140001d51
add rbp, rdi
sub rsi, rdi
je 0x140001d51
cmp rsi, 0x2000
mov rdi, r14
mov r9, qword [rbx]
mov rcx, rbp
cmovbe rdi, rsi
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001d00
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400030e0
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001d65
call sub.msvcrt.dll_fclose
mov qword [rbx], 0
mov rax, r12
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, rbx
call fcn.140001860
test eax, eax
jne 0x140001d46
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140001d59
jmp 0x140001d65
call fcn.140001830
test eax, eax
jne 0x140001dd8
mov r12, qword [rbx]
jmp 0x140001cb0
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r12d, r12d
lea rcx, str.fseek
call fcn.1400030e0
jmp 0x140001d65
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002f50
jmp 0x140001d65
mov r9d, esi
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, [0x14001a0ea]
call fcn.1400030e0
jmp 0x140001d51
Function at 0x140001e10
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
mov rbx, rcx
mov r12, rdx
call fcn.140007820
mov r13d, eax
cmp eax, 0xffffffff
je 0x140001f58
lea rsi, [r12 + 0x12]
lea rcx, [rbx + 0x3078]
mov rdx, rsi
call fcn.140007aa0
mov r14, rax
test rax, rax
je 0x140001ffa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001f78
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx + 8]
call fcn.14000f0c0
test eax, eax
js 0x140001fb8
cmp byte [r12 + 0x10], 1
je 0x140001f28
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r15, rax
test rax, rax
je 0x14000201b
mov r12d, dword [r12 + 0xc]
mov edi, 0x2000
test r12, r12
jne 0x140001ed6
jmp 0x140001f70
mov r9, r14
mov r8d, 1
mov rdx, r13
mov rcx, r15
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001f90
sub r12, r13
je 0x140001f70
cmp r12, 0x2000
mov r13, rdi
mov r9, qword [rbx]
mov rcx, r15
cmovbe r13, r12
mov r8d, 1
mov rdx, r13
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001eb0
mov r8, rsi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r13d, 0xffffffff
call fcn.1400030e0
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x140001f3c
xor r9d, r9d
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.140001860
mov r13d, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001f50
call sub.msvcrt.dll_fclose
mov qword [rbx], 0
mov rcx, r14
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
jmp 0x140001f19
mov rcx, rbx
call fcn.140001830
test eax, eax
jne 0x140001fe0
mov rcx, qword [rbx]
jmp 0x140001e62
mov r8, rsi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
mov r13d, 0xffffffff
call fcn.1400030e0
jmp 0x140001f19
mov r8, rsi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov r13d, 0xffffffff
call fcn.1400030e0
jmp 0x140001f3c
mov rdx, rsi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov r13d, 0xffffffff
call fcn.140002f50
jmp 0x140001f3c
mov r8, rsi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
mov r13d, 0xffffffff
call fcn.1400030e0
jmp 0x140001f58
mov r8, rsi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, [0x14001a0ea]
or r13d, 0xffffffff
call fcn.1400030e0
jmp 0x140001f3c
Function at 0x140002040
Capabilities:
Read file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400021e0
mov rax, qword [0x14001fe40]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008030
mov rsi, rax
test rax, rax
je 0x140002207
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call fcn.14000f0c0
test eax, eax
js 0x1400021f4
mov r9, qword [rbx]
lea rcx, [rbx + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002210
mov eax, dword [rbx + 0x28]
mov ecx, dword [rbx + 0x30]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x507c], 0
mov edx, dword [rbx + 0x2c]
bswap eax
bswap ecx
mov dword [rbx + 0x28], eax
mov eax, eax
mov dword [rbx + 0x30], ecx
mov ecx, dword [rbx + 0x34]
sub rsi, rax
bswap edx
mov qword [rbx + 8], rsi
bswap ecx
mov dword [rbx + 0x2c], edx
add edx, esi
mov dword [rbx + 0x34], ecx
mov dword [0x140025090], ecx
mov rcx, qword [rbx]
call fcn.14000f0c0
movsxd r12, dword [rbx + 0x30]
mov rcx, r12
call sub.msvcrt.dll_malloc
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x14000225d
mov r9, qword [rbx]
mov r8d, 1
mov rdx, r12
call sub.msvcrt.dll_fread
test rax, rax
je 0x14000222b
movsxd rax, dword [rbx + 0x30]
add rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rax
mov rcx, qword [rbx]
call sub.msvcrt.dll_ferror
mov r12d, eax
test eax, eax
jne 0x140002246
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
lea rsi, str.Cannot_read_Table_of_Contents._n
cmp rax, r8
jae 0x1400021b8
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 rax, qword [rbx + 0x10]
jae 0x140002170
mov rcx, rsi
call fcn.140002f50
mov rax, qword [rbx + 0x18]
mov r8, rax
cmp rax, r8
jb 0x140002175
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400021cc
call sub.msvcrt.dll_fclose
mov qword [rbx], 0
mov eax, r12d
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov rcx, rbx
call fcn.140001830
test eax, eax
jne 0x140002207
mov rcx, qword [rbx]
jmp 0x140002057
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.1400030e0
mov r12d, 0xffffffff
jmp 0x1400021cc
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
mov r12d, 0xffffffff
call fcn.1400030e0
jmp 0x1400021cc
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
mov r12d, 0xffffffff
call fcn.1400030e0
jmp 0x1400021cc
lea rcx, str.Error_on_file._n
mov r12d, 0xffffffff
call fcn.140002f50
jmp 0x1400021cc
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, [0x14001a0ea]
or r12d, 0xffffffff
call fcn.1400030e0
jmp 0x1400021cc
Function at 0x140006070
Capabilities:
Read file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov r12, rcx
cmp rdx, qword [rcx + 0x18]
jb 0x140006097
jmp 0x1400060b0
call fcn.140001c50
mov rdx, rax
cmp qword [r12 + 0x18], rax
jbe 0x1400060b0
cmp byte [rdx + 0x11], 0x6c
mov rcx, r12
jne 0x140006088
add rsp, 0x20
pop r12
jmp fcn.140001c90
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x1400073f0
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.14000e070
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.1400084f0
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007438
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.140008250
mov rcx, rax
test rax, rax
je 0x140007427
cmp byte [rax], 0
je 0x140007427
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x1400074e0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400084f0
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 0x140007520
Capabilities:
Create directory
Query environment variable

Disassembly:
push r13
mov eax, 0x4020
push r12
push rdi
push rsi
push rbx
call fcn.14000e070
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400084f0
mov r12, rax
test rax, rax
je 0x140007660
lea r13, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x1000
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x140007648
mov rcx, r13
call fcn.1400088d0
test eax, eax
jne 0x140007630
mov r8d, 0x1000
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov r12, rax
test r12, r12
je 0x14000766e
lea rsi, [rsp + 0x2020]
xor eax, eax
mov ecx, 0x400
mov edx, 0x5c
mov rdi, rsi
rep stosq qword [rdi], rax
mov rcx, r12
call sub.msvcrt.dll_wcschr
mov rdi, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbx, rax
test rax, rax
je 0x14000760d
nop dword [rax]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
sub r8, r12
sar r8, 1
add r8, 1
call sub.msvcrt.dll_wcsncpy
xor edx, edx
mov rcx, rsi
call rdi
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.msvcrt.dll_wcschr
mov rbx, rax
test rax, rax
jne 0x1400075d8
xor edx, edx
mov rcx, r12
call rdi
mov rax, r12
add rsp, 0x4020
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wcsdup_1]
mov r12, rax
jmp 0x14000759a
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor r12d, r12d
call fcn.140002f50
jmp 0x140007614
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002f50
jmp 0x140007614
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002f50
jmp 0x140007614
Function at 0x140007680
Capabilities:
Get common file path

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e070
sub rsp, rax
mov r15, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400076e9
lea rcx, [0x14001c4f3]
call fcn.1400073f0
mov rcx, rsi
mov r14, rax
call fcn.140007520
mov r12, rax
test rax, rax
je 0x14000779c
lea rcx, [0x14001c4f8]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x1400077a8
lea rbp, [rsp + 0x40]
mov ecx, 0x1000
lea rdi, [rsp + 0x20]
mov ebx, 5
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rdi
mov r9d, eax
call fcn.140007270
mov r13, qword [sym.imp.msvcrt.dll__wtempnam]
mov rcx, rbp
mov rdx, rdi
call r13
mov rcx, rax
mov r12, rax
call fcn.140008730
test eax, eax
je 0x1400077c0
mov rcx, r12
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x140007729
test rsi, rsi
je 0x14000779c
test r14, r14
je 0x140007790
mov rdx, r14
lea rcx, [0x14001c4f3]
xor r12d, r12d
call fcn.140007480
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, r12d
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14001c4f3]
call fcn.1400074e0
xor r12d, r12d
jmp 0x140007772
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor r12d, r12d
call fcn.140002f50
jmp 0x140007772
mov rdx, r12
mov r8d, 0x1000
mov rcx, r15
call fcn.140008250
mov rcx, r12
mov r12d, 1
call sub.msvcrt.dll_free
test rsi, rsi
je 0x140007772
test r14, r14
je 0x140007805
mov rdx, r14
lea rcx, [0x14001c4f3]
call fcn.140007480
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x140007772
lea rcx, [0x14001c4f3]
call fcn.1400074e0
jmp 0x140007772
Function at 0x140007890
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.14000e070
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.1400084f0
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 0x1400078fc
cmp ax, 0x5c
jne 0x140007950
lea rdx, [0x14001c580]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.14000ec20
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140007968
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, [0x14001c57c]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x1400078fc
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.1400079d0
jmp 0x1400079af
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.1400079d0
mov rdx, rbp
mov rcx, r14
call fcn.14000ed00
test eax, eax
je 0x140007990
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140007927

Function at 0x1400079d0
Capabilities:
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.14000e070
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x14001c584]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140007a18
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x14001c588]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007a03
xor eax, eax
mov rdx, r12
mov rcx, r13
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
test byte [rbx], 0x10
je 0x140007a70
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.140008250
mov rcx, r12
call fcn.140007890
nop
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
mov rcx, r13
call rbx
test eax, eax
je 0x140007a03
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x140007a03
Function at 0x140007cb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000e070
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14001c5c4]
call fcn.1400046b0
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140007aa0
mov r13, rax
test r12, r12
je 0x140007dba
test rax, rax
je 0x140007dad
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140007da8
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140007d50
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007d00
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140007d7f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140007d71
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007d00
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 0x140007d7f
test r12, r12
je 0x140007dba
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140007d87
jmp 0x140007d8f
Function at 0x140007e40
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2118
push rdi
push rsi
push rbx
call fcn.14000e070
sub rsp, rax
mov r8d, 0x1000
lea r12, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rdi, [rsp + 0xa0]
mov rcx, r12
call fcn.1400084f0
mov edx, 1
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 2
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0xf
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0x15
call sub.msvcrt.dll_signal
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 rsi, qword [fcn.1400179d0]
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 rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rbx
mov ecx, 1
mov qword [rsp + 0xf0], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rbx
mov ecx, 2
mov qword [rsp + 0xf8], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call 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 0x140008000
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, 0x2118
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140003030
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x140008030
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 0x140008120
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.14000f0c0
test eax, eax
js 0x140008120
mov rcx, rdi
call fcn.14000f1b0
movsxd r8, eax
cmp r8, rbx
jb 0x140008120
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 0x140008120
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14000f0c0
test eax, eax
js 0x140008120
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140008120
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x14000810a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008140
mov r15, r13
test r15, r15
jne 0x1400080f0
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x140008099
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 0x140008123