joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc511010
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc5120f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc511a12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc534108]
test eax, eax
je 0x2fc511aaa
lea rax, [0x2fc5340e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc534110]
mov qword [rbp - 8], rax
jmp 0x2fc511a8e
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 0x2fc511a82
cmp qword [rbp - 0x10], 0
je 0x2fc511a82
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 0x2fc511a48
lea rax, [0x2fc5340e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc511aab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc511bb0
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 0x2fc511bd8
mov eax, 0
jmp 0x2fc511c26
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 0x2fc511c01
mov eax, 0
jmp 0x2fc511c26
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 0x2fc511c21
mov eax, 0
jmp 0x2fc511c26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc511c2c
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 0x2fc511caa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc511ca1
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 0x2fc511ca1
mov rax, qword [rbp - 8]
jmp 0x2fc511cbf
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 0x2fc511c74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001dab
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140001dcc
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x14000b568
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140005230
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov eax, 0x40e18
push rsi
call fcn.140006550
sub rsp, rax
xor eax, eax
mov r11d, 0xa
lea rsi, [rsp + 7]
mov r9, rcx
mov ecx, 0x40e09
mov r10, rdx
mov rdi, rsi
rep stosb byte [rdi], al
mov rax, rcx
cqo
idiv r11
mov al, byte [r10 + rdx]
xor al, byte [r9 + rcx]
mov byte [rsi + rcx], al
inc rcx
cmp rcx, 0x40e09
jne 0x14000525c
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
add rsp, 0x40e18
pop rsi
pop rdi
ret

Function at 0x140005780
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000bb30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000bb30
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400057f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400521a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400059a0
mov rax, qword [0x1400521a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000583c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400058c7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140005820
mov rcx, r12
call fcn.1400062a0
mov rbp, rax
test rax, rax
je 0x1400059fd
mov rax, qword [0x1400521a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400063d0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400521a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400059e2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400058c0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005950
add dword [0x1400521a4], 1
cmp ebx, 8
jae 0x1400058f8
test bl, 4
jne 0x1400059b0
test ebx, ebx
je 0x1400058e9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400059d0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400058e9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000592a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400521a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400058c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005780
xor edi, edi
jmp 0x140005847
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400058e9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400058e9
mov rax, qword [0x1400521a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140005780
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005780
nop
nop dword [rax]
Function at 0x140005f10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140052200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400521e0]
test rbx, rbx
je 0x140005f64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140005f5b
test r12, r12
je 0x140005f5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005f40
lea rcx, [0x140052200]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400062a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14004ef30]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140006319
mov rcx, r10
call fcn.140006170
test eax, eax
je 0x140006319
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140006316
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000630d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140006319
add r8, 0x28
cmp r8, r9
jne 0x1400062f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140006680
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x140052280], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140052288], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400066d0
lea rdx, [0x140006590]
mov dword [0x140052278], eax
call fcn.14000bd80
test eax, eax
jne 0x1400066d8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400066c7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400066e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x14004eec0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x140006720
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140006788
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400067a0
mov r13d, dword [0x140052278]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x140006818
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x140006860
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x140006709
mov rcx, r12
call fcn.1400065e0
mov qword [r13 + rsi*8 + 8], rax
jmp 0x140006709
call fcn.1400065e0
mov qword [r12 + 0x10], rax
jmp 0x140006709
mov r10d, dword [r13]
test r10d, r10d
je 0x1400068c2
mov r9d, dword [0x14004d1c0]
test r9d, r9d
je 0x1400068f0
lock add dword [0x140052280], 1
jne 0x140006924
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x1400068d0
mov eax, dword [r13]
test eax, eax
je 0x140006729
mov eax, 0xffffffff
lock xadd dword [0x140052280], eax
sub eax, 1
js 0x140006729
mov rcx, qword [0x140052288]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140006729
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14000694b
mov qword [rax], rbx
mov ecx, dword [0x140052278]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140006767
call rdi
jmp 0x140006767
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x14000694b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x140006839
call fcn.140006680
mov dword [0x14004d1c0], 1
mov edx, dword [r13]
test edx, edx
jne 0x1400067bd
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x140006729
mov rax, qword [0x140052270]
lea rsi, [rax + 1]
mov qword [0x140052270], rsi
mov qword [r12 + 0x10], rsi
jmp 0x1400067d9
lock add dword [0x14004d1c4], 1
je 0x1400068a7
mov r8d, dword [0x14004d1c0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14004d1c0]
test r8d, r8d
jne 0x1400068b6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140006918
jmp 0x1400068b6
mov rcx, qword [0x140052288]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400067cb
lock sub dword [0x140052280], 1
jmp 0x1400067cb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140006970
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000697a
mov qword [rcx + 8], r8
test r9, r9
je 0x140006984
cmp qword [rcx], rdx
je 0x140006988
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140003340
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp - 0x50], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x40], rcx
mov byte [rbp + 0x3f], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
mov r8, qword [rbp + 0x98]
xor edx, edx
lea r9, [rbp - 0x38]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rbp + 0x4c], eax
cmp eax, 0
je 0x140003409
mov rcx, qword [rbp - 0x38]
call sub.ole32.dll_CoTaskMemFree
mov rax, qword [rbp - 0x48]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x14000344d
mov rcx, qword [rbp - 0x38]
call sub.KERNEL32.dll_lstrlenW
movsxd rdx, eax
mov qword [rbp + 0x50], rdx
mov rcx, qword [rbp - 0x38]
call fcn.140003080
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov byte [rbp + 0x3f], 1
lea rcx, [rbp - 0x30]
call fcn.140007010
mov rcx, qword [rbp - 0x38]
call sub.ole32.dll_CoTaskMemFree
jmp 0x14000345a
mov rax, qword [rbp - 0x40]
add rsp, 0x130
pop rbp
ret
mov byte [rbp + 0x3f], 0
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.140003310
jmp 0x14000347d
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp - 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 8]
mov qword [rax + 0x18], rcx
mov byte [rbp + 0x3f], 0
jmp 0x14000344d
Function at 0x140005ca0
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 0x140005d40
jmp 0x140005d2f
jae 0x140005e00
cmp r8, 0x201
jae 0x140005d40
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140005d98
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140005d6f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001afd0
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 0x140005dc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005e68
mov r8d, r14d
cmp r15, r8
jne 0x140005d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005e95
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140005d2f
jmp 0x140005d40
cmp rsi, r8
jb 0x140005eaf
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140007010
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 0x140005e51
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002190
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 0x140005e39
jmp 0x140005e51
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001b8d0
jmp 0x140005ec4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001be20
ud2
Function at 0x14000bf00
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 [0x14001dbd8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000bf44
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 0x14000bfaa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000bfe1
test eax, eax
js 0x14000bfbb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000bfd4
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.140006de0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003f00
mov ecx, 7
int 0x29
ud2
Function at 0x1400193f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001946a
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 0x140019460
cmp r11, r10
ja 0x140019501
cmp r10, rdx
ja 0x140019513
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140019462
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140019440
jmp 0x1400194d7
ja 0x14001946a
mov r11, r10
cmp rax, r8
jne 0x140019412
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400194db
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 0x1400194b0
mov r8, r10
sub ecx, r9d
jns 0x1400194ce
jmp 0x1400194dd
cmp r10, rdx
je 0x1400194e9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400194dd
xor al, 1
cmp r8, rdx
jne 0x140019490
jmp 0x1400194dd
xor eax, eax
jmp 0x1400194dd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14001f8bb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001b8d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001bea0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001be20
int3

Function at 0x14001aa38
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140001450
test eax, eax
js 0x1400019b4
mov ecx, dword [rbx + 0xf0]
lea eax, [rcx*4]
movsxd r9, eax
test eax, eax
jle 0x1400017e3
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop dword [rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140001790
mov ecx, dword [rbx + 0xf0]
mov r11d, 1
cmp ecx, r11d
jle 0x1400019b2
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x1499f0]
movzx eax, byte [rdi + rax*4 + 0x14a5f0]
xor r8d, dword [rdi + rax*4 + 0x14a1f0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x1495f0]
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x149df0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x14a5f0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x149df0]
movzx eax, byte [rdi + rcx*4 + 0x14a5f0]
xor r8d, dword [rdi + rax*4 + 0x1499f0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x14a1f0]
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1495f0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x14a5f0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x149df0]
movzx eax, byte [rdi + rcx*4 + 0x14a5f0]
xor r8d, dword [rdi + rax*4 + 0x1499f0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x14a1f0]
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1495f0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x14a5f0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x149df0]
movzx eax, byte [rdi + rcx*4 + 0x14a5f0]
xor r8d, dword [rdi + rax*4 + 0x1499f0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x14a1f0]
movzx ecx, byte [rdi + rax*4 + 0x14a5f0]
xor r8d, dword [rdi + rcx*4 + 0x1495f0]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140001810
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret