joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001160
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, 0x4268
jae 0x14000119f
nop
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, 0x4268
jb 0x140001190
mov r10d, dword [0x140003114]
lea r11, str..rdata.zzzssxdbg
mov ecx, dword [0x140003188]
xor r15d, r15d
mov r8d, r15d
test r10d, r10d
jle 0x1400011ee
lea r9, section..data
nop word [rax + rax]
mov eax, r8d
lea r9, [r9 + 1]
cdq
inc r8d
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r9 - 1], al
cmp r8d, r10d
jl 0x1400011d0
mov r10d, dword [0x140003128]
mov r8d, r15d
test r10d, r10d
jle 0x14000122e
lea r9, [0x140003118]
nop dword [rax]
nop dword [rax + rax]
mov eax, r8d
lea r9, [r9 + 1]
cdq
inc r8d
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r9 - 1], al
cmp r8d, r10d
jl 0x140001210
mov r10d, dword [0x14000312c]
mov r9d, r15d
test r10d, r10d
jle 0x14000126e
lea r8, [0x140003130]
nop dword [rax]
nop dword [rax + rax]
mov eax, r9d
lea r8, [r8 + 1]
cdq
inc r9d
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r8 - 1], al
cmp r9d, r10d
jl 0x140001250
mov r10d, dword [0x14000315c]
mov r9d, r15d
test r10d, r10d
jle 0x1400012ae
lea r8, [0x140003148]
nop dword [rax]
nop dword [rax + rax]
mov eax, r9d
lea r8, [r8 + 1]
cdq
inc r9d
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r8 - 1], al
cmp r9d, r10d
jl 0x140001290
mov r10d, dword [0x140003174]
mov r9d, r15d
test r10d, r10d
jle 0x1400012ee
lea r8, [0x140003160]
nop dword [rax]
nop dword [rax + rax]
mov eax, r9d
lea r8, [r8 + 1]
cdq
inc r9d
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r8 - 1], al
cmp r9d, r10d
jl 0x1400012d0
lea rcx, str.KERNEL32.DLL
call fcn.140001000
lea rdx, [0x140003118]
mov rcx, rax
mov rbx, rax
call fcn.140001070
lea rdx, [0x140003130]
mov rcx, rbx
mov rdi, rax
call fcn.140001070
lea rdx, [0x140003148]
mov rcx, rbx
mov rsi, rax
call fcn.140001070
lea rdx, [0x140003160]
mov rcx, rbx
mov rbp, rax
call fcn.140001070
movsxd r8, dword [0x140003114]
xor edx, edx
mov rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r14, rax
call rdi
movsxd r9, dword [0x140003114]
lea r8, section..data
mov rbx, rax
mov rcx, 0xffffffffffffffff
lea rax, [rsp + 0x48]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call rsi
movsxd r8, dword [0x140003114]
lea rax, [rsp + 0x40]
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov dword [rsp + 0x40], r15d
mov rcx, 0xffffffffffffffff
call rbp
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x30], rax
mov r9, rbx
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, 0xffffffffffffffff
call r14
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x180001f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov ebp, dword [0x180020a84]
lea r11d, [rbp - 1]
imul r11d, ebp
cmp dword [rcx + rax + 0x8c], 0
mov r8d, dword [0x180020a88]
je 0x180001fe2
mov eax, dword [rcx + rax + 0x88]
cmp r8d, 0xa
jl 0x180001fa2
mov ebp, r11d
and ebp, 1
je 0x180001fa2
jmp 0x180001fa0
cmp dword [rcx + rax + 0x14], 0
je 0x180001fe2
mov r9d, dword [rcx + rax + 0x18]
test r9d, r9d
je 0x180001fe2
mov r10d, dword [rcx + rax + 0x1c]
cmp dword [0x180020a8c], 0xa
jl 0x180002002
mov esi, dword [0x180020a90]
lea edi, [rsi - 1]
imul edi, esi
and edi, 1
je 0x180002002
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x180001fe0
xor ecx, ecx
cmp r8d, 0xa
jl 0x18000206f
mov eax, r11d
and eax, 1
je 0x18000206f
nop word cs:[rax + rax]
jmp 0x180002000
add r10, rcx
mov r15d, dword [rcx + rax + 0x20]
mov r14d, dword [rcx + rax + 0x24]
add r14, rcx
add r15, rcx
xor edi, edi
nop word [rax + rax]
mov esi, dword [r15]
add rsi, rcx
xor eax, eax
nop dword [rax + rax]
movzx ebx, byte [rdx + rax]
movzx ebp, byte [rsi + rax]
test bl, bl
je 0x180002045
add rax, 1
cmp bl, bpl
je 0x180002030
cmp bl, bpl
je 0x180002064
add edi, 1
add r15, 4
add r14, 2
cmp edi, r9d
jne 0x180002020
xor ecx, ecx
cmp r8d, 0xa
jge 0x180002075
jmp 0x180002082
movzx eax, word [r14]
mov eax, dword [r10 + rax*4]
add rcx, rax
cmp r8d, 0xa
jl 0x180002082
and r11d, 1
je 0x180002082
nop dword [rax + rax]
jmp 0x180002080
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180002090
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x1800020c2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x1800020c2
nop word cs:[rax + rax]
jmp 0x1800020c0
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002198
mov rsi, r10
test r8b, r8b
je 0x1800021b0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002130
test r9b, r9b
je 0x1800021c0
sub rsi, rcx
je 0x180002194
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002190
test ebp, ebp
jne 0x180002190
add rbx, 1
cmp rsi, rbx
jne 0x180002150
jmp 0x180002194
test ebp, ebp
jne 0x18000211c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800021b0
jmp 0x1800021c0
Function at 0x2fc4c4c90
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.2fc4c5d50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c572a
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c570e
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 0x2fc4c5702
cmp qword [rbp - 0x10], 0
je 0x2fc4c5702
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 0x2fc4c56c8
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c572b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5830
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 0x2fc4c5858
mov eax, 0
jmp 0x2fc4c58a6
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 0x2fc4c5881
mov eax, 0
jmp 0x2fc4c58a6
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 0x2fc4c58a1
mov eax, 0
jmp 0x2fc4c58a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c58ac
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 0x2fc4c592a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5921
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 0x2fc4c5921
mov rax, qword [rbp - 8]
jmp 0x2fc4c593f
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 0x2fc4c58f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014fb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014fd0
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014fe3
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001500d
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015021
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015033
xor al, al
jmp 0x140015051
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001504f
xor al, al
jmp 0x140015051
mov al, 1
add rsp, 0x38
ret
Function at 0x1800027d0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002802
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002802
nop word cs:[rax + rax]
jmp 0x180002800
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x1800028d8
mov rsi, r10
test r8b, r8b
je 0x1800028f0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002870
test r9b, r9b
je 0x180002900
sub rsi, rcx
je 0x1800028d4
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800028d0
test ebp, ebp
jne 0x1800028d0
add rbx, 1
cmp rsi, rbx
jne 0x180002890
jmp 0x1800028d4
test ebp, ebp
jne 0x18000285c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800028f0
jmp 0x180002900
Function at 0x140006978
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400069fc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140009520]
cmp byte [rcx + rax], 0
je 0x1400069fc
dec r8
sub rdx, 1
jne 0x1400069e2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140007bf8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007c42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007c42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007c42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007c42
cmp dword [rcx + 0x84], 0xe
jbe 0x140007c42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007c44
xor al, al
add rsp, 0x28
ret
Function at 0x140003590
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140003630
jmp 0x14000361f
jae 0x1400036ef
cmp r8, 0x201
jae 0x140003630
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140003687
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000365f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140018e10
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400036b0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000375b
mov r8d, r13d
cmp r12, r8
jne 0x140003610
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000378f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000361f
jmp 0x140003630
cmp r14, r8
jb 0x1400037a9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140005b80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140003744
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400012a0
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000372f
jmp 0x140003744
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5315cbe15b79533f380bbb6685aa5480d5ff4ef5library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140019c70
jmp 0x1400037be
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001a020
ud2
Function at 0x14000a220
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001d0e8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000a258
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000a2b6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000a2e3
test eax, eax
js 0x14000a2c2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000a2d9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140005930
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140001d90
mov ecx, 7
int 0x29
ud2
Function at 0x140016d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140016e1a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x140016e10
cmp r10, r11
jb 0x140016e96
cmp r10, rdx
ja 0x140016ea8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140016e12
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140016df0
jmp 0x140016e77
ja 0x140016e1a
mov r11, r10
cmp rax, r8
jne 0x140016db7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140016e7b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140016e50
mov r8, r10
sub ecx, r9d
jns 0x140016e6e
jmp 0x140016e7d
cmp r10, rdx
je 0x140016e8a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140016e7d
xor al, 1
cmp r8, rdx
jne 0x140016e30
jmp 0x140016e7d
xor eax, eax
jmp 0x140016e7d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140019b50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001a090
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001a020
int3

Function at 0x1400186f4
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x4a], 0
mov rbx, rcx
je 0x140003d66
xor eax, eax
lea r8d, [rax - 0x4c]
xor byte [rdx + rax], r8b
inc rax
cmp rax, 0x49
jb 0x140003d51
mov byte [rdx + 0x4a], 0
call fcn.140006050
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140003d80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003db4
mov ecx, esi
lea eax, [rcx - 0x4c]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003da0
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003de9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140005950
nop
cmp byte [rbx + 0xa], 0
je 0x140003e13
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x4c]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 9
jb 0x140003e00
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003e48
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005950
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140007450
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003e9c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003e96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400625f4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003edc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ed7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ed7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400625f4
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret