joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011778
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r13d, ecx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
add rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov r15, qword [rax]
mov r12d, 0xce052fb5
mov eax, 0x3b368462
cmp eax, 0xce052fb4
jle 0x1800117ee
cmp eax, 0x3b368461
jg 0x18001183b
cmp eax, 0xce052fb5
je 0x180011872
cmp eax, 0x2e143789
jne 0x1800117b4
test esi, esi
mov eax, 0xa6f1aedf
mov ecx, 0x3b368462
cmove eax, ecx
mov r15, rbp
mov r14, rbx
mov rdi, rbx
jmp 0x1800117b4
cmp eax, 0xa6f1aedf
je 0x1800118b4
cmp eax, 0xb0665cc7
je 0x18001187e
cmp eax, 0xbb30e5c5
jne 0x1800117b4
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx edx, word [rax + 0x58]
mov rcx, qword [rax + 0x60]
mov r8b, 1
call fcn.1800118c8
cmp eax, r13d
mov eax, 0x58572a5b
mov ecx, 0xb0665cc7
cmove eax, ecx
jmp 0x1800117b4
cmp eax, 0x58572a5b
je 0x18001189b
cmp eax, 0x3b368462
jne 0x1800117b4
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x28], r15
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
mov eax, 0xbb30e5c5
cmove eax, r12d
jmp 0x1800117b4
mov eax, 0xa6f1aedf
xor edi, edi
jmp 0x1800117b4
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax + 0x30]
mov eax, 0x2e143789
mov esi, 1
mov rbp, qword [rsp + 0x28]
jmp 0x1800117b4
mov rax, qword [rsp + 0x28]
mov rbp, qword [rax]
mov eax, 0x2e143789
xor esi, esi
mov rbx, qword [rsp + 0x40]
jmp 0x1800117b4
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800118c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
test r8b, r8b
mov r8d, 0xfbc4c274
mov eax, 0xa204fc13
cmove r8d, eax
dec edx
test rcx, rcx
mov eax, 0xf45739
mov r9d, 0xb2c3b333
cmove r9d, eax
mov ebx, 0xb1f9398e
mov r10d, 0xf351349d
mov r11d, 0x2cbf6b58
mov r14d, 0x8392e809
cmp ebx, 0xb2c3b332
jg 0x18001196e
cmp ebx, 0xa88c64d9
jg 0x1800119b4
cmp ebx, 0x8392e809
je 0x180011a09
cmp ebx, 0x9134cc14
je 0x180011a23
cmp ebx, 0xa204fc13
jne 0x180011911
mov esi, dword [rsp + 8]
mov ebx, dword [rsp + 8]
shrd ebx, esi, 0x19
movzx r15d, di
xor r15d, ebx
mov rsi, qword [rsp + 0x10]
add rsi, 2
mov ebp, dword [rsp + 0xc]
inc ebp
mov ebx, 0x9134cc14
jmp 0x180011911
cmp ebx, 0xf45738
jg 0x1800119e0
cmp ebx, 0xb2c3b333
je 0x180011a5a
cmp ebx, 0xf351349d
je 0x180011a6c
cmp ebx, 0xfbc4c274
jne 0x180011911
mov edi, dword [rsp + 4]
cmp edi, 0x40
mov ebx, 0xa204fc13
cmovg ebx, r14d
movzx edi, word [rsp + 2]
jmp 0x180011911
cmp ebx, 0xa88c64da
je 0x180011a7d
cmp ebx, 0xb14e0f74
je 0x180011a8f
cmp ebx, 0xb1f9398e
jne 0x180011911
mov ebx, r9d
jmp 0x180011911
cmp ebx, 0xf45739
je 0x180011a9c
cmp ebx, 0x2cbf6b58
je 0x180011aab
cmp ebx, 0x448d456
jne 0x180011911
jmp 0x180011ab9
mov edi, dword [rsp + 4]
cmp edi, 0x5b
mov ebx, 0xa204fc13
cmovl ebx, r10d
movzx edi, word [rsp + 2]
jmp 0x180011911
mov dword [rsp + 0xc], ebp
mov dword [rsp + 8], r15d
mov qword [rsp + 0x10], rsi
mov rbx, qword [rsp + 0x10]
movzx ebx, word [rbx]
mov word [rsp + 2], bx
movzx ebx, word [rsp + 2]
mov dword [rsp + 4], ebx
cmp dword [rsp + 4], 0
mov ebx, 0xa88c64da
cmove ebx, r11d
jmp 0x180011911
mov ebx, 0x9134cc14
xor ebp, ebp
xor r15d, r15d
mov rsi, rcx
jmp 0x180011911
mov edi, dword [rsp + 4]
add edi, 0x20
mov ebx, 0xa204fc13
jmp 0x180011911
cmp edx, dword [rsp + 0xc]
mov ebx, 0xb14e0f74
cmovb ebx, r11d
jmp 0x180011911
movzx edi, word [rsp + 2]
mov ebx, r8d
jmp 0x180011911
mov ebx, 0x448d456
mov eax, 0xffffffff
jmp 0x180011911
mov ebx, 0x448d456
mov eax, dword [rsp + 8]
jmp 0x180011911
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180029120
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x180030440]
xor ecx, ecx
lea r8, [0x180030438]
lea rdx, str.FlsAlloc
call fcn.180028f48
mov rbx, rax
test rax, rax
je 0x180029160
mov rcx, rax
call fcn.180024dd8
mov rcx, rdi
call rbx
jmp 0x180029166
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800291c8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180030450]
mov ecx, 2
lea r8, [0x180030448]
lea rdx, str.FlsGetValue
call fcn.180028f48
mov rdi, rax
test rax, rax
je 0x180029209
mov rcx, rax
call fcn.180024dd8
mov ecx, ebx
call rdi
jmp 0x180029211
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18002921c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180030458]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180030450]
call fcn.180028f48
mov rsi, rax
test rax, rax
je 0x180029268
mov rcx, rax
call fcn.180024dd8
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x180029273
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18001b260
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x18001b2c1
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x18001b280
mov ecx, dword [r9]
jmp 0x18001b3ab
cmp ecx, 0x4e0
jb 0x18001b3ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18001b2e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18001b330
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
add rsp, 8
ret
Function at 0x18001b400
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r9d
mov r15, r8
mov r14, rdx
mov rsi, rcx
call fcn.18001b260
mov rdi, rax
add ebp, 0xffffffff
je 0x18001b5dd
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
xor r12d, r12d
nop word [rax + rax]
mov r9, qword [rsi]
shl rdi, 0x20
mov ecx, dword [r9]
cmp ecx, 0x270
jne 0x18001b4a4
lea rax, [r9 + 8]
mov r10d, ecx
nop dword [rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r10, 1
jne 0x18001b460
mov ecx, dword [r9]
jmp 0x18001b586
cmp ecx, 0x4e0
jb 0x18001b586
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov ebx, dword [r10]
mov eax, ebx
mov r8, r10
mov ebx, dword [r10 + 4]
mov edx, eax
xor edx, ebx
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x18001b4c0
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov ebx, dword [r10]
nop dword [rax]
mov eax, ebx
mov r8, r10
mov ebx, dword [r10 + 4]
mov edx, eax
xor edx, ebx
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x18001b510
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
mov ecx, r12d
mov dword [r9], r12d
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov ecx, edx
mov dword [r9], eax
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
xor rdx, rax
mov rcx, rdx
shr rcx, 0x12
xor rcx, rdx
or rdi, rcx
add ebp, 0xffffffff
jne 0x18001b440
mov r12, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rax, r15
mul rdi
mov qword [r14], rax
mov rax, r14
mov qword [r14 + 8], rdx
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180022240
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x180230100]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x78], rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x180022285
mov r8, qword [rdx]
mov rdx, r8
add r8, qword [rbx + 0x10]
jmp 0x18002228c
mov r8, qword [rdx + 0x10]
add r8, rbx
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.18001d1e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov byte [rsp + 0x48], 1
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x20]
mov rbp, qword [rcx + 0x28]
cmp r9, rbp
je 0x180022380
mov r11, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x28]
mov rdx, qword [r9 + 0x50]
test rdx, rdx
je 0x180022378
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r14w
jne 0x180022313
lea r8, [rsp + 0x28]
cmp r11, 7
cmova r8, rdi
cmp r10, rax
jne 0x180022378
mov rax, r10
test r10, r10
je 0x180022354
sub r8, rdx
nop word [rax + rax]
movzx ecx, word [rdx + r8]
cmp cx, word [rdx]
jne 0x180022378
add rdx, 2
sub rax, 1
jne 0x180022340
mov rdi, qword [r9 + 0x20]
lea rcx, [rsp + 0x28]
call fcn.18001c120
mov qword [rsi], rdi
test rdi, rdi
je 0x18002238d
movsxd rax, dword [rdi + 0x3c]
mov eax, dword [rax + rdi + 0x50]
mov qword [rsi + 8], rax
jmp 0x18002238d
mov r9, qword [r9]
cmp r9, rbp
jne 0x180022303
lea rcx, [rsp + 0x28]
call fcn.18001c120
mov qword [rsi], r14
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1800223d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800223cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800223cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d084c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x180022409
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180022404
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180022443
mov rcx, r8
call fcn.1800d084c
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d08e0
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180022e90
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x16], al
je 0x180022ec3
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x77]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x15
jb 0x180022eb0
mov byte [rdx + 0x16], 0
lea r8, [rdx + 0x15]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.180012740
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x180022ee0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x1b], al
je 0x180022f13
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x77]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x1a
jb 0x180022f00
mov byte [rdx + 0x1b], 0
lea r8, [rdx + 0x1a]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.180012740
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x180022f30
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0xd], al
je 0x180022f63
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x77]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0xc
jb 0x180022f50
mov byte [rdx + 0xd], 0
lea r8, [rdx + 0xc]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.180012740
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x180022f80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0xe], al
je 0x180022fb3
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x77]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0xd
jb 0x180022fa0
mov byte [rdx + 0xe], 0
lea r8, [rdx + 0xd]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.180012740
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x180031850
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180230100]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180031923
cmp byte [rcx + 0x71], 0
je 0x180031923
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x18003191f
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 0x1800318e4
sub eax, 1
je 0x1800318e8
cmp eax, 2
jne 0x18003191f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d08e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180031916
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 0x18003191f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800318cc
xor al, al
jmp 0x1800318cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d08e0
add rsp, 0x60
pop rbx
ret

Function at 0x180032650
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
je 0x180032673
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x77]
xor byte [rcx + rax], dl
inc rax
cmp rax, 6
jb 0x180032660
mov byte [rcx + 7], 0
mov rax, rcx
ret

Function at 0x180032680
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x1800326a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x77]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x14
jb 0x180032690
mov byte [rcx + 0x15], 0
mov rax, rcx
ret

Function at 0x1800326b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1c], 0
je 0x1800326d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x77]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x1b
jb 0x1800326c0
mov byte [rcx + 0x1c], 0
mov rax, rcx
ret

Function at 0x1800326e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1e], 0
je 0x180032703
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x77]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x1d
jb 0x1800326f0
mov byte [rcx + 0x1e], 0
mov rax, rcx
ret
Function at 0x180034c90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180230100]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x180034cbd
xor eax, eax
jmp 0x180034e26
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x180034cfd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x180034cfd
mov rcx, rdi
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], sil
mov eax, esi
jmp 0x180034e1e
cmp qword [rdi + 0x80], 0
je 0x180034e19
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x180034d37
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x180034d62
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x180034e1e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x180034dd1
sub eax, 1
je 0x180034dd1
cmp eax, 2
jne 0x180034e19
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x180034e1e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x180034dff
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x180034e19
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x180034e1e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800d08e0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180035e10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x180035e32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180035e48
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x180035e92
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x180035f01
mov rcx, rbp
call fcn.180032190
cmp rbx, 0xfff
jbe 0x180035ee1
mov r9, qword [rbp + 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 0x180035f1a
cmp rbx, rax
ja 0x180035eb0
test rdi, rdi
je 0x180035f01
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x180035f04
Function at 0x180035f20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180035f48
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x180035fbc
test rax, rax
jle 0x180035f9c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x180035fbc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180035fbc
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 + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret