joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007840
Capabilities:
Encrypt data using blowfish

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbx, rcx
lea r11, [0x14001c070]
mov rax, rcx
lea r13, [rsp + 0x40]
movzx ecx, r9b
xor edi, edi
mov r9d, ecx
mov r12, r8
and r9d, 1
and ecx, 2
shl ecx, 0xf
mov r15, rdx
sub r15, r11
mov dword [rsp + 0x58], ecx
mov r8d, edi
lea ebp, [rdi + 0x12]
lea r13, [r13 + r9*4]
sub r12, r11
nop word [rax + rax]
movzx r9d, byte [rax]
mov r14d, r8d
movsx r8d, r9b
test r9b, r9b
jne 0x1400078b5
mov rax, rbx
jmp 0x1400078b8
inc rax
movzx edx, byte [rax]
shl r9d, 8
shl r8d, 8
or r9d, edx
movsx ecx, dl
or r8d, ecx
mov esi, r8d
test dl, dl
jne 0x1400078d8
mov rax, rbx
jmp 0x1400078db
inc rax
movzx edx, byte [rax]
shl r8d, 8
shl r9d, 8
movsx ecx, dl
or r9d, edx
or r8d, ecx
mov r10d, r8d
or r8d, esi
test dl, dl
jne 0x1400078fe
mov rax, rbx
jmp 0x140007901
inc rax
movzx edx, byte [rax]
shl r10d, 8
shl r9d, 8
or r9d, edx
movsx ecx, dl
or r10d, ecx
mov dword [rsp + 0x40], r9d
or r8d, r10d
mov dword [rsp + 0x44], r10d
and r8d, 0x80
or r8d, r14d
test dl, dl
jne 0x140007935
mov rax, rbx
jmp 0x140007938
inc rax
mov ecx, dword [r13]
xor r10d, r9d
mov dword [r15 + r11], ecx
or edi, r10d
xor ecx, dword [r11]
mov dword [r12 + r11], ecx
add r11, 4
sub rbp, 1
jne 0x1400078a0
mov rbx, qword [rsp + 0x48]
mov eax, edi
shr eax, 0x10
or eax, edi
shl r8d, 9
movzx ecx, ax
mov rax, qword [rsp + 0x50]
add ecx, 0xffff
not ecx
and ecx, r8d
and ecx, dword [rsp + 0x58]
xor dword [rax], ecx
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007de0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea eax, [r8 - 2]
xor r10d, r10d
cdqe
lea rsi, [0x140013240]
mov rbx, rdx
mov rdi, rcx
mov r9, rcx
test rax, rax
jle 0x140007e9e
lea r10, [rax - 1]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r11, [rdx + 1]
mul r10
shr rdx, 1
inc rdx
lea r10d, [rdx + rdx*2]
movzx eax, byte [r11 - 1]
lea r11, [r11 + 3]
shr rax, 2
movzx eax, byte [rax + rsi]
mov byte [r9], al
movzx ecx, byte [r11 - 4]
movzx eax, byte [r11 - 3]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 1], al
movzx ecx, byte [r11 - 3]
movzx eax, byte [r11 - 2]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 2], al
movzx eax, byte [r11 - 2]
and eax, 0x3f
movzx eax, byte [rax + rsi]
mov byte [r9 + 3], al
add r9, 4
sub rdx, 1
jne 0x140007e30
cmp r10d, r8d
jge 0x140007f02
movsxd rdx, r10d
movzx eax, byte [rdx + rbx]
shr rax, 2
movzx eax, byte [rax + rsi]
mov byte [r9], al
lea eax, [r8 - 1]
movzx ecx, byte [rdx + rbx]
and ecx, 3
shl rcx, 4
cmp r10d, eax
jne 0x140007ed5
movzx eax, byte [rcx + rsi]
mov cl, 0x3d
mov byte [r9 + 1], al
jmp 0x140007ef5
movzx eax, byte [rdx + rbx + 1]
shr rax, 4
or rax, rcx
movzx eax, byte [rax + rsi]
mov byte [r9 + 1], al
movzx eax, byte [rdx + rbx + 1]
and eax, 0xf
movzx ecx, byte [rsi + rax*4]
mov byte [r9 + 2], cl
mov byte [r9 + 3], 0x3d
add r9, 4
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov byte [r9], 0
sub r9d, edi
mov rdi, qword [rsp + 0x18]
lea eax, [r9 + 1]
ret
Function at 0x140009300
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14001c228]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [r8 + 0x48], 0
mov rdi, r8
mov esi, edx
mov rbx, rcx
je 0x140009335
mov rcx, r8
call fcn.14000ad90
test eax, eax
jne 0x140009387
mov rcx, qword [rdi + 8]
cmp esi, 0x100
jne 0x14000939f
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140009367
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140009385
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
jmp 0x140009387
mov rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x38], rax
mov dword [rbx + 8], pe_nt_image_headers64
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140010690
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140009350
mov rax, qword [rdi + 0x38]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.140009860
cmp dword [rbx + 0x10], 1
jne 0x1400093fd
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1400093fd
cmp eax, 2
jne 0x1400093f1
mov dword [rbx + 0x10], 3
jmp 0x1400093fd
cmp eax, 3
jne 0x1400093fd
mov dword [rbx + 0x10], 5
mov rax, qword [rdi]
mov ecx, dword [rsp + 0x64]
mov qword [rbx], rax
mov rax, qword [rdi + 0x38]
or dword [rbx + 8], 0x7000
mov qword [rbx + 0x60], rax
mov eax, dword [rsp + 0x68]
shl rcx, 0x20
or rcx, rax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x30], eax
mov eax, dword [rsp + 0x60]
mov dword [rbx + 0x34], eax
mov eax, dword [rbx + 8]
not eax
mov qword [rbx + 0x28], rcx
and esi, eax
test esi, 0xfdffffff
je 0x140009385
mov rdx, qword [rdi + 8]
xor r9d, r9d
mov r8d, esi
mov rcx, rbx
call fcn.140009a50
jmp 0x140009387
Function at 0x14000ad90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [rcx + 0x48], 0
mov rbx, rcx
je 0x14000ae74
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x38], r14
xor r14d, r14d
cmp dword [rcx + 0x78], 1
mov ebp, r14d
mov dword [rsp + 0x50], r14d
jne 0x14000ae62
mov qword [rsp + 0x68], rdi
mov rdi, qword [rcx + 0x60]
test rdi, rdi
je 0x14000ae5d
mov qword [rsp + 0x60], rsi
mov rsi, qword [rcx + 0x58]
mov qword [rsp + 0x30], r15
mov r15d, 0xffffffff
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], r14
cmp rdi, r15
mov rdx, rsi
cmova r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ae2a
mov eax, dword [rsp + 0x50]
add qword [rbx + 0x80], rax
add rsi, rax
sub rdi, rax
jne 0x14000adf0
jmp 0x14000ae4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000ae40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ebp, [rax + 0xafc80]
mov ecx, dword [rsp + 0x50]
add qword [rbx + 0x80], rcx
test ebp, ebp
jne 0x14000ae53
mov qword [rbx + 0x60], r14
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x38]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x14000c4d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rcx
cmp dword [0x14001c380], 0x32
mov eax, ebx
mov ecx, 0x40
mov rdi, rdx
cmovge eax, ecx
xor r8d, r8d
or eax, 0xf0000000
lea r9d, [rbx + 1]
xor edx, edx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000c541
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000c578
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [rax + 0xafc80]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14000c56b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000c56b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [rax + 0xafc80]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c710
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14000c748
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14000c741
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000c741
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
mov eax, 0x4e3b
add rsp, 0x28
ret
Function at 0x14000c9a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x14001c380]
xor edi, edi
mov rsi, rcx
test eax, eax
jne 0x14000cafb
lea rcx, [0x14001c3c0]
mov dword [0x14001c3c0], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x14001c3d0], 2
jne 0x14000caf0
movzx eax, byte [0x14001c3d4]
mov qword [rsp + 0x30], rbx
lea rbx, [0x14001c3d4]
test al, al
je 0x14000ca46
nop dword [rax + rax]
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
jne 0x14000ca46
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x14000ca00
mov ecx, dword [0x14001c384]
mov eax, dword [0x14001c3c4]
mov rbx, qword [rsp + 0x30]
cmp eax, 3
jbe 0x14000caf0
cmp eax, 4
jne 0x14000ca8f
cmp ecx, 2
jae 0x14000ca5e
mov eax, 0x28
jmp 0x14000caf5
cmp byte [rbx], dil
je 0x14000ca18
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
mov dword [0x14001c384], eax
jmp 0x14000ca1e
ja 0x14000ca6a
mov eax, 0x2a
jmp 0x14000caf5
cmp ecx, 3
ja 0x14000ca76
mov eax, 0x2b
jmp 0x14000caf5
cmp ecx, 4
ja 0x14000ca82
mov eax, 0x2c
jmp 0x14000caf5
cmp ecx, 5
mov eax, edi
seta al
add eax, 0x2d
jmp 0x14000caf5
cmp eax, 5
jne 0x14000cad6
mov eax, dword [0x14001c3c8]
test eax, eax
jne 0x14000cab4
test ecx, ecx
jne 0x14000caa7
lea eax, [rcx + 0x32]
jmp 0x14000caf5
cmp ecx, 1
mov eax, edi
setne al
add eax, 0x33
jmp 0x14000caf5
cmp eax, 2
jne 0x14000cac0
mov eax, 0x46
jmp 0x14000caf5
cmp ecx, 1
jae 0x14000cacc
mov eax, 0x3c
jmp 0x14000caf5
mov eax, edi
setne al
add eax, 0x3d
jmp 0x14000caf5
cmp eax, 6
jne 0x14000cac5
cmp dword [0x14001c3c8], edi
mov eax, 0x5a
mov ecx, 0x50
cmove eax, ecx
jmp 0x14000caf5
mov eax, 1
mov dword [0x14001c380], eax
mov dword [rsi], eax
mov eax, 0x4e2e
cmp dword [0x14001c380], 1
mov rsi, qword [rsp + 0x38]
cmovl edi, eax
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000f030
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x6030
call fcn.140010be0
sub rsp, rax
mov rax, qword [0x14001c228]
xor rax, rsp
mov qword [rsp + 0x6020], rax
mov edi, edx
mov rbx, rcx
lea rdx, [rsp + 0x2020]
mov ecx, 0x2000
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14000f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000f0ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
jmp 0x14000f0f1
lea r8, [rsp + 0x2020]
mov edx, 0x2000
lea rcx, [rsp + 0x20]
call fcn.14000a9e0
test eax, eax
jne 0x14000f0f1
test dil, 0x10
jne 0x14000f0df
movzx ecx, byte [rsp + 0x20]
lea rax, [rsp + 0x20]
mov qword [rbx], rax
test cl, cl
je 0x14000f0df
lea rax, [rsp + 0x20]
cmp cl, 0x5c
jne 0x14000f0d2
mov byte [rax], 0x2f
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
movzx ecx, byte [rax]
test cl, cl
jne 0x14000f0c7
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140009130
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x6020]
xor rcx, rsp
call fcn.140010690
lea r11, [rsp + 0x6030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f530
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push r14
mov eax, 0x4070
call fcn.140010be0
sub rsp, rax
mov rax, qword [0x14001c228]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x28], 0x2000
mov rax, rbx
mov rbp, r8
mov r10, rdx
mov r14, rcx
inc rax
cmp byte [rdx + rax], 0
jne 0x14000f570
inc rax
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.14000cd30
cmp eax, 0x11178
jne 0x14000f5a9
mov eax, 0x26
jmp 0x14000f687
test eax, eax
jne 0x14000f687
xor ecx, ecx
mov qword [rsp + 0x4068], rsi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14000f5ed
mov eax, 2
jmp 0x14000f67f
mov rcx, rbp
test esi, esi
jne 0x14000f605
lea rdx, [0x1400133f8]
call fcn.140009130
mov qword [r14], rax
jmp 0x14000f67d
mov rdx, rsi
mov qword [rsp + 0x4060], rdi
add rdx, rdx
call fcn.140008540
mov r8d, esi
lea rcx, [rsp + 0x50]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax]
cmp word [rdi + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x14000f630
lea rax, [rbx + 1]
mov rcx, rbp
lea rdx, [rax + rax*2]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
call fcn.140008540
lea r9, [rsp + 0x38]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov rbx, rax
call fcn.14000cbb0
mov rdi, qword [rsp + 0x4060]
test eax, eax
jne 0x14000f67f
mov qword [r14], rbx
xor eax, eax
mov rsi, qword [rsp + 0x4068]
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.140010690
add rsp, 0x4070
pop r14
pop rbp
pop rbx
ret
Function at 0x140001bd0
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 0x140001bf8
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 0x140001c1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001c20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001c79
test ecx, ecx
jle 0x140001c59
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 0x140001c79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001c79
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 0x140001ca0
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 0x140001cc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001cd8
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 0x140001cf4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001cf6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001d32
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 0x140001dce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001d6d
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 0x140001dae
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 0x140001dce
cmp rbx, rax
ja 0x140001d80
test rbx, rbx
je 0x140001dce
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 0x140002230
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14007a700]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000225d
xor eax, eax
jmp 0x1400023c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002297
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002297
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 0x1400023c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400023bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400022da
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 0x140002305
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 0x1400023c1
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 0x140002374
sub eax, 1
je 0x140002374
cmp eax, 2
jne 0x1400023bc
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 0x1400023c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400023a2
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 0x1400023bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400023c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005fc70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002890
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14007a700]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002963
cmp byte [rcx + 0x71], 0
je 0x140002963
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000295f
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 0x140002924
sub eax, 1
je 0x140002928
cmp eax, 2
jne 0x14000295f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005fc70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002956
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 0x14000295f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000290c
xor al, al
jmp 0x14000290c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005fc70
add rsp, 0x60
pop rbx
ret
Function at 0x14000dce0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000ddc2
call fcn.140023d70
test al, al
jne 0x14000ddc2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14000dd12
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14002d830
test rax, rax
je 0x14000dd57
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14002d830
mov rsi, rax
test rax, rax
je 0x14000dd57
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14000dd8b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140020a00
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14000dd70
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14001a570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14001a63b
cmp qword [rcx + 0x268], 0
je 0x14001a5ee
mov qword [rsp + 0x40], rbx
call fcn.1400083f0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140008760
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.140008760
mov rbx, qword [rsp + 0x40]
jmp 0x14001a63b
mov ecx, esi
test edx, edx
je 0x14001a5fe
sub ecx, 1
je 0x14001a5fe
cmp ecx, 1
jne 0x14001a63b
mov r9, qword [rdi + 0x1d8]
lea rax, [0x140065320]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14001cc20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret