joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rdi, [rsp + 0x40]
mov r14, rcx
mov r12, rdx
mov qword [rsp + 0x108], r9
mov r15, r8
mov rcx, rdi
mov r8d, 0x58
mov qword [rsp + 0x70], 0
lea rdx, section..rdata
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], 0
call fcn.0040a220
test eax, eax
mov ebx, eax
jne 0x401860
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x401740
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rbp, rax
je 0x401830
mov eax, dword [r12 + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r9, r14
mov edx, 1
mov rcx, rsi
mov r13d, 0x2000
cmp rax, 0x2000
cmovbe r13, rax
mov r8, r13
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x401850
mov rcx, r14
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401850
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x58], 0x2000
call fcn.0040a2c0
cmp eax, 0xfffffffc
mov ebx, eax
jl 0x401760
cmp eax, 0xfffffffe
jle 0x401735
cmp eax, 2
jne 0x401760
mov r10d, 0xfffffffd
lea rdx, [r12 + 0x12]
mov r8d, r10d
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402c30
mov rcx, rdi
call fcn.0040be20
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10d, eax
jmp 0x4016ee
lea r8, [r12 + 0x12]
xor ebp, ebp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401707
mov eax, dword [rsp + 0x58]
mov r11d, 0x2000
sub r11, rax
test r15, r15
mov r9, rax
je 0x4017f0
mov r8, r11
mov r9, r15
mov edx, 1
mov qword [rsp + 0x30], r11
mov rcx, rbp
call sub.msvcrt.dll_fwrite
mov r11, qword [rsp + 0x30]
cmp rax, r11
jne 0x40187e
mov rcx, r15
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40187e
mov r9d, dword [rsp + 0x58]
test r9d, r9d
je 0x4016bc
sub qword [rsp + 0x28], r13
mov r10d, ebx
cmp r10d, 1
mov ebx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
je 0x4017d9
test rax, rax
jne 0x40166d
cmp r10d, 1
je 0x401707
jmp 0x4016ee
cmp qword [rsp + 0x108], 0
je 0x4017b0
mov rcx, qword [rsp + 0x108]
mov r8, r11
mov rdx, rbp
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x3c]
add qword [rsp + 0x108], r11
jmp 0x4017b0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401707
mov ebx, 0xffffffff
jmp 0x401707
lea rdx, [r12 + 0x12]
mov r8d, eax
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402c30
jmp 0x40171f
mov r10d, 0xffffffff
jmp 0x4016ee
Function at 0x4018d0
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 r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x00411129]
call fcn.004042e0
test rax, rax
mov rbp, rax
je 0x401a20
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx]
call fcn.0040ee00
test eax, eax
js 0x4019c0
mov ebx, dword [r12 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
mov r13, rax
je 0x401a00
cmp byte [r12 + 0x10], 1
je 0x4019e0
test rbx, rbx
mov rdi, rax
mov r14d, 0x2000
jne 0x401958
jmp 0x4019a2
add rdi, rsi
sub rbx, rsi
je 0x4019a2
cmp rbx, 0x2000
mov rsi, r14
mov r9, rbp
cmovbe rsi, rbx
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401950
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402db0
mov rcx, r13
xor r13d, r13d
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r8, [r12 + 0x12]
xor r13d, r13d
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402db0
jmp 0x4019a2
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.004015c0
test eax, eax
je 0x4019a2
jmp 0x401997
lea r8, [r12 + 0x12]
mov r9d, ebx
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x4019a2
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402c30
jmp 0x4019aa
Function at 0x401ae0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x401cc5
cmp byte [rdx + 0x11], 0x6e
je 0x401c10
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.00408080
test rax, rax
mov r12, rax
je 0x401cdb
lea rcx, [rsi + 0x70]
lea rdx, [0x00411129]
call fcn.004042e0
test rax, rax
mov rdi, rax
je 0x401c30
mov edx, dword [rbx + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rsi]
call fcn.0040ee00
test eax, eax
js 0x401c65
cmp byte [rbx + 0x10], 1
je 0x401c50
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rbp, rax
je 0x401cfb
mov ebx, dword [rbx + 0xc]
test rbx, rbx
je 0x401c82
mov r14d, 0x2000
jmp 0x401bb8
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401c90
sub rbx, rsi
je 0x401c82
cmp rbx, 0x2000
mov rsi, r14
mov r9, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rcx, rbp
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401b92
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fread
call fcn.00402db0
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_fclose
jmp 0x401c44
call fcn.00401a40
test eax, eax
mov esi, eax
js 0x401cb0
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r13
mov esi, 0xffffffff
call fcn.00402c30
mov rcx, r12
call sub.msvcrt.dll_fclose
jmp 0x401c1f
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rdi
call fcn.004015c0
mov esi, eax
jmp 0x401c02
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fseek
call fcn.00402db0
jmp 0x401c02
xor esi, esi
jmp 0x401bfa
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fwrite
call fcn.00402db0
jmp 0x401bfa
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.00402c30
jmp 0x401c1f
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov esi, 0xffffffff
call fcn.00402c30
jmp 0x401c1f
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fopen
call fcn.00402db0
jmp 0x401c1f
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r13
or esi, 0xffffffff
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401c02
Function at 0x401d20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rdx, [0x00411129]
mov rsi, rcx
lea rcx, [rcx + 0x70]
call fcn.004042e0
test rax, rax
mov rbx, rax
je 0x401f30
mov rax, qword [0x004176c0]
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov ebp, 0xffffffff
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.004086a0
test rax, rax
mov rdi, rax
jne 0x401d94
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov eax, ebp
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.0040ee00
test eax, eax
js 0x401ed0
lea rcx, [rsi + 0x18]
mov r9, rbx
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x401eb0
mov ecx, dword [rsi + 0x28]
add rdi, 0x58
xor r8d, r8d
mov dword [rsi + 0x5078], 0
mov eax, dword [rsi + 0x20]
mov edx, dword [rsi + 0x24]
bswap ecx
mov dword [rsi + 0x28], ecx
mov ecx, dword [rsi + 0x2c]
bswap eax
mov dword [rsi + 0x20], eax
mov eax, eax
sub rdi, rax
bswap edx
mov dword [rsi + 0x24], edx
mov qword [rsi], rdi
add edx, edi
bswap ecx
mov dword [rsi + 0x2c], ecx
mov dword [0x0041b040], ecx
mov rcx, rbx
call fcn.0040ee00
movsxd rdi, dword [rsi + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rsi + 8], rax
je 0x401f10
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_fread
test rax, rax
je 0x401ef0
movsxd rax, dword [rsi + 0x28]
mov rcx, rbx
add rax, qword [rsi + 8]
mov qword [rsi + 0x10], rax
call sub.msvcrt.dll_ferror
test eax, eax
mov ebp, eax
jne 0x401f40
mov rax, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
cmp rax, r8
jae 0x401d81
nop word [rax + rax]
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 0x401e80
jmp 0x401d81
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.00402db0
jmp 0x401d81
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.00402db0
jmp 0x401d81
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.00402db0
jmp 0x401d81
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401d81
mov ebp, 0xffffffff
jmp 0x401d89
lea rcx, str.Error_on_file._n
mov ebp, 0xffffffff
call fcn.00402c30
jmp 0x401d81
Function at 0x406610
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
mov rbx, rcx
jb 0x406632
jmp 0x406645
call fcn.004018c0
cmp qword [rbx + 0x10], rax
mov rdx, rax
jbe 0x406645
cmp byte [rdx + 0x11], 0x6c
mov rcx, rbx
jne 0x406624
add rsp, 0x20
pop rbx
jmp fcn.004018d0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x407980
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.0040e220
sub rsp, rax
xor r8d, r8d
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
call fcn.00408b60
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4079c1
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.004088c0
test rax, rax
mov rcx, rax
je 0x4079b6
cmp byte [rax], 0
je 0x4079b6
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x407a60
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.00408b60
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x407aa0
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push r15
mov eax, 0x4028
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040e220
sub rsp, rax
test rdx, rdx
mov r15, rcx
mov r13, rdx
je 0x407c91
lea rcx, [0x00413bae]
call fcn.00407980
xor r8d, r8d
xor ecx, ecx
mov rdx, r13
mov r14, rax
call fcn.00408b60
test rax, rax
mov rbx, rax
je 0x407d16
lea rbp, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
je 0x407d03
mov rcx, rbp
call fcn.00408ed0
test eax, eax
jne 0x407c80
mov r8d, 0x1000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov rdi, rax
test rdi, rdi
je 0x407d27
lea rsi, [rsp + 0x2020]
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call sub.msvcrt.dll_memset
mov edx, 0x5c
mov rcx, rdi
call sub.msvcrt.dll_wcschr
mov r12, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test rax, rax
mov rbx, rax
je 0x407bb6
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
sub r8, rdi
sar r8, 1
add r8, 1
call sub.msvcrt.dll_wcsncpy
xor edx, edx
mov rcx, rsi
call r12
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.msvcrt.dll_wcschr
test rax, rax
mov rbx, rax
jne 0x407b80
xor edx, edx
mov rcx, rdi
call r12
lea rcx, [0x00413c84]
mov rdx, rdi
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, rdi
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x407cf0
mov rdx, rsi
mov ecx, 0x1000
mov edi, 5
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rbp
mov r9d, eax
call fcn.00407840
mov r12, qword [sym.imp.msvcrt.dll__wtempnam]
mov rdx, rbp
mov rcx, rsi
call r12
mov rcx, rax
mov rbx, rax
call fcn.00408cb0
test eax, eax
je 0x407cb0
mov rcx, rbx
call sub.msvcrt.dll_free
sub edi, 1
jne 0x407c16
xor ebx, ebx
test r13, r13
je 0x407c66
test r14, r14
je 0x407cdc
lea rcx, [0x00413bae]
mov rdx, r14
call fcn.00407a00
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsdup]
mov rdi, rax
jmp 0x407b3d
lea rbp, [rsp + 0x20]
xor r14d, r14d
lea rsi, [rsp + 0x2020]
jmp 0x407be0
mov rdx, rbx
mov r8d, 0x1000
mov rcx, r15
call fcn.004088c0
mov rcx, rbx
mov ebx, 1
call sub.msvcrt.dll_free
test r13, r13
je 0x407c66
test r14, r14
jne 0x407c4f
lea rcx, [0x00413bae]
call fcn.00407a60
jmp 0x407c66
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor ebx, ebx
call fcn.00402c30
jmp 0x407c66
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor ebx, ebx
call fcn.00402c30
jmp 0x407c66
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402c30
jmp 0x407c66
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
xor ebx, ebx
call fcn.00402c30
jmp 0x407c66
Function at 0x407d40
Capabilities:
Delete directory

Disassembly:
push r13
mov eax, 0x44a8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040e220
sub rsp, rax
mov r8d, 0x1000
lea r13, [rsp + 0x2490]
mov rdx, rcx
lea rsi, [rsp + 0x480]
mov rcx, r13
call fcn.00408b60
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rbp, rax
movzx eax, word [rsp + rax*2 + 0x47e]
cmp ax, 0x2f
je 0x407da4
cmp ax, 0x5c
jne 0x407e25
lea rdx, [0x00413cca]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
lea rbx, [rsp + 0x250]
mov rcx, rsi
mov rdx, rbx
call fcn.0040eac0
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x407e0b
lea rdi, [rsp + 0x20]
mov r8d, 0x230
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.00407e40
mov rdx, rbx
mov rcx, r12
call fcn.0040eb50
test eax, eax
je 0x407dd4
mov rcx, r12
call qword [sym.imp.msvcrt.dll__findclose]
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x00413cc6]
mov rcx, rsi
add rbp, 1
call sub.msvcrt.dll_wcscat
jmp 0x407da4

Function at 0x407e40
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.0040e220
sub rsp, rax
lea rbx, [r8 + 0x24]
mov rdi, rcx
mov rbp, rdx
lea rdx, [0x00413cce]
mov rcx, rbx
mov rsi, r8
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407e80
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x00413cd2]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x407e71
xor eax, eax
mov rcx, rdi
mov rdx, rbx
mov word [rdi + rbp*2], ax
call sub.msvcrt.dll_wcscat
test byte [rsi], 0x10
mov rcx, rdi
je 0x407ed5
call fcn.00408e60
test eax, eax
jne 0x407f00
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rbx
call fcn.004088c0
mov rcx, rbx
call fcn.00407d40
jmp 0x407e71
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x407e71
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call rbx
jmp 0x407e71
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x407e71
Function at 0x4081a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.0040e220
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [0x00413d74]
call fcn.004042e0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.00408080
test rbx, rbx
mov rdi, rax
je 0x408290
lea rsi, [rsp + 0x20]
test rax, rax
je 0x408290
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x4082b4
mov r9, rbx
mov r8d, 0x1000
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x408240
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x4081f0
mov rcx, rbx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x4082b6
mov r9, rdi
mov r8, rax
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x408264
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x4081f0
mov rcx, rdi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
test rbx, rbx
je 0x40829d
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
mov esi, 0xffffffff
jne 0x408279
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_fclose
jmp 0x408279

Function at 0x408320
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rdi
mov eax, 0x2110
push rsi
push rbx
call fcn.0040e220
sub rsp, rax
mov r8d, 0x1000
lea rsi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rdi, [rsp + 0xa0]
mov rcx, rsi
call fcn.00408b60
mov edx, 1
lea rcx, [0x004077f0]
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
xor ecx, ecx
mov rbx, qword [fcn.0040f5b0]
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 rbx
mov rcx, rax
call fcn.00407810
mov ecx, 1
mov qword [rsp + 0xf0], rax
call rbx
mov rcx, rax
call fcn.00407810
mov ecx, 2
mov qword [rsp + 0xf8], rax
call rbx
mov rcx, rax
call fcn.00407810
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, rsi
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x48], rdx
lea r8, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408490
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.00402d10
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
ret
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
ret
Function at 0x4086a0
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 r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rsi, r8
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4087a2
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.0040ee00
test eax, eax
js 0x4087a2
mov rcx, r12
call fcn.0040f2f0
movsxd rdi, eax
cmp rdi, rsi
jb 0x4087a2
lea rax, [rsi - 1]
mov qword [rsp + 0x28], rax
cmp rdi, 0x2000
mov r14d, 0x2000
cmovae r14, rdi
lea r13, [r14 - 0x2000]
sub rdi, r13
cmp rsi, rdi
ja 0x4087a2
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call fcn.0040ee00
test eax, eax
js 0x4087a2
mov r9, r12
mov r8, rdi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
cmp rax, rdi
jne 0x4087a2
sub rax, rsi
add rax, 1
mov rdi, rax
jne 0x408768
jmp 0x408790
test r15, r15
mov rdi, r15
je 0x408790
lea r15, [rdi - 1]
mov r8, rsi
mov rdx, rbp
lea rcx, [rbx + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x408760
lea rsi, [r14 + rdi - 0x2001]
jmp 0x4087a4
mov rax, qword [rsp + 0x28]
test r13, r13
lea rdi, [rax + r13]
jne 0x408704
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x408cb0
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040e220
sub rsp, rax
mov dword [rsp + 0x3c], 0
mov r12, rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408db5
mov rbx, qword [rsp + 0x40]
lea rdi, [rsp + 0x60]
xor ebp, ebp
mov rcx, rbp
call sub.msvcrt.dll_free
cmp rbx, 0xffffffffffffffff
je 0x408d2d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
lea r8, [rsi + 8]
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x408e40
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov edx, 1
mov r13, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call r13
test eax, eax
jne 0x408dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408d0a
mov edx, dword [rsp + 0x3c]
lea rdi, [rsp + 0x60]
mov ecx, 1
mov r15, rdx
call sub.msvcrt.dll_calloc
mov rbx, qword [rsp + 0x40]
test rax, rax
mov rbp, rax
je 0x408d16
mov qword [rsp + 0x20], r14
mov r9d, r15d
mov r8, rax
mov edx, 1
mov rcx, rbx
call r13
test eax, eax
jne 0x408e50
mov rbx, qword [rsp + 0x40]
jmp 0x408d16
mov eax, 0xffffffff
jmp 0x408da1
mov rdx, rdi
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x408e2d
Function at 0x4093c0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov eax, 0x80000000
test ecx, ecx
je 0x409435
lea rsi, [0x00414020]
mov ebx, 3
jmp 0x4093e7
add ebx, 1
sar ecx, 1
je 0x409435
test cl, 1
je 0x4093e0
mov edx, ebx
mov r8d, 0x80000000
and edx, 0x1f
mov r11d, dword [rsi + rdx*4]
mov edx, eax
xor eax, eax
jmp 0x40941e
mov r10d, edx
shr edx, 1
mov r9d, edx
and r10d, 1
shr r8d, 1
xor r9d, 0xedb88320
test r10d, r10d
cmovne edx, r9d
test r11d, r8d
je 0x409401
lea r9d, [r8 - 1]
xor eax, edx
test r9d, r11d
jne 0x409401
add ebx, 1
sar ecx, 1
jne 0x4093e7
pop rbx
pop rsi
ret