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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x140001f40
cmp byte [rdx + 0x11], 0x6e
je 0x140001e60
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.140008760
mov r12, rax
test rax, rax
je 0x140001f56
lea rcx, [rsi + 0x70]
lea rdx, [0x14001b179]
call fcn.1400047c0
mov rbp, rax
test rax, rax
je 0x140001ed0
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call fcn.140010440
test eax, eax
js 0x140001f20
cmp byte [rbx + 0x10], 1
je 0x140001e80
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001f6e
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001e16
jmp 0x140001ef0
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001f00
sub rsi, rbx
je 0x140001ef0
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001df0
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140003010
mov esi, 0xffffffff
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140001e93
call fcn.140001ca0
mov esi, eax
test eax, eax
js 0x140001eb8
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140001710
mov esi, eax
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002e90
jmp 0x140001e6b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002e90
jmp 0x140001e9b
xor esi, esi
jmp 0x140001e56
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140003010
jmp 0x140001e51
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140003010
mov esi, 0xffffffff
jmp 0x140001e93
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002e90
mov esi, 0xffffffff
jmp 0x140001e6b
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140003010
jmp 0x140001f4c
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140003010
jmp 0x140001f36
Function at 0x140001f90
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x14001b179]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.1400047c0
mov rsi, rax
test rax, rax
je 0x140002191
mov rax, qword [0x1400213c0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rsi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008d80
mov rdi, rax
test rax, rax
jne 0x140002008
mov edi, 0xffffffff
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call fcn.140010440
test eax, eax
js 0x140002140
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002160
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rdi, 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 rdi, rax
bswap edx
mov qword [rbx], rdi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, edi
mov dword [rbx + 0x2c], ecx
mov dword [0x1400270b0], ecx
mov rcx, rsi
call fcn.140010440
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x14000219b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002120
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov edi, eax
test eax, eax
jne 0x140002180
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001ff0
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 rax, r8
jb 0x1400020f0
jmp 0x140001ff0
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140003010
jmp 0x140001feb
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140003010
jmp 0x140001feb
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140003010
jmp 0x140001feb
lea rcx, str.Error_on_file._n
call fcn.140002e90
jmp 0x140001feb
mov edi, 0xffffffff
jmp 0x140001ff8
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140003010
jmp 0x140001feb
Function at 0x140008000
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000f440
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.140009380
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140008048
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.1400091b0
mov rcx, rax
test rax, rax
je 0x140008036
cmp byte [rax], 0
je 0x140008036
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x1400080f0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140009380
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 0x140008430
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.14000f440
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140009380
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
mov rcx, r12
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000849c
cmp ax, 0x5c
jne 0x1400084f0
lea rdx, [0x14001d51a]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000ff90
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140008508
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, [0x14001d516]
mov rcx, r12
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000849c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.140008570
jmp 0x14000854f
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.140008570
mov rdx, rbx
mov rcx, r14
call fcn.140010070
test eax, eax
je 0x140008530
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x1400084c7

Function at 0x140008570
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000f440
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001d51e]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400085b0
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14001d522]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400085a1
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x140008610
call fcn.140009660
test eax, eax
jne 0x140008638
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.1400091b0
mov rcx, rbx
call fcn.140008430
jmp 0x1400085a1
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x1400085a1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x1400085a1
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x1400085a1
Function at 0x140008880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000f440
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001d5bc]
call fcn.1400047c0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.140008760
mov rdi, rax
test rbx, rbx
je 0x140008979
test rax, rax
je 0x14000896c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140008968
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140008918
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400088d0
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x140008941
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008939
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400088d0
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
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
xor esi, esi
jmp 0x140008946
test rbx, rbx
je 0x140008979
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x140008986
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x140008956
Function at 0x1400089f0
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.14000f440
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rsi
call fcn.140009380
mov edx, 1
lea rcx, [0x140007eb0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [fcn.140018e10]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rdi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
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], rbp
mov rcx, rsi
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 0x140008b98
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.140002f70
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008d80
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 rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140008e70
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.140010440
test eax, eax
js 0x140008e70
mov rcx, r12
call fcn.140010530
movsxd rbx, eax
cmp rbx, rdi
jb 0x140008e70
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140008e70
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.140010440
test eax, eax
js 0x140008e70
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140008e70
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140008e5a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008e90
mov rbx, r15
test rbx, rbx
jne 0x140008e40
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140008de9
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140008e72

Function at 0x140009610
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140027380]
test rax, rax
je 0x14000964a
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]
cmp eax, 1
sbb eax, eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002f00
mov eax, 0xffffffff
jmp 0x140009645
Function at 0x14000e120
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140018e10
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140018e10
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000edf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140028468]
test eax, eax
je 0x14000ee8a
lea rax, [0x140028440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140028470]
mov qword [rbp - 8], rax
jmp 0x14000ee6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000ee62
cmp qword [rbp - 0x10], 0
je 0x14000ee62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000ee28
lea rax, [0x140028440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000ee8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000ef90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000efb8
mov eax, 0
jmp 0x14000f006
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 0x14000efe1
mov eax, 0
jmp 0x14000f006
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000f001
mov eax, 0
jmp 0x14000f006
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000f00c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000f08a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000f081
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000f081
mov rax, qword [rbp - 8]
jmp 0x14000f09f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000f054
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14005b910
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14005b9b0
jmp 0x14005b99f
jae 0x14005ba70
cmp r8, 0x201
jae 0x14005b9b0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14005ba08
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14005b9df
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400722f0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14005ba31
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14005bad8
mov r8d, r14d
cmp r15, r8
jne 0x14005b990
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14005bb05
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14005b99f
jmp 0x14005b9b0
cmp rsi, r8
jb 0x14005bb1f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14005d940
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14005bac1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140005b80
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14005baa9
jmp 0x14005bac1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140072cf0
jmp 0x14005bb34
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140073140
ud2
Function at 0x140061f70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400b06e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140061fb4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14006201a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140062051
test eax, eax
js 0x14006202b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140062044
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14005d680
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140059bc0
mov ecx, 7
int 0x29
ud2
Function at 0x140070490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14007050a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140070500
cmp r11, r10
ja 0x140070595
cmp r10, rdx
ja 0x1400705a7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140070502
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400704e0
jmp 0x140070577
ja 0x14007050a
mov r11, r10
cmp rax, r8
jne 0x1400704b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14007057b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140070550
mov r8, r10
sub ecx, r9d
jns 0x14007056e
jmp 0x14007057d
cmp r10, rdx
je 0x140070589
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007057d
xor al, 1
cmp r8, rdx
jne 0x140070530
jmp 0x14007057d
xor eax, eax
jmp 0x14007057d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140072b90
lea r8, str._1_v_
mov rcx, r11
mov rdx, r10
call fcn.1400731c0
lea r8, str._1_v_
mov rcx, r10
call fcn.140073140
int3

Function at 0x140071ca8
Capabilities:
Parse pe header

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