joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026c5c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001c8dc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140026cfd
cmp ebx, dword [rsp + 0x30]
je 0x140026cf6
test esi, esi
je 0x140026cf6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140026cd1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140026cde
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140026cbb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140026ce2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140026cff
mov eax, 1
jmp 0x140026cff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140029318
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140020250
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140020250
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029468
cmp rax, 0xffffffffffffffff
je 0x140029468
xor edi, edi
test rbp, rbp
jle 0x140029413
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e284
mov rbx, rax
test rax, rax
jne 0x1400293a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029409
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a770
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d990
cmp eax, 0xffffffff
je 0x1400293e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293b0
mov edx, r15d
mov ecx, r14d
call fcn.14001a770
jmp 0x140029409
cmp byte [rsi + 0x38], dil
je 0x140029400
cmp dword [rsi + 0x34], 5
jne 0x140029400
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029409
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001dc98
jmp 0x14002947c
jns 0x14002947c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140020250
cmp rax, 0xffffffffffffffff
jne 0x140029434
cmp byte [rsi + 0x30], dil
je 0x14002947c
mov edi, dword [rsi + 0x2c]
jmp 0x14002947c
mov ecx, r14d
call fcn.140024708
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002947c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002947c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029475
mov eax, dword [rsi + 0x2c]
jmp 0x14002947a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140020250
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0xe86190
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xe8619d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xe861ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xe86195
lea eax, [rcx + 1]
jmp 0xe861bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xe861ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xe861b4
sub eax, 3
jb 0xe861ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xe8623d
sar eax, 1
movsxd rbp, eax
jb 0xe86224
jmp 0xe861fc
add ebx, ebx
jne 0xe861fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xe86224
inc ecx
add ebx, ebx
jne 0xe8620a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xe86224
call r11
adc ecx, ecx
add ebx, ebx
jne 0xe8621d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xe8620c
add ecx, 2
jmp 0xe86229
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00e86152
jmp 0xe8619d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x475200
mov dl, 0x6f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xe86289
cmp rsi, rcx
jae 0xe86291
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xe86270
cmp al, 0x8f
ja 0xe86270
cmp byte [rsi - 2], 0xf
je 0xe86276
sub al, 0xe8
cmp al, 1
ja 0xe8625a
cmp rsi, rcx
jae 0xe86291
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xe86260
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xe86291
lodsb al, byte [rsi]
jmp 0xe86270
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa79000]
mov eax, dword [rdi]
or eax, eax
je 0xe862ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa89c0c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xe8629e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xe862e8
mov qword [rbx], rax
add rbx, 8
jmp 0xe862be
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xe86332
cmp al, 0xef
ja 0xe8631a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xe862fa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xe86309
mov eax, dword [rdi]
add rdi, 4
jmp 0xe86309
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xe86386
sub rsp, 0xffffffffffffff80
jmp 0x468d20
Function at 0x1409ff108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409ff28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409ff139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ff11f
add dl, dl
jne 0x1409ff146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ff1a6
xor eax, eax
add dl, dl
jne 0x1409ff155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ff25d
add dl, dl
jne 0x1409ff166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ff173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ff180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ff18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409ff19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409ff12e
mov eax, 1
add dl, dl
jne 0x1409ff1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ff1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ff1ab
sub eax, ebx
mov ebx, 1
jne 0x1409ff1fc
mov ecx, 1
add dl, dl
jne 0x1409ff1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409ff1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ff1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ff12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409ff218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409ff225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ff20d
cmp eax, 0x7d00
jae 0x1409ff24b
cmp eax, 0x500
jb 0x1409ff246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ff12e
cmp eax, 0x7f
ja 0x1409ff24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ff12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409ff282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409ff12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000f0e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [rdx + 0x5d], 0
mov r8, rdx
mov rdi, rcx
je 0x14000f1f2
mov qword [rsp + 0x30], rbx
lea r9, [rdx + 2]
mov ebx, 1
mov qword [rsp + 0x38], rsi
sub rbx, rdx
lea rsi, [0x140040d10]
mov r11, rdx
mov r10, 0xfffffffffffffffe
sub r10, rdx
not r11
nop dword [rax]
nop word [rax + rax]
cmp qword [0x140040d28], 0x10
lea rax, [r10 + r9]
mov rcx, rsi
cmovae rcx, qword [0x140040d10]
xor edx, edx
div qword [0x140040d20]
movzx eax, byte [rdx + rcx]
mov rcx, rsi
xor byte [r9 - 2], al
lea rax, [r11 + r9]
cmp qword [0x140040d28], 0x10
cmovae rcx, qword [0x140040d10]
xor edx, edx
div qword [0x140040d20]
movzx eax, byte [rdx + rcx]
mov rcx, rsi
xor byte [r9 - 1], al
mov rax, r9
cmp qword [0x140040d28], 0x10
cmovae rcx, qword [0x140040d10]
sub rax, r8
xor edx, edx
div qword [0x140040d20]
movzx eax, byte [rdx + rcx]
mov rcx, rsi
xor byte [r9], al
lea rax, [rbx + r9]
cmp qword [0x140040d28], 0x10
cmovae rcx, qword [0x140040d10]
xor edx, edx
div qword [0x140040d20]
movzx eax, byte [rdx + rcx]
xor byte [r9 + 1], al
add r9, 4
lea rax, [r10 + r9]
cmp rax, 0x5c
jb 0x14000f130
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov byte [r8 + 0x5d], 0
mov rdx, r8
mov rcx, rdi
call fcn.140033d90
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14000f230
Capabilities:
Encode data using xor
Execute command
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x38], esi
xor edx, edx
mov cl, 0x63
call fcn.140001c00
mov byte [rsp + 0x30], al
lea edx, [rsi + 1]
mov cl, 0x6f
call fcn.140001c00
mov byte [rsp + 0x31], al
lea edx, [rsi + 2]
mov cl, 0x6c
call fcn.140001c00
mov byte [rsp + 0x32], al
lea edx, [rsi + 3]
mov cl, 0x6f
call fcn.140001c00
mov byte [rsp + 0x33], al
lea edx, [rsi + 4]
mov cl, 0x72
call fcn.140001c00
mov byte [rsp + 0x34], al
lea edx, [rsi + 5]
mov cl, 0x20
call fcn.140001c00
mov byte [rsp + 0x35], al
lea edx, [rsi + 6]
mov cl, 0x32
call fcn.140001c00
mov byte [rsp + 0x36], al
xor eax, eax
mov byte [rsp + 0x37], al
mov edx, esi
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0x16]
xor byte [rcx], al
inc edx
cmp edx, 7
jb 0x14000f2d0
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, 0x18
lea rcx, [rsp + 0x48]
call fcn.140005e50
cmp qword [rax + 0x18], 0x10
jb 0x14000f310
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000f359
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f354
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f354
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140035ce4
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x38], 1
cmp qword [rdi + 0x18], 0x10
jb 0x14000f37d
mov rdi, qword [rdi]
lea rdx, [0x140039ec4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rbp, rax
test rax, rax
je 0x14000f446
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x14000f43d
nop word [rax + rax]
mov r8, rbp
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000f42c
lea rax, [rsp + 0x70]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x14000f3d4
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14000f41a
lea rsi, [rdx + rcx]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp r8, 0x10
jb 0x14000f404
mov rdi, qword [rbx]
add rcx, rdi
mov r8, rdx
lea rdx, [rsp + 0x70]
call fcn.140036c20
mov byte [rdi + rsi], 0
jmp 0x14000f42c
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x70]
mov rcx, rbx
call fcn.140034c70
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14000f3b0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov rax, rbx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140035c80
mov rbx, qword [rsp + 0x130]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b9e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [rdx + 0x1a], 0
mov r8, rdx
mov rsi, rcx
je 0x14001bb1f
mov qword [rsp + 0x30], rbx
lea r9, [rdx + 2]
mov qword [rsp + 0x38], rbp
mov ebx, 1
mov qword [rsp + 0x40], rdi
lea rbp, [0x1400410d8]
mov edi, 2
mov r11, rdx
sub rdi, rdx
sub rbx, rdx
mov r10, 0xfffffffffffffffe
not r11
sub r10, rdx
cmp qword [0x1400410f0], 0x10
lea rax, [r10 + r9]
mov rcx, rbp
cmovae rcx, qword [0x1400410d8]
xor edx, edx
div qword [0x1400410e8]
movzx eax, byte [rdx + rcx]
mov rcx, rbp
xor byte [r9 - 2], al
lea rax, [r11 + r9]
cmp qword [0x1400410f0], 0x10
cmovae rcx, qword [0x1400410d8]
xor edx, edx
div qword [0x1400410e8]
movzx eax, byte [rdx + rcx]
mov rcx, rbp
xor byte [r9 - 1], al
mov rax, r9
cmp qword [0x1400410f0], 0x10
cmovae rcx, qword [0x1400410d8]
sub rax, r8
xor edx, edx
div qword [0x1400410e8]
movzx eax, byte [rdx + rcx]
mov rcx, rbp
xor byte [r9], al
lea rax, [rbx + r9]
cmp qword [0x1400410f0], 0x10
cmovae rcx, qword [0x1400410d8]
xor edx, edx
div qword [0x1400410e8]
movzx eax, byte [rdx + rcx]
mov rcx, rbp
xor byte [r9 + 1], al
lea rax, [rdi + r9]
cmp qword [0x1400410f0], 0x10
cmovae rcx, qword [0x1400410d8]
xor edx, edx
div qword [0x1400410e8]
movzx eax, byte [rdx + rcx]
xor byte [r9 + 2], al
add r9, 5
lea rax, [r10 + r9]
cmp rax, 0x19
jb 0x14001ba30
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov byte [r8 + 0x1a], 0
mov rdx, r8
mov rcx, rsi
call fcn.140033d90
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14002a630
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x66], 0
mov r10, rdx
mov rbx, rcx
je 0x14002a686
xor r8d, r8d
lea rcx, [0x1400410f8]
nop dword [rax]
cmp qword [0x140041110], 0x10
mov rax, r8
mov r9, rcx
cmovae r9, qword [0x1400410f8]
xor edx, edx
div qword [0x140041108]
movzx eax, byte [rdx + r9]
xor byte [r8 + r10], al
inc r8
cmp r8, 0x65
jb 0x14002a650
mov byte [r10 + 0x66], 0
mov rdx, r10
mov rcx, rbx
call fcn.140033d90
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14002d0e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14002d117
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14002d138
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002d13a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002d193
test ecx, ecx
jle 0x14002d173
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140036c1a
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14002d193
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002d193
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002d1c0
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 0x14002d1e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14002d1f8
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 0x14002d214
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002d216
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x14002d250
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140036c1a
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14002d2f7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14002d28b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14002d2d1
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14002d310
cmp rbx, rax
ja 0x14002d2a0
mov r8, rdi
test rdi, rdi
je 0x14002d2f7
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14002d2fa
Function at 0x14002d710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002d73d
xor eax, eax
jmp 0x14002d892
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14002d768
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14002d768
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14002d892
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002d885
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14002d7ab
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14002d7d6
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 0x14002d88a
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 0x14002d845
sub eax, 1
je 0x14002d845
cmp eax, 2
jne 0x14002d885
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 0x14002d88a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14002d873
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 0x14002d885
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14002d88a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140035c80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14002d960
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x28
cmp byte [rcx + 0x22], 0
je 0x14002dc1d
mov qword [rax + 8], rbx
lea r9, [rcx + 2]
mov qword [rax + 0x10], rbp
mov ebx, 1
mov qword [rax + 0x18], rsi
mov ebp, 6
mov qword [rax - 8], rdi
mov esi, 3
mov qword [rax - 0x10], r12
mov edi, 2
mov qword [rax - 0x18], r13
mov r12d, 7
mov qword [rax - 0x20], r14
mov r13d, 8
mov qword [rsp], r15
mov r14d, 4
mov r15d, 5
mov r11, rcx
sub r15, rcx
sub rbx, rcx
sub rdi, rcx
sub rsi, rcx
sub r14, rcx
sub rbp, rcx
sub r12, rcx
sub r13, rcx
mov r10, 0xfffffffffffffffe
not r11
sub r10, rcx
nop dword [rax]
cmp qword [0x140040dd0], 0x10
lea r8, [0x140040db8]
lea rax, [r9 + r10]
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 - 2], al
lea rax, [r9 + r11]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 - 1], al
mov rax, r9
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
sub rax, rcx
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9], al
lea rax, [rbx + r9]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 + 1], al
lea rax, [rdi + r9]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 + 2], al
lea rax, [rsi + r9]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 + 3], al
lea rax, [r14 + r9]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 + 4], al
lea rax, [r15 + r9]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 + 5], al
lea rax, [r9 + rbp]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
lea r8, [0x140040db8]
xor byte [r9 + 6], al
lea rax, [r9 + r12]
cmp qword [0x140040dd0], 0x10
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
xor byte [r9 + 7], al
cmp qword [0x140040dd0], 0x10
lea rax, [r9 + r13]
lea r8, [0x140040db8]
cmovae r8, qword [0x140040db8]
xor edx, edx
div qword [0x140040dc8]
movzx eax, byte [rdx + r8]
xor byte [r9 + 8], al
add r9, 0xb
lea rax, [r9 + r10]
cmp rax, 0x21
jb 0x14002d9f0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov byte [rcx + 0x22], 0
add rsp, 0x28
ret