joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003867
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x140002f7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002f76
repz ret
ror rcx, 0x10
jmp 0x1400037c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140021af0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140021be8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003845
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140021af0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003867
mov rax, qword [rsp + 0x88]
mov qword [0x140021be8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140021b88], rax
mov rax, qword [0x140021be8]
mov qword [0x140021a60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140021b70], rax
mov dword [0x140021a50], 0xc0000409
mov dword [0x140021a54], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140020008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140021ae8], eax
mov ecx, 1
call fcn.140006f50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001afb0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140021ae8], 0
jne 0x1400038ee
mov ecx, 1
call fcn.140006f50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140005f7c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005dec
Function at 0x140004280
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400042ad
xor eax, eax
jmp 0x140004419
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400042e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400042e7
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 0x140004419
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000440c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000432a
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 0x140004355
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 0x140004411
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 0x1400043c4
sub eax, 1
je 0x1400043c4
cmp eax, 2
jne 0x14000440c
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 0x140004411
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400043f2
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 0x14000440c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004411
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006dd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400052b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005383
cmp byte [rcx + 0x71], 0
je 0x140005383
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000537f
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 0x140005344
sub eax, 1
je 0x140005348
cmp eax, 2
jne 0x14000537f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006dd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005376
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 0x14000537f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000532c
xor al, al
jmp 0x14000532c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006dd0
add rsp, 0x60
pop rbx
ret

Function at 0x140007910
Capabilities:
Parse pe header

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

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x738
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x6a0], xmm15
movdqa xmmword [rbp + 0x690], xmm14
movdqa xmmword [rbp + 0x680], xmm13
movdqa xmmword [rbp + 0x670], xmm12
movdqa xmmword [rbp + 0x660], xmm11
movdqa xmmword [rbp + 0x650], xmm10
movdqa xmmword [rbp + 0x640], xmm9
movdqa xmmword [rbp + 0x630], xmm8
movdqa xmmword [rbp + 0x620], xmm7
movdqa xmmword [rbp + 0x610], xmm6
mov qword [rbp + 0x5e8], 0xfffffffffffffffe
mov rbx, qword [0x180050570]
cmp byte [0x180051c46], 0
jne 0x1800055f1
movabs rax, 0xaa5a9475566d54eb
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d5506
xor al, byte [rbx + rcx]
mov byte [0x180051c3e], al
movabs rax, 0xaa5a9475566d54ec
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d5507
xor al, byte [rbx + rcx]
mov byte [0x180051c3f], al
movabs rax, 0xaa5a9475566d54ed
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d5508
xor al, byte [rbx + rcx]
mov byte [0x180051c40], al
movabs rax, 0xaa5a9475566d54ee
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d5509
xor al, byte [rbx + rcx]
mov byte [0x180051c41], al
movabs rax, 0xaa5a9475566d54ef
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d550a
xor al, byte [rbx + rcx]
mov byte [0x180051c42], al
movabs rax, 0xaa5a9475566d54f0
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d550b
xor al, byte [rbx + rcx]
mov byte [0x180051c43], al
movabs rax, 0xaa5a9475566d54f1
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d550c
xor al, byte [rbx + rcx]
mov byte [0x180051c44], al
movabs rax, 0xaa5a9475566d54f2
movzx eax, byte [rbx + rax]
movabs rcx, 0xaa5a9475566d550d
xor al, byte [rbx + rcx]
mov byte [0x180051c45], al
mov byte [0x180051c46], 1
lea rcx, [0x180051c3e]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
cmp byte [0x180051c54], 0
jne 0x1800056a1
movabs rax, 0xaa5a9475566d5523
add rax, rbx
mov ecx, 1
lea rdx, [0x180051c47]
nop word [rax + rax]
movzx r8d, byte [rax + rcx - 1]
movzx r9d, byte [rax + rcx + 0x19]
mov r10d, r9d
xor r10b, 0x56
mov r11d, r8d
xor r11b, 0x56
xor r9b, 0xa9
and r9b, r11b
xor r8b, 0xa9
and r8b, r10b
or r8b, r9b
mov byte [rcx + rdx - 1], r8b
cmp rcx, 0xd
je 0x18000569a
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rcx + 0x1a]
mov r10d, r9d
xor r10b, 0x56
mov r11d, r8d
xor r11b, 0x56
xor r9b, 0xa9
and r9b, r11b
xor r8b, 0xa9
and r8b, r10b
or r8b, r9b
mov byte [rcx + rdx], r8b
add rcx, 2
jmp 0x180005630
mov byte [0x180051c54], 1
lea rcx, [0x180051c47]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, qword [0x180050588]
movabs rdx, 0xaa5a9475566d51ca
add rdx, rcx
movabs r8, 0xaa5a9475566d52f2
add r8, rcx
test r15, r15
cmovne r8, rdx
mov rdi, rax
movabs rdx, 0xa1a01b923d0a1e05
mov rax, qword [r8]
add rax, rdx
jmp rax
Function at 0x18000e000
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov rax, qword [rcx + 8]
test rax, rax
jne 0x18000e19c
cmp byte [0x180051ea2], 0
jne 0x18000e18b
mov rdx, qword [0x1800506b0]
movabs rax, 0x244dc7ea6e4b4c37
add rax, rdx
movabs rcx, 0x244dc7ea6e4b4c55
add rcx, rdx
movabs r9, 0x244dc7ea6e4b4c67
add r9, rdx
lea r8, [0x180051e90]
cmp r9, r8
jbe 0x18000e0b9
lea r9, [0x180051ea2]
cmp rax, r9
jae 0x18000e0b9
xor edx, edx
nop word cs:[rax + rax]
movzx r9d, byte [rcx + rdx]
movzx r10d, byte [rax + rdx]
mov r11d, r10d
not r11b
or r11b, r9b
not r9b
or r9b, r10b
mov r10d, r11d
xor r10b, 0xea
mov ebx, r9d
xor bl, 0xea
xor r11b, 0x15
and r11b, bl
xor r9b, 0x15
and r9b, r10b
or r9b, r11b
mov byte [rdx + r8], r9b
inc rdx
cmp rdx, 0x12
jne 0x18000e070
jmp 0x18000e184
movdqu xmm1, xmmword [rcx]
movdqu xmm2, xmmword [rax]
pcmpeqd xmm0, xmm0
movdqa xmm3, xmm2
pxor xmm3, xmm0
por xmm3, xmm1
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmmword [0x1800429a0]
movdqa xmm4, xmm3
pxor xmm4, xmm2
pxor xmm2, xmm1
movdqa xmm5, xmmword [0x1800429b0]
pxor xmm3, xmm5
pand xmm3, xmm2
pxor xmm1, xmm5
pand xmm1, xmm4
por xmm1, xmm3
movdqa xmmword [0x180051e90], xmm1
movabs rax, 0x244dc7ea6e4b4c65
movzx eax, word [rdx + rax]
movd xmm1, eax
movabs rax, 0x244dc7ea6e4b4c47
movzx eax, word [rdx + rax]
movd xmm2, eax
movdqa xmm3, xmm2
pxor xmm3, xmm0
por xmm3, xmm1
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm0, xmmword [0x1800429c0]
movdqa xmm2, xmm3
pxor xmm2, xmm0
pxor xmm0, xmm1
movdqa xmm4, xmmword [0x1800429d0]
pxor xmm3, xmm4
pand xmm3, xmm0
pxor xmm1, xmm4
pand xmm1, xmm2
por xmm1, xmm3
movd eax, xmm1
mov word [0x180051ea0], ax
mov byte [0x180051ea2], 1
movabs rax, 0x244dc7ea6e4b41d0
add rax, qword [0x1800506b8]
pop rbx
ret

Function at 0x18000e610
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov rax, rcx
cmp byte [0x180051ed6], 0
jne 0x18000e69e
mov r8, qword [0x1800506e0]
movabs rcx, 0xb276f5d4f1f58b0
add rcx, r8
movabs rdx, 0xb276f5d4f1f58c0
add rdx, r8
xor r8d, r8d
lea r9, [0x180051ec1]
nop dword [rax]
movzx r10d, byte [rdx + r8]
mov r11d, r8d
and r11d, 0xf
movzx r11d, byte [rcx + r11]
not r11b
mov ebx, r10d
and bl, r11b
or r11b, r10b
mov r10d, r11d
xor r10b, 0x84
mov esi, ebx
xor sil, 0x7b
xor r11b, 0x7b
and r11b, sil
xor bl, 0x84
and bl, r10b
or bl, r11b
mov byte [r8 + r9], bl
inc r8
cmp r8, 0x15
jne 0x18000e650
mov byte [0x180051ed6], 1
mov qword [rax + 0x10], 0
lea rcx, [0x180051ec1]
mov qword [rax + 8], rcx
lea rcx, vtable.std::bad_array_new_length.0
mov qword [rax], rcx
pop rbx
pop rsi
ret
Function at 0x180013c30
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x180051ac0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x180013d5d
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180013c8d
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x180013c8d
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x180013da2
cmp qword [rdi + 0x80], 0
je 0x180013d61
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x180013cc7
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x180013d68
mov byte [rsp + 0x5f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x5f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x180013d81
mov r15, qword [rsp + 0x48]
sub r15, r14
je 0x180013d4d
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x180013da0
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rbx
mov eax, 0xffffffff
jmp 0x180013d9b
xor esi, esi
jmp 0x180013da2
mov esi, 0xffffffff
jmp 0x180013da2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x180013da2
cmp eax, 3
jne 0x180013da0
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003cb00
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180014230
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180014273
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18001427a
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
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]
xor esi, esi
jmp 0x180014399
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800142cd
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x1800142cd
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x1800142de
jmp 0x180014396
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180014396
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x18001430a
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
movabs r15, 0x1a3605a302b978ea
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movabs r13, 0xe5c9fa5cfd468716
nop word cs:[rax + rax]
cmp r14, 0x1000
jb 0x180014371
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r12
add rdi, rax
add r14, r15
mov rcx, r14
sub rcx, rax
lea r14, [rcx + r13]
cmp rax, 0xfff
je 0x180014330
add rsi, r15
sub rsi, rcx
jmp 0x180014399
test r14, r14
je 0x180014393
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x180014396
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800143b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1800143e6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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 [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180014433
test rsi, rsi
jle 0x180014433
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x180014433
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x18001443b
jmp 0x18001445b
mov r14, rsi
test r14, r14
jle 0x18001445b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x18001445b
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180014850
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x180051ac0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x1800148fa
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x1800148fa
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800148f8
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x180014911
cmp eax, 1
je 0x1800148c7
test eax, eax
jne 0x1800148f8
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1800148ee
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1800148f8
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x1800148fa
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003cb00
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x1800148fa

Function at 0x180017100
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
mov eax, 0x84222325
sub r8, rdx
je 0x18001717e
xor ecx, ecx
nop
movzx r10d, byte [rdx + rcx]
mov r11d, r10d
not r11d
mov r9d, r11d
mov esi, r11d
and r11d, 0x58
mov edi, r10d
and edi, 0xffffffa7
or edi, r11d
xor edi, 0x15
and edi, r10d
and r10d, 0x48
and r9d, 0x20af9db7
or r9d, r10d
mov r10d, r9d
and r10d, 0xcf
and esi, 0xb7b12930
or esi, r10d
xor esi, 0x280977fa
xor r9d, 0xdf506248
and r9d, esi
or edi, r9d
xor edi, eax
xor edi, 0x9fb85e4d
imul eax, edi, 0x1b3
inc rcx
cmp r8, rcx
jne 0x180017110
pop rdi
pop rsi
ret
Function at 0x18001feb0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov rax, qword [rcx + 0x28]
test rax, rax
jne 0x18002004c
cmp byte [0x180051ea2], 0
jne 0x18002003b
mov rdx, qword [0x1800506b0]
movabs rax, 0x244dc7ea6e4b4c37
add rax, rdx
movabs rcx, 0x244dc7ea6e4b4c55
add rcx, rdx
movabs r9, 0x244dc7ea6e4b4c67
add r9, rdx
lea r8, [0x180051e90]
cmp r9, r8
jbe 0x18001ff69
lea r9, [0x180051ea2]
cmp rax, r9
jae 0x18001ff69
xor edx, edx
nop word cs:[rax + rax]
movzx r9d, byte [rcx + rdx]
movzx r10d, byte [rax + rdx]
mov r11d, r10d
not r11b
or r11b, r9b
not r9b
or r9b, r10b
mov r10d, r11d
xor r10b, 0xea
mov ebx, r9d
xor bl, 0xea
xor r11b, 0x15
and r11b, bl
xor r9b, 0x15
and r9b, r10b
or r9b, r11b
mov byte [rdx + r8], r9b
inc rdx
cmp rdx, 0x12
jne 0x18001ff20
jmp 0x180020034
movdqu xmm1, xmmword [rcx]
movdqu xmm2, xmmword [rax]
pcmpeqd xmm0, xmm0
movdqa xmm3, xmm2
pxor xmm3, xmm0
por xmm3, xmm1
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmmword [0x1800429a0]
movdqa xmm4, xmm3
pxor xmm4, xmm2
pxor xmm2, xmm1
movdqa xmm5, xmmword [0x1800429b0]
pxor xmm3, xmm5
pand xmm3, xmm2
pxor xmm1, xmm5
pand xmm1, xmm4
por xmm1, xmm3
movdqa xmmword [0x180051e90], xmm1
movabs rax, 0x244dc7ea6e4b4c65
movzx eax, word [rdx + rax]
movd xmm1, eax
movabs rax, 0x244dc7ea6e4b4c47
movzx eax, word [rdx + rax]
movd xmm2, eax
movdqa xmm3, xmm2
pxor xmm3, xmm0
por xmm3, xmm1
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm0, xmmword [0x1800429c0]
movdqa xmm2, xmm3
pxor xmm2, xmm0
pxor xmm0, xmm1
movdqa xmm4, xmmword [0x1800429d0]
pxor xmm3, xmm4
pand xmm3, xmm0
pxor xmm1, xmm4
pand xmm1, xmm2
por xmm1, xmm3
movd eax, xmm1
mov word [0x180051ea0], ax
mov byte [0x180051ea2], 1
movabs rax, 0x244dc7ea6e4b41d0
add rax, qword [0x1800506b8]
pop rbx
ret
Function at 0x180021660
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.180023c30
cmp eax, 0x2a
je 0x1800216ab
cmp eax, 0x2f
jne 0x180021712
mov edi, 0x4803
nop dword [rax]
mov rcx, rsi
call fcn.180023c30
inc eax
cmp eax, 0xf
jae 0x180021690
bt edi, eax
jae 0x180021690
mov al, 1
jmp 0x1800218de
lea rdi, [rsi + 0x28]
lea rbx, [rsi + 0x30]
jmp 0x1800216c7
inc eax
cmp eax, 1
jbe 0x180021727
mov rcx, rsi
call fcn.180023c30
cmp eax, 0x2a
jne 0x1800216c0
mov rcx, rsi
call fcn.180023c30
cmp eax, 0x2f
je 0x1800216a4
mov byte [rsi + 0x18], 1
dec qword [rsi + 0x20]
mov rax, qword [rsi + 0x28]
mov rcx, rdi
test rax, rax
jne 0x180021700
mov rax, qword [rbx]
mov rcx, rbx
test rax, rax
je 0x180021706
dec rax
mov qword [rcx], rax
cmp dword [rsi + 0x14], 0xffffffff
je 0x1800216c7
dec qword [rsi + 0x40]
jmp 0x1800216c7
cmp byte [0x180052158], 0
je 0x180021740
lea r8, [0x180050a00]
jmp 0x1800218cb
cmp byte [0x180052127], 0
je 0x1800217f7
lea r8, [0x1800509f8]
jmp 0x1800218cb
mov rax, qword [0x1800509f0]
movabs r10, 0x16afa50ffa511f6b
add r10, rax
movabs r11, 0x16afa50ffa511f55
add r11, rax
xor ecx, ecx
movabs rdi, 0x2e8ba2e8ba2e8ba3
lea rbx, [0x180052128]
lea r8, [0x180050a00]
lea r9, [0x180052158]
nop word cs:[rax + rax]
mov rax, rcx
mul rdi
shr rdx, 2
imul rax, rdx, 0xffffffffffffffea
add rax, r11
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx + rax]
not al
mov ebp, eax
xor bpl, dl
mov r14d, edx
and r14b, al
or al, dl
mov edx, eax
xor dl, 0x57
mov r15d, eax
mov r12d, r14d
xor al, r14b
xor r14b, 0xa8
xor r15b, 0xa8
and r15b, r14b
xor r12b, 0x57
and r12b, dl
or r12b, r15b
not al
or al, bpl
not al
or al, r12b
mov byte [rcx + rbx], al
inc rcx
cmp rcx, 0x30
jne 0x180021790
jmp 0x1800218c7
mov rax, qword [0x1800509f0]
movabs r10, 0x16afa50ffa511f18
add r10, rax
movabs r11, 0x16afa50ffa511efa
add r11, rax
xor ecx, ecx
movabs rdi, 0x8888888888888889
lea rbx, [0x180052101]
lea r8, [0x1800509f8]
lea r9, [0x180052127]
nop dword [rax]
mov rax, rcx
mul rdi
shr rdx, 4
imul rax, rdx, 0xffffffffffffffe2
add rax, r11
movzx ebp, byte [r10 + rcx]
movzx eax, byte [rcx + rax]
mov r14d, ebp
or r14b, 0x1d
mov r15d, r14d
not r15b
and bpl, 0x1d
and r14b, 0x68
mov edx, r15d
and dl, 0x82
or dl, r14b
mov r14d, edx
xor r14b, 0x68
and r15b, 0x42
or r15b, bpl
and dl, 0x42
xor dl, 0xa2
and dl, r14b
or dl, r15b
mov ebp, eax
and bpl, 0xe2
or bpl, 0x1c
and al, 0x1d
xor al, bpl
mov ebp, eax
xor bpl, 1
or bpl, dl
xor al, dl
xor al, 0xfe
and al, dl
not bpl
or bpl, al
mov byte [rcx + rbx], bpl
inc rcx
cmp rcx, 0x26
jne 0x180021840
mov byte [r9], 1
movabs rax, 0x16afa50ffa510acd
add rax, qword [r8]
mov qword [rsi + 0x70], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret