joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008552c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.180070790
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800855b6
cmp byte [rbp - 0x21], r15b
je 0x1800855b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800855ec
call fcn.180078be0
test eax, eax
jne 0x1800855d8
cmp byte [rbp - 0x21], r15b
je 0x1800855d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800855ec
cmp byte [rbp - 0x21], r15b
je 0x1800855e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180071104
test eax, eax
jne 0x18008568c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180070790
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18008562b
cmp byte [rbp - 0x21], r15b
je 0x180085660
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180085660
call fcn.180078be0
test eax, eax
jne 0x18008564c
cmp byte [rbp - 0x21], r15b
je 0x180085645
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180085660
cmp byte [rbp - 0x21], r15b
je 0x18008565d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180071104
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18008568c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18008568f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18008569d
mov rcx, rdi
call fcn.180076c6c
cmp byte [rbp + 0x3f], r15b
je 0x1800856ac
mov rcx, qword [rbp + 0x27]
call fcn.180076c6c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180085a64
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007b0ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007b0ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180085bb4
cmp rax, 0xffffffffffffffff
je 0x180085bb4
xor edi, edi
test rbp, rbp
jle 0x180085b5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800755ac
mov rbx, rax
test rax, rax
jne 0x180085aec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180085b55
mov edx, 0x8000
mov ecx, r14d
call fcn.1800858e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180076964
cmp eax, 0xffffffff
je 0x180085b35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180085afc
mov edx, r15d
mov ecx, r14d
call fcn.1800858e8
jmp 0x180085b55
cmp byte [rsi + 0x38], dil
je 0x180085b4c
cmp dword [rsi + 0x34], 5
jne 0x180085b4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x180085b55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180076c6c
jmp 0x180085bc8
jns 0x180085bc8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007b0ec
cmp rax, 0xffffffffffffffff
jne 0x180085b80
cmp byte [rsi + 0x30], dil
je 0x180085bc8
mov edi, dword [rsi + 0x2c]
jmp 0x180085bc8
mov ecx, r14d
call fcn.18007ee3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180085bc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x180085bc8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180085bc1
mov eax, dword [rsi + 0x2c]
jmp 0x180085bc6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007b0ec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180086f50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180086f78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180086f78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000f0c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f210
Function at 0x140017294
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 0x14001731b
mov rsi, rbx
cmp word [rax], bp
je 0x1400172da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400172c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400172c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140014ce8
mov rdi, rax
test rax, rax
je 0x140017308
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c1a0
mov rbp, rdi
xor ecx, ecx
call fcn.140014204
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 0x14001b1c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b1de
mov al, 1
jmp 0x14001b23e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b1ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b23c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001778c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b23c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b23c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b23c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b23e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001eab0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400920c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001eb83
cmp byte [rcx + 0x71], 0
je 0x14001eb83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001eb7f
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 0x14001eb44
sub eax, 1
je 0x14001eb48
cmp eax, 2
jne 0x14001eb7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400363c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001eb76
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 0x14001eb7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001eb2c
xor al, al
jmp 0x14001eb2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400363c0
add rsp, 0x60
pop rbx
ret
Function at 0x14001f0f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400920c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14001f11d
xor eax, eax
jmp 0x14001f286
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 0x14001f15d
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 0x14001f15d
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 0x14001f27e
cmp qword [rdi + 0x80], 0
je 0x14001f279
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 0x14001f197
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 0x14001f1c2
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 0x14001f27e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x14001f231
sub eax, 1
je 0x14001f231
cmp eax, 2
jne 0x14001f279
movsx ecx, byte [rsp + 0x40]
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 0x14001f27e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14001f25f
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 0x14001f279
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14001f27e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400363c0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400212c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1400212f1
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.0x140021308
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], 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 0x140021359
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 0x1400213d1
mov rcx, rbp
call fcn.14001ebc0
cmp rbx, 0xfff
jbe 0x1400213b1
nop word [rax + rax]
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 0x1400213f2
cmp rbx, rax
ja 0x140021380
test rdi, rdi
je 0x1400213d1
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 + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x1400213d4
invalid
Function at 0x140021400
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 case.default.0x140021421
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 0x14002149c
test rax, rax
jle 0x14002147c
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 0x14002149c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002149c
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
add eax, dword [rax]
pushfq
Function at 0x14002a3e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov ecx, 0x20
call fcn.14003626c
mov r9, rax
test rax, rax
je 0x14002a43e
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov rax, qword [rbx]
mov qword [r9], rax
mov rax, qword [rbx + 8]
mov qword [r9 + 8], rax
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov rax, qword [rbx + 0x10]
mov qword [r9 + 0x10], rax
movzx eax, byte [rbx + 0x18]
mov byte [r9 + 0x18], al
mov eax, dword [rbx + 0x1c]
mov dword [r9 + 0x1c], eax
jmp 0x14002a441
mov r9, rsi
mov qword [rsp + 0x40], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
lea r8, [0x14002abf0]
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 0x14002a47f
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x14002d850
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400920c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, dword [0x1400a5b38]
mov rax, qword gs:[0x58]
mov edx, 0x30
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x140095358], eax
jg 0x14002d8c6
lea rax, [0x140095310]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400363c0
add rsp, 0x1d8
ret
lea rcx, [0x14003a010]
call fcn.140036704
nop
lea rcx, [0x140095358]
call fcn.1400367c4
jmp 0x14002d88c
lea rcx, [0x140095358]
call fcn.140036830
cmp dword [0x140095358], 0xffffffff
jne 0x14002d88c
xorps xmm0, xmm0
movdqa xmmword [0x140095320], xmm0
xor eax, eax
mov qword [0x140095330], rax
movups xmmword [0x140095338], xmm0
mov qword [0x140095348], rax
mov qword [0x140095350], 0xf
mov byte [0x140095338], al
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x14002d949
lea rdx, str.WSAStartup_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001ce70
lea rdx, [0x14002bd50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14002d8ab
xor r8d, r8d
mov edx, 2
mov ecx, edx
call sub.WS2_32.dll_socket
mov qword [0x140091860], rax
jmp 0x14002d8ab
Function at 0x14002ece0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
lea r11, [rcx + r9]
mov r10, rdx
movzx r9d, r8b
lea rax, [0x140095ab0]
shl r9, 8
lea rbx, [r11 - 0xf]
add r9, rax
cmp rcx, rbx
jae 0x14002edef
nop dword [rax + rax]
movzx eax, byte [r10]
movzx edx, byte [rax + r9]
xor byte [rcx], dl
movzx eax, byte [r10 + 1]
movzx edx, byte [rax + r9]
xor byte [rcx + 1], dl
movzx eax, byte [r10 + 2]
movzx edx, byte [rax + r9]
xor byte [rcx + 2], dl
movzx eax, byte [r10 + 3]
movzx edx, byte [rax + r9]
xor byte [rcx + 3], dl
movzx eax, byte [r10 + 4]
movzx edx, byte [rax + r9]
xor byte [rcx + 4], dl
movzx eax, byte [r10 + 5]
movzx edx, byte [rax + r9]
xor byte [rcx + 5], dl
movzx eax, byte [r10 + 6]
movzx edx, byte [rax + r9]
xor byte [rcx + 6], dl
movzx eax, byte [r10 + 7]
movzx edx, byte [rax + r9]
xor byte [rcx + 7], dl
movzx eax, byte [r10 + 8]
movzx edx, byte [rax + r9]
xor byte [rcx + 8], dl
movzx eax, byte [r10 + 9]
movzx edx, byte [rax + r9]
xor byte [rcx + 9], dl
movzx eax, byte [r10 + 0xa]
movzx edx, byte [rax + r9]
xor byte [rcx + 0xa], dl
movzx eax, byte [r10 + 0xb]
movzx edx, byte [rax + r9]
xor byte [rcx + 0xb], dl
movzx eax, byte [r10 + 0xc]
movzx edx, byte [rax + r9]
xor byte [rcx + 0xc], dl
movzx eax, byte [r10 + 0xd]
movzx edx, byte [rax + r9]
xor byte [rcx + 0xd], dl
movzx eax, byte [r10 + 0xe]
movzx edx, byte [rax + r9]
xor byte [rcx + 0xe], dl
movzx eax, byte [r10 + 0xf]
add r10, 0x10
movzx edx, byte [rax + r9]
xor byte [rcx + 0xf], dl
add rcx, 0x10
cmp rcx, rbx
jb 0x14002ed10
cmp rcx, r11
jae 0x14002ee14
sub r10, rcx
nop word [rax + rax]
movzx eax, byte [r10 + rcx]
movzx edx, byte [rax + r9]
xor byte [rcx], dl
inc rcx
cmp rcx, r11
jb 0x14002ee00
mov rbx, qword [rsp + 8]
ret
Function at 0x14002ee20
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 1
je 0x14002f07e
push rbx
push r14
sub rsp, 0x48
mov qword [rsp + 0x60], rbp
mov r14, rcx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov ebx, edx
mov qword [rsp + 0x30], r12
mov ecx, ebx
mov qword [rsp + 0x28], r13
mov edi, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, ebx
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r10d, 1
mov qword [rsp + 0x70], rax
mov r8d, r10d
mov r11, rax
test ebx, ebx
je 0x14002eead
mov r9, r13
mov rdx, rax
sub r9, rax
mov byte [r9 + rdx], 0
lea rdx, [rdx + 1]
mov eax, r8d
add r8d, ebx
movzx ecx, byte [r14 + rax]
mov byte [rdx - 1], cl
sub rdi, r10
jne 0x14002ee91
movzx eax, byte [r11]
lea r12d, [rbx - 1]
mov byte [r12 + r13], al
lea r15, [r12 + r13]
mov esi, r12d
lea rdi, [0x140000000]
cmp ebx, r10d
jbe 0x14002ef51
inc r11
lea rsi, [0x140000000]
nop word [rax + rax]
movzx edi, byte [r11]
mov r8d, ebx
sub r8d, r10d
cmp r8d, r12d
jae 0x14002ef2f
mov eax, r8d
lea edx, [r8 + 1]
mov r9d, edi
add rax, r13
shl r9, 8
add rdx, r13
mov ecx, r12d
sub ecx, r8d
mov r8d, ecx
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
add rcx, r9
lea rax, [rax + 1]
movzx ecx, byte [rcx + rsi + 0x95ab0]
xor byte [rax - 1], cl
sub r8, 1
jne 0x14002ef10
xor byte [r15], dil
inc r10d
inc r11
cmp r10d, ebx
jb 0x14002eee0
mov r11, qword [rsp + 0x70]
lea rdi, [0x140000000]
xor r10d, r10d
mov esi, r12d
jmp 0x14002ef5c
xor r10d, r10d
test ebx, ebx
je 0x14002f03c
lea rcx, [rsi + rbp]
mov rsi, r11
mov qword [rsp + 0x78], rcx
nop dword [rax + rax]
movzx eax, byte [rsi]
mov r9b, 1
mov byte [rcx], r9b
mov edx, r12d
test r12d, r12d
je 0x14002efe0
mov r11d, eax
lea r12, [0x140000000]
shl r11, 8
mov rdi, rbp
sub rdi, r13
mov r8, r15
nop dword [rax + rax]
movzx eax, byte [rdi + r8]
lea r8, [r8 - 1]
add rax, r11
movzx ecx, byte [rax + r12 + 0x95ab0]
xor cl, byte [r8 + 1]
movzx eax, r9b
dec edx
add rax, r11
movzx r9d, cl
mov byte [rdx + rbp], cl
xor r9b, byte [rax + r12 + 0x95ab0]
test edx, edx
jne 0x14002efa0
lea r12d, [rbx - 1]
lea rdi, [0x140000000]
movzx eax, r9b
xor r8d, r8d
mov r9, rbp
movzx r11d, byte [rax + rdi + 0x959b0]
shl r11, 8
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov ecx, r8d
add rdx, r11
imul ecx, ebx
inc r8d
movzx eax, byte [rdx + rdi + 0x95ab0]
add ecx, r10d
mov byte [rcx + r14], al
cmp r8d, ebx
jb 0x14002f000
mov rcx, qword [rsp + 0x78]
inc r10d
inc rsi
cmp r10d, ebx
jb 0x14002ef70
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x60]
add rsp, 0x48
pop r14
pop rbx
ret