joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000338c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14000b0c8]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
mov rsi, rcx
mov r14d, r12d
mov r15d, 0x1000000
mov ebx, r12d
mov ebp, r12d
cmp qword [rcx + 8], r12
jne 0x1400033ec
lea rcx, str.load__modname____you_must_specify_a_module_to_load_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000358b
mov ecx, 0x104
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x260]
mov rcx, qword [rsi]
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.msvcrt.dll__wsplitpath_s]
nop dword [rax + rax]
cmp word [rsp + 0x50], r12w
jne 0x140003445
mov rdi, qword [0x14000c558]
mov r14d, 1
jmp 0x140003474
lea rdx, str..pdb
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000346d
mov rdi, qword [0x14000c558]
lea ebp, [rax + 1]
jmp 0x140003474
mov rdi, qword [0x14000c230]
cmp qword [0x14000bbe8], r12
je 0x140003482
call fcn.1400032c4
lea rdx, [rsp + 0x260]
call fcn.14000512c
test al, al
jne 0x1400034ae
mov rdx, qword [rsi]
lea rcx, str.error_out_of_memory_loading__ls_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x1400033e5
test ebp, ebp
jne 0x1400034f5
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov r15d, eax
mov r8, qword [rsi]
lea r9, [rsp + 0x260]
mov rcx, qword [0x14000c238]
mov rdx, rbx
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.dbghelp.dll_SymLoadModuleExW]
nop dword [rax + rax]
test rax, rax
jne 0x14000356a
mov rax, qword [section..data]
mov qword [0x14000b008], rax
mov word [rax], r12w
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8, qword [rsi]
lea rcx, str.error_0x_x_loading__ls._n
mov edx, eax
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x1400033e5
mov qword [0x14000bbe8], rax
cmp rbx, 0xffffffffffffffff
je 0x140003586
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140005e90
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140005c90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000ccc0], rbx
je 0x140005cdc
cmp rax, rbx
jne 0x140005ccf
mov ebx, 1
mov esi, ebx
jmp 0x140005ce1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005cb4
mov ebx, 1
mov eax, dword [0x14000ccc8]
cmp eax, ebx
jne 0x140005cf7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140005d5c
mov eax, dword [0x14000ccc8]
test eax, eax
jne 0x140005d56
mov dword [0x14000ccc8], ebx
lea r15, [0x1400074d0]
lea rdi, [0x1400074b8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140005d48
test eax, eax
jne 0x140005d4c
cmp qword [rdi], 0
je 0x140005d3d
mov rax, qword [rdi]
mov rcx, qword [0x140007468]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140005d1e
test eax, eax
je 0x140005d5c
mov eax, 0xff
jmp 0x140005e38
mov dword [0x14000b204], ebx
mov eax, dword [0x14000ccc8]
cmp eax, ebx
jne 0x140005d83
lea rdx, [0x1400074b0]
lea rcx, [0x140007470]
call sub.msvcrt.dll__initterm
mov dword [0x14000ccc8], 2
test esi, esi
jne 0x140005d90
xor eax, eax
xchg qword [0x14000ccc0], rax
cmp qword [0x14000ccd0], 0
je 0x140005dc4
lea rcx, [0x14000ccd0]
call fcn.140006200
test eax, eax
je 0x140005dc4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000ccd0]
mov r9, qword [0x140007468]
call r9
mov r8, qword [0x14000b218]
mov rdx, qword [0x14000b210]
mov ecx, dword [0x14000b208]
call fcn.140001c1c
mov dword [0x14000b200], eax
cmp dword [0x14000b220], 0
jne 0x140005df4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b204], 0
jne 0x140005e09
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b200]
jmp 0x140005e38
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14009c000
add rsp, 0x28
jmp 0x140005c90

Function at 0x1400060ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006138
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006130
cmp dword [rcx + 0x3c], edx
jl 0x140006130
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006130
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006138
mov rax, rdx
add rsp, 0x18
ret
Function at 0x39e4b20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x39e4b2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x39e4b3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x39e4b25
lea eax, [rcx + 1]
jmp 0x39e4b4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x39e4b5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x39e4b44
sub eax, 3
jb 0x39e4b7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x39e4bcd
sar eax, 1
movsxd rbp, eax
jb 0x39e4bb4
jmp 0x39e4b8c
add ebx, ebx
jne 0x39e4b8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x39e4bb4
inc ecx
add ebx, ebx
jne 0x39e4b9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x39e4bb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x39e4bad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x39e4b9c
add ecx, 2
jmp 0x39e4bb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.039e4ae2
jmp 0x39e4b2d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x35e2000]
mov eax, dword [rdi]
or eax, eax
je 0x39e4c29
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x35ea540]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x39e4bd9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x39e4c23
mov qword [rbx], rax
add rbx, 8
jmp 0x39e4bf9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x39e4c81
sub rsp, 0xffffffffffffff80
jmp 0x474540
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
jnp 0x1400232bb
movabs al, byte [0x7ebd4df9fdb8b3f0]
push rdx
std
invalid
lodsb al, byte [rsi]
movsd dword [rdi], dword [rsi]
fcmovnb st(0), st(5)
and al, 0x58
adc ch, byte [rax + rcx*2]
mov al, byte [rsi - 0x44]
mov ebx, dword [rax - 0x61]
div byte [rcx - 0x4b99bd9f]
stc
jnp 0x14002325b
or eax, dword [rcx - 0x596055cb]
invalid
sub r10d, dword [r11]
int 0xd0
wait
movsd dword [rdi], dword [rsi]
mov r11d, 0xb512192e
rcr byte [rbx + 0x6a], 1
sbb al, 0x41
jno 0x1400232f0
adc dword [rbp + 0x1d8b0b8b], edi
outsb dx, byte [rsi]
int1
cmp dword [r15], 0xffffffdd
mov ebx, 0x153b31a0
mov dword [rbp + 0x22], ebx
push rcx
xchg esi, eax
invalid
out dx, eax
invalid
Function at 0x6d897dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8b95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d897f48
mov rax, qword [0x6d8b95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d897e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d897e95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d897df0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d897f7d
mov rax, qword [0x6d8b95e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8b95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d897f60
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d897e8e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d897ef0
add dword [0x6d8b95e4], 1
cmp edi, 8
jae 0x6d897ec3
test dil, 4
jne 0x6d897f34
test edi, edi
je 0x6d897eb8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d897f4f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d897eb8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d897edc
jmp 0x6d897eb8
add rsi, qword [0x6d8b95e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d897e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d897eb8
xor esi, esi
jmp 0x6d897e17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d897eb8
mov rax, qword [0x6d8b95e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8986d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8b98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8b98a0]
test rbx, rbx
je 0x6d898724
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d89871b
test rsi, rsi
je 0x6d89871b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d898700
lea rcx, [0x6d8b98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d898960
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d898970
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d898980
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8989c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8989b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8989c3
add rax, 0x28
cmp rax, r9
jne 0x6d8989a4
xor eax, eax
ret

Function at 0x6d898a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b61f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d898acd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d898acd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d898acd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d898ac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d898acf
add rax, 0x28
cmp rax, r9
jne 0x6d898ab0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d898bd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b61f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d898bf0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d898be8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d898c4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d898c44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d898c54
add rax, 0x28
cmp rax, r9
jne 0x6d898c30
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d898c70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8b61f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d898cde
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d898cde
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d898cde
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d898cde
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d898cd5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d898ce5
add rcx, 0x28
cmp rcx, rax
jne 0x6d898cc0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d898cf8
jmp 0x6d898cde
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d898d06
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d898cde
test r9d, r9d
jg 0x6d898cf0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d899070
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140027db0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f00
cmp rax, 0xffffffffffffffff
je 0x140027f00
xor edi, edi
test rbp, rbp
jle 0x140027eab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd40
mov rbx, rax
test rax, rax
jne 0x140027e38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ea1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158f8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c430
cmp eax, 0xffffffff
je 0x140027e81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e48
mov edx, r15d
mov ecx, r14d
call fcn.1400158f8
jmp 0x140027ea1
cmp byte [rsi + 0x38], dil
je 0x140027e98
cmp dword [rsi + 0x34], 5
jne 0x140027e98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ea1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e18
jmp 0x140027f14
jns 0x140027f14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b754
cmp rax, 0xffffffffffffffff
jne 0x140027ecc
cmp byte [rsi + 0x30], dil
je 0x140027f14
mov edi, dword [rsi + 0x2c]
jmp 0x140027f14
mov ecx, r14d
call fcn.140016ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027f14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f0d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b754
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1000017b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001805
cmp rcx, 0xffffffffffffffff
je 0x100001805
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000017fd
cmp dword [rcx + 0x3c], edx
jl 0x1000017fd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000017fd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001805
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000bee0
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 [0x14001fef8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000bf24
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 0x14000bf8a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000bfc1
test eax, eax
js 0x14000bf9b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000bfb4
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.140006a50
mov rcx, rax
call fcn.140001c40
mov ecx, 7
int 0x29
ud2

Function at 0x14001a560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001a5da
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 0x14001a5d0
cmp r10, r11
jb 0x14001a673
cmp r10, rdx
ja 0x14001a687
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001a5d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001a5b0
jmp 0x14001a647
ja 0x14001a5da
mov r11, r10
cmp rax, r8
jne 0x14001a582
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001a64b
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 0x14001a620
mov r8, r10
sub ecx, r9d
jns 0x14001a63e
jmp 0x14001a64d
cmp r10, rdx
je 0x14001a659
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001a64d
xor al, 1
cmp r8, rdx
jne 0x14001a600
jmp 0x14001a64d
xor eax, eax
jmp 0x14001a64d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001d2c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d790
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d710
ud2
Function at 0x411aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411c2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c1a0
xorps xmm15, xmm15
mov r14, qword [0x005317f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x411b05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x411b14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x411b33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x411b43
cmp rbx, 0x1000
jae 0x411b0b
jmp 0x411bad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x411b55
xor edx, edx
jmp 0x411ba4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c1a0
xorps xmm15, xmm15
mov r14, qword [0x005317f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x411b39
jmp 0x411b28
call fcn.00458a40
xorps xmm15, xmm15
mov r14, qword [0x005317f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00430500
lea rax, [0x00474504]
mov ebx, 0x18
nop dword [rax]
call fcn.00430d80
mov rax, qword [rsp + 0x38]
call fcn.00430ac0
lea rax, [0x004747ca]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00430d80
mov rax, qword [rsp + 0x30]
call fcn.00430ac0
call fcn.00430740
call fcn.00430560
lea rax, [0x00475eff]
mov ebx, 0x21
call fcn.0042eb60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004553a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00411aa0