joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2acf707b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2ad0295e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2acf707d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2acf707d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2acf707d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2acf70825
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2acf7081c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2acf707d0
add rax, 0x28
cmp rax, r9
jne 0x2acf70808
xor eax, eax
ret

Function at 0x2acf70830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2ad0295e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2acf70850
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2acf70858
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2acf70850
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2acf708e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2ad0295e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2acf70900
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2acf70908
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140003300
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 0x140003321
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 fcn.140020e30

Function at 0x14000a5a0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rbx, rcx
lea rcx, [0x140045040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
jle 0x14000a627
lea rcx, [0x140022200]
xor esi, esi
lea r13, [rsp + 0x20]
call fcn.14001bf90
mov r12, qword [fcn.140021410]
mov rbp, rax
jmp 0x14000a5f5
add rsi, 1
add rbx, 0x10
cmp rdi, rsi
je 0x14000a62e
mov ecx, 1
call r12
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r13
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
call fcn.14000a4b0
cmp byte [rbp], 0
je 0x14000a5e8
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [fcn.140021410]
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x1400232f1]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
call fcn.140020e30
lea rcx, [0x140045040]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000f9a0
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
lea rbx, [rdx + 3]
mov rsi, rcx
mov rdi, rdx
cmovns rbx, rdx
mov rcx, qword [0x14003fe10]
call fcn.14001bf90
and rbx, 0xfffffffffffffffc
movzx r10d, byte [rax]
test rbx, rbx
jle 0x14000fad4
test r10b, r10b
jne 0x14000fab9
mov rcx, rsi
lea r11, [rbx - 1]
lea r9, [rsi + rbx]
xor r8d, r8d
nop
imul edx, dword [rcx], 0xcc9e2d51
add rcx, 4
mov eax, edx
rol eax, 0xf
imul edx, eax, 0x1b873593
xor edx, r8d
rol edx, 0xd
lea r8d, [rdx + rdx*4 - 0x19ab949c]
cmp r9, rcx
jne 0x14000f9f0
mov rax, rdi
shr r11, 2
sar rax, 0x3f
lea rcx, [r11*4 + 4]
shr rax, 0x3e
lea rdx, [rdi + rax]
and edx, 3
sub rdx, rax
test rdx, rdx
jle 0x14000fad0
lea r9, [rdx - 1]
lea rax, [rsi + r9]
movzx eax, byte [rax + rcx]
test r9, r9
je 0x14000fa74
lea r9, [rsi + rcx]
shl eax, 8
sub rdx, 2
movzx r9d, byte [rdx + r9]
or eax, r9d
test rdx, rdx
je 0x14000fa74
movzx edx, byte [rsi + rcx]
shl eax, 8
or eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
test r10b, r10b
jne 0x14000fab9
mov edx, r8d
imul r8d, eax, 0x1b873593
xor edx, edi
xor edx, r8d
mov eax, edx
shr eax, 0x10
xor edx, eax
imul eax, edx, 0x85ebca6b
mov r12d, eax
shr r12d, 0xd
xor r12d, eax
imul eax, r12d, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
xor eax, eax
jmp 0x14000fa82
mov rax, rdi
sar rax, 0x3f
shr rax, 0x3e
lea rdx, [rdi + rax]
and edx, 3
sub rdx, rax
test rdx, rdx
jle 0x14000faf8
xor ecx, ecx
xor r8d, r8d
jmp 0x14000fa42
xor r8d, r8d
xor eax, eax
jmp 0x14000fa7d
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
jmp 0x14000f9a0
Function at 0x14000fb10
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
lea rbx, [rdx + 3]
mov rsi, rcx
mov rdi, rdx
cmovns rbx, rdx
mov rcx, qword [0x14003fe10]
call fcn.14001bf90
and rbx, 0xfffffffffffffffc
movzx r10d, byte [rax]
test rbx, rbx
jle 0x14000fad4
test r10b, r10b
jne 0x14000fab9
mov rcx, rsi
lea r11, [rbx - 1]
lea r9, [rsi + rbx]
xor r8d, r8d
nop
imul edx, dword [rcx], 0xcc9e2d51
add rcx, 4
mov eax, edx
rol eax, 0xf
imul edx, eax, 0x1b873593
xor edx, r8d
rol edx, 0xd
lea r8d, [rdx + rdx*4 - 0x19ab949c]
cmp r9, rcx
jne 0x14000f9f0
mov rax, rdi
shr r11, 2
sar rax, 0x3f
lea rcx, [r11*4 + 4]
shr rax, 0x3e
lea rdx, [rdi + rax]
and edx, 3
sub rdx, rax
test rdx, rdx
jle 0x14000fad0
lea r9, [rdx - 1]
lea rax, [rsi + r9]
movzx eax, byte [rax + rcx]
test r9, r9
je 0x14000fa74
lea r9, [rsi + rcx]
shl eax, 8
sub rdx, 2
movzx r9d, byte [rdx + r9]
or eax, r9d
test rdx, rdx
je 0x14000fa74
movzx edx, byte [rsi + rcx]
shl eax, 8
or eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
test r10b, r10b
jne 0x14000fab9
mov edx, r8d
imul r8d, eax, 0x1b873593
xor edx, edi
xor edx, r8d
mov eax, edx
shr eax, 0x10
xor edx, eax
imul eax, edx, 0x85ebca6b
mov r12d, eax
shr r12d, 0xd
xor r12d, eax
imul eax, r12d, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
xor eax, eax
jmp 0x14000fa82
mov rax, rdi
sar rax, 0x3f
shr rax, 0x3e
lea rdx, [rdi + rax]
and edx, 3
sub rdx, rax
test rdx, rdx
jle 0x14000faf8
xor ecx, ecx
xor r8d, r8d
jmp 0x14000fa42
xor r8d, r8d
xor eax, eax
jmp 0x14000fa7d
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
jmp 0x14000f9a0
Function at 0x14001b030
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.140021410
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.140021410
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 0x14001b0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140045564]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14001b250
mov rax, qword [0x140045568]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001b0ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14001b177
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14001b0d0
mov rcx, r12
call fcn.14001bb50
mov rbp, rax
test rax, rax
je 0x14001b2ad
mov rax, qword [0x140045568]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14001bc80
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140045568]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001b292
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001b170
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001b200
add dword [0x140045564], 1
cmp ebx, 8
jae 0x14001b1a8
test bl, 4
jne 0x14001b260
test ebx, ebx
je 0x14001b199
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14001b280
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 0x14001b199
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 0x14001b1da
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 [0x140045568]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001b170
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001b030
xor edi, edi
jmp 0x14001b0f7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14001b199
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14001b199
mov rax, qword [0x140045568]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14001b030
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14001b030
nop
nop dword [rax]
Function at 0x14001b7c0
Capabilities:
Get thread local storage value

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

Function at 0x14001bb50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14003fe20]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14001bbc9
mov rcx, r10
call fcn.14001ba20
test eax, eax
je 0x14001bbc9
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 0x14001bbc6
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 0x14001bbbd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14001bbc9
add r8, 0x28
cmp r8, r9
jne 0x14001bba8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14001bf30
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x140045640], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140045648], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14001bf80
lea rdx, [0x14001be40]
mov dword [0x140045638], eax
call fcn.140021660
test eax, eax
jne 0x14001bf88
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001bf77
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14001bf90
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 [0x14003fdb0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x14001bfd0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14001c038
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 0x14001c050
mov r13d, dword [0x140045638]
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 0x14001c0c8
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x14001c110
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x14001bfb9
mov rcx, r12
call fcn.14001be90
mov qword [r13 + rsi*8 + 8], rax
jmp 0x14001bfb9
call fcn.14001be90
mov qword [r12 + 0x10], rax
jmp 0x14001bfb9
mov r10d, dword [r13]
test r10d, r10d
je 0x14001c172
mov r9d, dword [0x1400224a0]
test r9d, r9d
je 0x14001c1a0
lock add dword [0x140045640], 1
jne 0x14001c1d4
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x14001c180
mov eax, dword [r13]
test eax, eax
je 0x14001bfd9
mov eax, 0xffffffff
lock xadd dword [0x140045640], eax
sub eax, 1
js 0x14001bfd9
mov rcx, qword [0x140045648]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14001bfd9
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14001c1fb
mov qword [rax], rbx
mov ecx, dword [0x140045638]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001c017
call rdi
jmp 0x14001c017
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 0x14001c1fb
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 0x14001c0e9
call fcn.14001bf30
mov dword [0x1400224a0], 1
mov edx, dword [r13]
test edx, edx
jne 0x14001c06d
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x14001bfd9
mov rax, qword [0x140045630]
lea rsi, [rax + 1]
mov qword [0x140045630], rsi
mov qword [r12 + 0x10], rsi
jmp 0x14001c089
lock add dword [0x1400224a4], 1
je 0x14001c157
mov r8d, dword [0x1400224a0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1400224a0]
test r8d, r8d
jne 0x14001c166
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001c1c8
jmp 0x14001c166
mov rcx, qword [0x140045648]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001c07b
lock sub dword [0x140045640], 1
jmp 0x14001c07b
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14001c220
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001c22a
mov qword [rcx + 8], r8
test r9, r9
je 0x14001c234
cmp qword [rcx], rdx
je 0x14001c238
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140003690
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13d0
call fcn.14000abf0
sub rsp, rax
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov ebx, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x34], ecx
inc rbx
cmp rbx, 0x270
jb 0x140003701
mov dword [rsp + 0x30], 0x270
mov ebx, 0x10
mov esi, 0x80000000
lea rbp, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.140009260
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 3
ja 0x14000376a
lea rcx, [rsp + 0x30]
call fcn.140009260
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x140003755
shr rax, 0x20
sub rax, rsi
xor rax, 0xffffffff80000000
movzx r9d, byte [rax + rbp]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400037a8
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14000379d
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400037b0
mov rcx, rdi
call fcn.140008320
sub rbx, 1
jne 0x140003740
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140009c80
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004900
Capabilities:
Get common file path
Terminate process

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140004970
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_desktop_path.
call fcn.1400074a0
lea rdx, [0x140007680]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
inc r8
cmp byte [rax + r8], 0
jne 0x140004992
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140008070
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140009c80
add rsp, 0x160
pop rbx
ret

Function at 0x140005eb0
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 0x140005ed8
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 0x140005efe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005f00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005f59
test ecx, ecx
jle 0x140005f39
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 0x140005f59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005f59
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 0x140005f80
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 0x140005fa2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005fb8
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 0x140005fd4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005fd6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006012
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 0x1400060ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000604d
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 0x14000608e
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 0x1400060ae
cmp rbx, rax
ja 0x140006060
test rbx, rbx
je 0x1400060ae
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 0x140006510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000653d
xor eax, eax
jmp 0x1400066a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006577
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006577
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 0x1400066a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000669c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400065ba
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 0x1400065e5
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 0x1400066a1
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 0x140006654
sub eax, 1
je 0x140006654
cmp eax, 2
jne 0x14000669c
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 0x1400066a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006682
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 0x14000669c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400066a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140009c80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret