joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012520
Capabilities:
Persist via run registry key

Disassembly:
sub rsp, 0x68
lea rdx, [rsp + 0x30]
lea rcx, [0x140065c70]
call fcn.140012830
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14001267f
mov edx, 0xfffe
mov ecx, 0x40
call qword [0x140071da8]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140012674
lea rax, [0x14006e25c]
mov qword [rsp + 0x28], rax
lea rax, [0x140065ee0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
lea r8, [0x14003b1b8]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x40]
call qword [0x140072500]
mov dword [rsp + 0x50], eax
cmp dword [0x140067924], 1
jne 0x140012604
lea r8, [rsp + 0x48]
lea rdx, [0x14003b1e0]
mov rcx, 0xffffffff80000001
call qword [0x140072358]
test eax, eax
jne 0x140012604
mov eax, dword [rsp + 0x50]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14006bac0]
mov rcx, qword [rsp + 0x48]
call qword [0x140072350]
mov rcx, qword [rsp + 0x48]
call qword [0x140072360]
cmp dword [0x140067920], 1
jne 0x140012669
lea r8, [rsp + 0x48]
lea rdx, [0x14003b240]
mov rcx, 0xffffffff80000002
call qword [0x140072358]
test eax, eax
jne 0x140012669
mov eax, dword [rsp + 0x50]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14006bb0e]
mov rcx, qword [rsp + 0x48]
call qword [0x140072350]
mov rcx, qword [rsp + 0x48]
call qword [0x140072360]
mov rcx, qword [rsp + 0x40]
call qword [fcn.140071dc0]
mov rcx, qword [rsp + 0x38]
call qword [fcn.140071dc0]
mov eax, 1
add rsp, 0x68
ret

Function at 0x140012690
Capabilities:
Persist via run registry key

Disassembly:
sub rsp, 0x38
cmp dword [0x140067924], 1
jne 0x1400126d7
lea r8, [rsp + 0x20]
lea rdx, [0x14003b2a0]
mov rcx, 0xffffffff80000001
call qword [0x140072358]
test eax, eax
jne 0x1400126d7
lea rdx, [0x14006bac0]
mov rcx, qword [rsp + 0x20]
call qword [0x1400723a8]
mov rcx, qword [rsp + 0x20]
call qword [0x140072360]
cmp dword [0x140067920], 1
jne 0x14001271a
lea r8, [rsp + 0x20]
lea rdx, [0x14003b300]
mov rcx, 0xffffffff80000002
call qword [0x140072358]
test eax, eax
jne 0x14001271a
lea rdx, [0x14006bb0e]
mov rcx, qword [rsp + 0x20]
call qword [0x1400723a8]
mov rcx, qword [rsp + 0x20]
call qword [0x140072360]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140033908
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [0x140073f00]
call fcn.1403d0e03
nop
int3

Function at 0x1403d2139
Capabilities:
Encode data using xor

Disassembly:
push rdi
or esp, dword [rax + 0x60]
and dword [rdi + riz*4], ebx
and ch, bh
xor ch, byte [rsp + rdx*4 - 0x55957ad0]
adc edi, dword [rbx]
push rsp
and al, 0xd4
cmp edx, dword [rsp - 0x2c]
xor ch, byte [rdx + 0x7e]
jo 0x1403d214a
jae 0x1403d218a
out dx, eax
xor dl, byte [rbp + riz + 0x41801b4e]
lock xor dh, byte [rbx + 0x6b3bdbb6]
mov bl, 0xb6
fstp xword [rbx]
imul esi, dword [0x18dfa3d59], 0xffffffef
xor cl, al
jge 0x1403d21e8
invalid
mov edx, dword [rdx + rsi*4 - 0xb]
xor ch, byte [rbx + 0x1d]
scasb al, byte [rdi]
pop rax
insb byte [rdi], dx
invalid

Function at 0x1403d310b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xaf56f3b6
adc ebx, dword [rdi]
movabs byte [0x3bb3b8b38b136a6a], al
mov bl, 0xb8
fstp xword [rbx]

Function at 0x1403d40e1
Capabilities:
Encode data using xor

Disassembly:
je 0x1403d4097
push rsp
pop rdx
fcom st(6)
jns 0x1403d409a
push rsp
nop
out dx, eax
xor ch, byte [rbx + 0x66]
mov ah, 0x8b
invalid
xor eax, 0x1bcd9aef
int 0x1b
add ah, byte [rcx - 0x4d]
mov esi, 0xbeb35703
invalid
mov bl, 0xbe
sar dword [rbx - 0x12], 1
div edi
jp 0x1403d4094
div edi
xor ch, byte [rbx + 0x35]
invalid
div dword [rdx]
imul esi, dword [0x199bcfae9], 0x4b
wait
out 0xe1, al
push rsp
xchg byte [rdi - 0x4ba90c42], dh
mov esi, 0xf5ee7ccf
div dword [rbx - 0x40]
jle 0x1403d4072
jnp 0x1403d40ff
and dword [rbx + 0x33], edx
imul esi, dword [0x14329bcc1], 0x51
imul esp, dword [rbp + 0x75], 0x35698cd8
out dx, eax
je 0x1403d409f
sbb eax, 0x356c46ee
push rdi
mov ebx, dword [rcx]
or bl, bh
jp 0x1403d40dc
cmp dword [rbx], edx
je 0x1403d40a9
popfq
ja 0x1403d4147
in al, 0x6f
invalid
push 0x35
jnp 0x1403d412d
invalid
xor dh, byte [rax + rdi*4 + 0x36543baf]
out dx, eax
scasd eax, dword [rdi]
cmp edx, dword [rsi + rsi - 0x11]
xor ch, byte [rbx + 0x7e]
jo 0x1403d412a
jae 0x1403d416e
xor eax, 0xb6b332ef
fstp xword [rbx]
imul esi, dword [0x17a31c035], 0x13
out dx, eax
xor dh, byte [rbx + 0x6b3bdbb6]
xor eax, 0x39f47eef
adc esi, dword [rdx]
mov dh, 0xdb
cmp ebp, dword [rbx + 0x35]
out dx, eax
jle 0x1403d4138
cmp dword [rbx], edx
xor bl, bh
pop rcx
idiv dword [rsi - 0xa]
fistp word [rcx - 9]
jle 0x1403d4142
cmp dword [rbx], edx
jnp 0x1403d413c
stc
div dword [rdx]
imul esi, dword [0x1bdcc78d8], 0x7a
push rdi
invalid
invalid
Function at 0x14011c5b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140120e80
sub rsp, rax
mov rax, qword [0x140164dc0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14011c672
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14012ff04
cmp rax, 1
jne 0x14011c6ce
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14011c64f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14011c643
cmp rcx, 1
jb 0x14011c6ce
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14011c610
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14011c6a3
lea rcx, [rsp + 0x80]
call fcn.14013297c
jmp 0x14011c6a5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140120bb0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140124370
int3
Function at 0x14011d590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x1401732fe], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14011d620
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140173130], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x140173130], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x140173130], rdi
call fcn.14011b450
cmp eax, ebx
jne 0x14011d7c3
mov byte [0x1401732fe], 1
jmp 0x14011d627
mov rdi, qword [0x140173130]
lea rdx, [0x140141bc8]
mov rcx, rbp
call fcn.14012f9b0
test eax, eax
je 0x14011d6e1
cmp byte [0x1401732fd], 1
je 0x14011d6e1
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174020], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174028], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174030], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174038], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174040], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174048], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174050], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140174058], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x140173130]
mov byte [0x1401732fd], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xda0
mov qword [0x1401753c8], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14011d707
inc rax
test cl, cl
jne 0x14011d6f0
mov ecx, r9d
jmp 0x14011d70c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14011d713
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14011d778
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14011d755
inc rax
test cl, cl
jne 0x14011d740
mov ecx, r9d
jmp 0x14011d75a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14011d761
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14011d730
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14011d7a8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140119c60
add rsi, 8
sub rbx, 1
jne 0x14011d790
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14012c788
call fcn.140124370
int3
Function at 0x140120740
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140164dc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1401207f1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14012ff04
cmp rax, 1
jne 0x140120827
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1401207cd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1401207c0
cmp rcx, 1
jb 0x140120827
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140120790
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140120bb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140124370
int3

Function at 0x140120a30
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140164dc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x140120adf
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14012ff04
cmp rax, 1
jne 0x140120b15
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140120abc
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140120ab0
cmp rcx, 1
jb 0x140120b15
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140120a80
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140120bb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140124370
int3

Function at 0x140121618
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140121662
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140121662
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140121662
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140121662
cmp dword [rcx + 0x84], 0xe
jbe 0x140121662
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140121664
xor al, al
add rsp, 0x28
ret
Function at 0x1401259a4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140125a13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140125a13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140125a13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140125a13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140125a13
cmp dword [rcx + 0x84], 0xe
jbe 0x140125a13
cmp dword [rcx + 0xf8], 0
je 0x140125a13
mov ecx, ebx
call fcn.140125ad0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401258a0
nop
cmp dword [rbp + 0x20], 0
je 0x140125a61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140125a6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401259a4

Function at 0x140125bb4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140125a13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140125a13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140125a13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140125a13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140125a13
cmp dword [rcx + 0x84], 0xe
jbe 0x140125a13
cmp dword [rcx + 0xf8], 0
je 0x140125a13
mov ecx, ebx
call fcn.140125ad0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401258a0
nop
cmp dword [rbp + 0x20], 0
je 0x140125a61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140125a6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401259a4
Function at 0x140137754
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401377db
mov rsi, rbx
cmp word [rax], bp
je 0x14013779a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140137784
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140137780
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140132e58
mov rdi, rax
test rax, rax
je 0x1401377c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14013d390
mov rbp, rdi
xor ecx, ecx
call fcn.140133978
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14013d1e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14013d208
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14013d208
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800061c0
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 case.default.0x1800061e1
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 0x18000620e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180006210
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180006269
test ecx, ecx
jle 0x180006249
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 0x180006269
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180006269
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
invalid
Function at 0x180006290
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800062c1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1800062d8
mov rbp, qword [rsp + 0x40]
mov rsi, 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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800062fb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800062fd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180006339
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1800063ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180006374
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 0x1800063ae
nop dword [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 0x1800063ce
cmp rbx, rax
ja 0x180006380
test rbx, rbx
je 0x1800063ce
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
invalid
Function at 0x1800067f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800e2240]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000681d
xor eax, eax
jmp 0x180006989
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180006857
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180006857
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 0x180006989
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000697c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000689a
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 0x1800068c5
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 0x180006981
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x180006934
sub eax, 1
je 0x180006934
cmp eax, 2
jne 0x18000697c
movsx ecx, byte [rsp + 0x40]
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 0x180006981
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180006962
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 0x18000697c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180006981
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800ac5b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180006f40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800e2240]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180007013
cmp byte [rcx + 0x71], 0
je 0x180007013
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000700f
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 0x180006fd4
sub eax, 1
je 0x180006fd8
cmp eax, 2
jne 0x18000700f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800ac5b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180007006
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 0x18000700f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180006fbc
xor al, al
jmp 0x180006fbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800ac5b0
add rsp, 0x60
pop rbx
ret
Function at 0x180025d70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x50], rbp
mov rsi, rcx
lea rbp, [r8 - 1]
mov qword [rsp + 0x58], r12
sar rbp, 1
mov r14, r9
mov qword [rsp + 0x60], r13
mov r13, r8
mov rbx, rdx
mov r15, rdx
mov rcx, rdx
cmp rdx, rbp
jge 0x180025de0
nop dword [rax]
lea rdi, [rcx + rcx]
mov r8, qword [rsi + rdi*8 + 8]
mov rdx, qword [rsi + rdi*8 + 0x10]
call fcn.180025730
movzx ecx, al
xor rcx, 1
inc rcx
add rcx, rdi
mov rax, qword [rsi + rcx*8]
mov qword [rsi + rbx*8], rax
mov rbx, rcx
cmp rcx, rbp
jl 0x180025db0
cmp rcx, rbp
mov rbp, qword [rsp + 0x50]
jne 0x180025dfd
test r13b, 1
jne 0x180025dfd
mov rax, qword [rsi + r13*8 - 8]
mov qword [rsi + rbx*8], rax
lea rbx, [r13 - 1]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
cmp r15, rbx
jge 0x180025e4a
nop dword [rax]
mov r8, qword [r14]
lea rdi, [rbx - 1]
sar rdi, 1
mov rdx, qword [rsi + rdi*8]
call fcn.180025730
test al, al
je 0x180025e4a
mov rax, qword [rsi + rdi*8]
mov qword [rsi + rbx*8], rax
mov rbx, rdi
cmp r15, rdi
jl 0x180025e10
mov rax, qword [r14]
mov qword [rsi + rdi*8], rax
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [r14]
mov qword [rsi + rbx*8], rax
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret