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

Disassembly:
jmp 0x140017a30
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140029040]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400300f5]
call fcn.140011771
nop
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
lea rcx, [rbp + 0x10]
call fcn.140011271
nop
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor1
lea rcx, [rbp + 0x38]
call fcn.140011271
nop
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor2
lea rcx, [rbp + 0x60]
call fcn.140011271
nop
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor3
lea rcx, [rbp + 0x88]
call fcn.140011271
nop
xor ecx, ecx
call fcn.140019330
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
nop
lea rcx, [rbp + 0xc8]
call fcn.140011357
nop
lea rax, [rbp + 0x10]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x108]
add rax, 0xa0
mov qword [rbp + 0x148], rax
jmp 0x140017b13
mov rax, qword [rbp + 0x128]
add rax, 0x28
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x148]
cmp qword [rbp + 0x128], rax
je 0x140017b47
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x168], rax
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x168]
call fcn.1400112c1
nop
jmp 0x140017b01
mov ecx, 2
call fcn.140011366
nop
lea rdx, str.Spoof_i
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400113f2
lea rdx, [0x1400113c0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14001156e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c9a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c9c0
xor al, al
jmp 0x14001ca41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c9d3
xor al, al
jmp 0x14001ca41
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 0x14001c9fd
xor al, al
jmp 0x14001ca41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ca11
xor al, al
jmp 0x14001ca41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ca23
xor al, al
jmp 0x14001ca41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ca3f
xor al, al
jmp 0x14001ca41
mov al, 1
add rsp, 0x38
ret
Function at 0x14001a290
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400117a8
movzx eax, al
test eax, eax
jne 0x14001a2b0
mov ecx, 7
call fcn.14001168b
nop
mov byte [rsp + 0x20], 0
call fcn.1400116bd
mov byte [rsp + 0x21], al
cmp dword [0x140029520], 1
jne 0x14001a2d4
mov ecx, 7
call fcn.14001168b
nop
jmp 0x14001a32c
cmp dword [0x140029520], 0
jne 0x14001a327
mov dword [0x140029520], 1
lea rdx, [0x140023770]
lea rcx, [0x140023440]
call fcn.14001139d
test eax, eax
je 0x14001a308
mov eax, 0xff
jmp 0x14001a431
lea rdx, [0x140023330]
lea rcx, [section..rdata]
call fcn.1400116a9
mov dword [0x140029520], 2
jmp 0x14001a32c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011672
call fcn.14001159b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001a389
mov rcx, qword [rsp + 0x30]
call fcn.1400112f8
movzx eax, al
test eax, eax
je 0x14001a389
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140031020]
nop
call fcn.1400115f5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001a3bd
mov rcx, qword [rsp + 0x38]
call fcn.1400112f8
movzx eax, al
test eax, eax
je 0x14001a3bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011749
nop
call fcn.14001a4e0
mov dword [rsp + 0x28], eax
call fcn.14001156e
movzx eax, al
test eax, eax
jne 0x14001a3dc
mov ecx, dword [rsp + 0x28]
call fcn.1400110a0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001a3eb
call fcn.140011762
nop
xor edx, edx
mov cl, 1
call fcn.1400112c6
mov eax, dword [rsp + 0x28]
jmp 0x14001a431
add rsp, 0x68
ret
Function at 0x140011000
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140011028
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001104e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140011050
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400110a9
test ecx, ecx
jle 0x140011089
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400110a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400110a9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400110d0
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 0x1400110f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140011108
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 0x140011124
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011126
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011162
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400111fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001119d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400111de
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400111fe
cmp rbx, rax
ja 0x1400111b0
test rbx, rbx
je 0x1400111fe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140011660
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001168d
xor eax, eax
jmp 0x1400117f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400116c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400116c7
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 0x1400117f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400117ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001170a
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 0x140011735
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 0x1400117f1
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 0x1400117a4
sub eax, 1
je 0x1400117a4
cmp eax, 2
jne 0x1400117ec
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 0x1400117f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400117d2
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 0x1400117ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400117f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140056a20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x1400128e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140012914
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140012900
ret
Function at 0x140014340
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140014413
cmp byte [rcx + 0x71], 0
je 0x140014413
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001440f
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 0x1400143d4
sub eax, 1
je 0x1400143d8
cmp eax, 2
jne 0x14001440f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140056a20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140014406
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 0x14001440f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400143bc
xor al, al
jmp 0x1400143bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140056a20
add rsp, 0x60
pop rbx
ret
Function at 0x140029f50
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002a015
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002a015
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14002a02e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14002a005
cmp byte [rcx], 0x5c
jne 0x140029ffe
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140029ffe
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140029fec
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140029ffb
test r8b, 0x10
jne 0x140029ffe
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140029ffe
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140021610
test edi, edi
jne 0x140029f70
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140021600
int3
Function at 0x14004c900
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
lea rax, [0x1400b1de8]
mov qword [rcx], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
lea rcx, str.WindowsEnv_singleton_destroyed._Unsupported_behavior__n
mov r9, rax
lea r8d, [rdx + 0x36]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3

Function at 0x14004f3b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r10, r9
mov rax, r8
mov rdi, rdx
lea r9, [rbp - 0x51]
mov r15, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x10010]
mov r8d, r10d
mov rdx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004f533
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xc8], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rbp - 0x29], rbx
mov r8d, eax
mov qword [rbp - 0x19], rbx
xor edx, edx
mov qword [rbp - 0x11], r14
mov esi, ebx
mov qword [rbp - 0x59], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rbp - 0x59]
mov r8d, eax
test rdx, rdx
je 0x14004f483
lea rcx, [rbp - 0x29]
call fcn.1400146c0
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rbp - 0x11]
mov rsi, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x29]
movups xmm1, xmmword [rbp - 0x19]
cmp r14, 0x10
mov r14, qword [rsp + 0xc8]
movups xmm0, xmmword [rbp - 0x29]
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rsi
mov rsi, qword [rsp + 0xd0]
lea rcx, [r15 + 0x10018]
cmovae rax, rbx
cmp qword [r15 + 0x10030], 0x10
mov qword [rbp - 0x49], rax
movups xmmword [rbp + 7], xmm1
movups xmmword [rbp - 9], xmm0
jb 0x14004f4cf
mov rcx, qword [r15 + 0x10018]
mov rax, qword [r15 + 0x10028]
lea r9, [rbp - 0x49]
mov qword [rbp - 0x39], rcx
lea r8, [rbp - 0x39]
mov rcx, rdi
mov qword [rbp - 0x31], rax
mov edx, 5
call fcn.14003a340
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x14004f536
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f52c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f52c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056a40
jmp 0x14004f536
mov qword [rdi], rbx
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140056a20
add rsp, 0xd8
pop r15
pop rdi
pop rbx
pop rbp
ret
Function at 0x140051a80
Capabilities:
Encode data using xor

Disassembly:
imul eax, edx, 0xc6a4a793
lea r9, [rcx + rdx]
mov r10, rcx
add rcx, 4
xor eax, r8d
cmp rcx, r9
ja 0x140051ae5
nop dword [rax]
movzx r8d, byte [r10 + 3]
lea rdx, [r10]
shl r8d, 8
mov r10, rcx
movzx ecx, byte [rdx + 2]
or r8d, ecx
movzx ecx, byte [rdx + 1]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rdx]
shl r8d, 8
or r8d, ecx
add r8d, eax
imul eax, r8d, 0xc6a4a793
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
lea rcx, [r10 + 4]
cmp rcx, r9
jbe 0x140051aa0
sub r9, r10
sub r9, 1
je 0x140051b0e
sub r9, 1
je 0x140051b04
cmp r9, 1
jne 0x140051b21
movzx ecx, byte [r10 + 2]
shl ecx, 0x10
add eax, ecx
movzx ecx, byte [r10 + 1]
shl ecx, 8
add eax, ecx
movzx ecx, byte [r10]
add ecx, eax
imul eax, ecx, 0xc6a4a793
mov ecx, eax
shr ecx, 0x18
xor eax, ecx
ret

Function at 0x140055dbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140055df6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140055dfb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140055e44
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140055e44
dec r8
sub rdx, 1
jne 0x140055e2a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400577f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140057842
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140057842
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140057842
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140057842
cmp dword [rcx + 0x84], 0xe
jbe 0x140057842
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140057844
xor al, al
add rsp, 0x28
ret
Function at 0x14006cce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xad6], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14006cda9
cmp qword [rcx + 0x270], 0
je 0x14006cd5e
mov qword [rsp + 0x40], rbx
call fcn.14005c310
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14005c690
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x270]
movzx edx, bl
mov rcx, rdi
call fcn.14005c690
mov rbx, qword [rsp + 0x40]
jmp 0x14006cda9
mov ecx, esi
test edx, edx
je 0x14006cd6e
sub ecx, 1
je 0x14006cd6e
cmp ecx, 1
jne 0x14006cda9
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1400b7398]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14006cfd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14006d012
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14006d1b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x218]
mov r14, qword [rcx + r8*8 + 0x1d0]
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14006d2ba
lea rax, [0x14006d060]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14006d2ba
cmp qword [rbx], 0
je 0x14006d241
test rdi, rdi
je 0x14006d2ba
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14007f9b0
cmp eax, 0xffffffff
je 0x14006d2ba
test al, 1
je 0x14006d2ba
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14006d299
mov eax, dword [rbp + 0x6ec]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x14006d2f4
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14006d2ba
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x14006d333
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14006d303
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x14006d333
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x14006d336
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140058580
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14006cdc0
mov dword [rbp + 0xd94], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140056a20
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14006d850
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x268], 0
je 0x14006d86d
call fcn.140066d50
test eax, eax
je 0x14006d899
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1d0]
cmp rcx, 0xffffffffffffffff
je 0x14006d899
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret