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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2b0
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 0x410
call fcn.1400bb900
mov rsi, rax
mov word [rsp + 0x2a0], 0x16
mov word [rsp + 0x2a2], 0x43
mov word [rsp + 0x2a4], 0x46
mov word [rsp + 0x2a6], 0x6a
mov word [rsp + 0x2a8], 0x1d
mov word [rsp + 0x2aa], 0x16
mov word [rsp + 0x2ac], 0x13
mov word [rsp + 0x2ae], 0x3a
lea rcx, [rsp + 0x2a0]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0xffffffffa0a0a0a1
shr rax, 0x20
add eax, edx
sar eax, 5
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x33
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x33]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 8
jne 0x1400061f9
mov r9, rdi
lea r8, [rsp + 0x2a0]
mov edx, 0x208
mov rcx, rsi
call sub.msvcrt.dll_swprintf_s
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov rax, qword [0x140152f10]
call qword [rax + 0x180]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400063b5
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x7c]
mov rbp, qword [0x140152f10]
jmp 0x140006366
mov qword [rsp + 0x30], r12
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rdi, [rax + rax]
mov r14, rdi
sar r14, 1
mov qword [rsp + 0x28], r14
cmp rdi, 0xe
ja 0x1400062f8
mov rcx, qword [rsp + 0x30]
cmp r14, 1
jne 0x14000631e
movzx eax, word [rsp + 0x7c]
mov word [rcx], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], 0
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
je 0x140006350
lea rax, [rcx + 0x10]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x30]
mov r9d, 0
mov rax, qword [rsp + 0x38]
lea r8, [rdx + rax*2]
call fcn.1400aa7c0
jmp 0x140006330
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r8d, 0
call fcn.1400ac5b0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
jmp 0x1400062a4
test r14, r14
je 0x1400062b7
mov r8, rdi
mov rdx, r13
call sub.msvcrt.dll_memcpy
jmp 0x1400062b7
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140006371
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1400bb8f0
jmp 0x140006371
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.1400a57b0
jmp 0x140006335
test eax, eax
je 0x140006381
test byte [rsp + 0x50], 0x10
je 0x140006282
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rbp + 0x188]
jmp 0x140006362
mov rcx, rsi
mov rax, qword [0x140152f10]
call qword [rax + 0x190]
jmp 0x1400063b5
mov rax, rbx
add rsp, 0x2b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000c4f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov r8, rdx
mov rax, rdx
mov rdx, rcx
add r8, 0x10
movzx r9d, byte [rax]
mov byte [rcx], r9b
movzx r9d, byte [rax + 1]
mov byte [rcx + 1], r9b
movzx r9d, byte [rax + 2]
mov byte [rcx + 2], r9b
movzx r9d, byte [rax + 3]
mov byte [rcx + 3], r9b
add rax, 4
add rcx, 4
cmp rax, r8
jne 0x14000c500
mov r11d, 4
lea rbx, [0x14014d680]
lea rsi, [0x14014d560]
jmp 0x14000c570
xor r9b, byte [rax]
mov byte [rax + 0x10], r9b
xor r8b, byte [rax + 1]
mov byte [rax + 0x11], r8b
xor r10b, byte [rax + 2]
mov byte [rax + 0x12], r10b
xor cl, byte [rax + 3]
mov byte [rax + 0x13], cl
add r11d, 1
add rdx, 4
cmp r11d, 0x2c
je 0x14000c5c2
mov rax, rdx
movzx r9d, byte [rdx + 0xc]
movzx r8d, byte [rdx + 0xd]
movzx r10d, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
test r11b, 3
jne 0x14000c545
movzx r8d, r8b
movzx edi, byte [rbx + r8]
movzx r10d, r10b
movzx r8d, byte [rbx + r10]
movzx ecx, cl
movzx r10d, byte [rbx + rcx]
movzx r9d, r9b
movzx ecx, byte [rbx + r9]
mov r9d, r11d
shr r9d, 2
mov r9d, r9d
xor dil, byte [rsi + r9]
mov r9d, edi
jmp 0x14000c545
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000c5c6
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
and ecx, 0xff0
add r8, rcx
lea rcx, [rdx + 4]
lea r10, [rdx + 0x14]
lea rax, [rcx - 4]
mov rdx, r8
movzx r9d, byte [rdx]
xor byte [rax], r9b
add rax, 1
add rdx, 1
cmp rax, rcx
jne 0x14000c5e2
add r8, 4
add rcx, 4
cmp rcx, r10
jne 0x14000c5db
ret

Function at 0x14000c604
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x14014d680]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c617
add rdx, 1
cmp rdx, r9
jne 0x14000c613
ret

Function at 0x14000c645
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x14014d580]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c658
add rdx, 1
cmp rdx, r9
jne 0x14000c654
ret
Function at 0x1400176c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14017a474]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140017870
mov rax, qword [0x14017a478]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001770c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140017797
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400176f0
mov rcx, r12
call fcn.140018170
mov rbp, rax
test rax, rax
je 0x1400178cd
mov rax, qword [0x14017a478]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400182a0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14017a478]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400178b2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140017790
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017820
add dword [0x14017a474], 1
cmp ebx, 8
jae 0x1400177c8
test bl, 4
jne 0x140017880
test ebx, ebx
je 0x1400177b9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400178a0
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 0x1400177b9
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 0x1400177fa
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 [0x14017a478]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017790
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017650
xor edi, edi
jmp 0x140017717
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400177b9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400177b9
mov rax, qword [0x14017a478]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017650
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017650
nop
nop dword [rax]
Function at 0x140017de0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14017a4e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14017a4c0]
test rbx, rbx
je 0x140017e34
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 0x140017e2b
test r12, r12
je 0x140017e2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017e10
lea rcx, [0x14017a4e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140018170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140152d80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400181e9
mov rcx, r10
call fcn.140018040
test eax, eax
je 0x1400181e9
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 0x1400181e6
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 0x1400181dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400181e9
add r8, 0x28
cmp r8, r9
jne 0x1400181c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400184e0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14017a4c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140017e70
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140017ec3
mov dword [rax], edi
lea rcx, [0x14017a4e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14017a4c0]
lea rcx, [0x14017a4e0]
mov qword [0x14017a4c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x140017e66
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140018510
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023bd0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023be0
xor eax, eax
ret
jmp 0x140017e50

Function at 0x140018550
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x140018590
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400185a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140005e60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140005e88
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140005eae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005eb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005f09
test ecx, ecx
jle 0x140005ee9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005f09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005f09
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140005f30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005f52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005f68
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005f84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005f86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005fc2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000605e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005ffd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000603e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000605e
cmp rbx, rax
ja 0x140006010
test rbx, rbx
je 0x14000605e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400064d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400af0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400064fd
xor eax, eax
jmp 0x140006669
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006537
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006537
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140006669
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000665c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000657a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400065a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140006661
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006614
sub eax, 1
je 0x140006614
cmp eax, 2
jne 0x14000665c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140006661
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006642
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000665c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140006661
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140089a50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006920
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400af0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400069f3
cmp byte [rcx + 0x71], 0
je 0x1400069f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400069ef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400069b4
sub eax, 1
je 0x1400069b8
cmp eax, 2
jne 0x1400069ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140089a50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400069e6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400069ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000699c
xor al, al
jmp 0x14000699c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140089a50
add rsp, 0x60
pop rbx
ret
Function at 0x1400090a0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400af0c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400890b4
lea rcx, str.C:Garf
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140002650
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
call fcn.1400891f0
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140009165
lea rcx, str.attrib_h__C:Garf___NUL_2_NUL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140009153
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000914e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000914e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089ab4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140089a50
add rsp, 0x68
ret
shr rdx, 0x20
lea r8, [rsp + 0x30]
call fcn.140007b00
int3

Function at 0x140009630
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400af0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.1400890b4
lea rcx, str.C:Garf
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140002650
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
call fcn.14008969c
mov rdx, rax
shr rdx, 0x20
movzx ecx, al
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], edx
lea rax, [0x1400af138]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
cmp edx, 0x91
jne 0x1400096cb
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140008210
cmp dword [rsp + 0x20], 0
jne 0x140009744
lea rcx, str.error.log
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, str.FPT.log
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140009732
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000972d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000972d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089ab4
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140089a50
add rsp, 0x68
ret
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x20]
lea rcx, str.remove_all
call fcn.1400030c0
int3
Function at 0x140009e40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.14008a400
sub rsp, rax
mov rax, qword [0x1400af0c0]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x24], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x24], 1
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 1
nop dword [rax]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x34], edx
inc rcx
cmp rcx, 0x270
jb 0x140009ec0
mov dword [rsp + 0x30], 0x270
test ebx, ebx
jle 0x140009f93
mov rsi, rbx
movzx ebx, byte [rsp + 0x20]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400136b0
mov ecx, eax
imul r9, rcx, 0x3e
cmp r9d, 3
ja 0x140009f2c
lea rcx, [rsp + 0x30]
call fcn.1400136b0
mov ecx, eax
imul r9, rcx, 0x3e
cmp r9d, 4
jb 0x140009f16
shr r9, 0x20
cmp r9d, 0x1a
jge 0x140009f3c
add r9b, 0x61
jmp 0x140009f4c
cmp r9d, 0x34
jge 0x140009f48
add r9b, 0x27
jmp 0x140009f4c
sub r9b, 4
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140009f78
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140009f6d
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140009f89
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140004790
sub rsi, 1
jne 0x140009f00
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140089a50
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000d390
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400af0c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 0xf
mov rdi, rcx
jbe 0x14000d3b6
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000d436
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000d431
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d464
mov rcx, r8
call fcn.140089ab4
mov qword [rdi + 0x10], 0
mov rax, rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140089a50
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3