joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015370
Capabilities:
Create pipe
Create process on windows
Create thread
Create two anonymous pipes

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x18
xor eax, eax
mov dword [rsp + 0x60], 1
mov qword [0x180090ea0], rax
lea r8, [rsp + 0x50]
mov qword [0x180090e20], rax
lea rdx, [0x180090e08]
mov eax, 5
lea rcx, [0x180090e38]
movups xmmword [0x180090e40], xmm0
xor ebx, ebx
xor r9d, r9d
movups xmmword [0x180090e70], xmm0
mov dword [0x180090e40], 0x68
movups xmmword [0x180090e80], xmm0
mov word [0x180090e80], ax
movups xmmword [0x180090e50], xmm0
mov dword [0x180090e7c], 1
movups xmmword [0x180090e60], xmm0
mov qword [rsp + 0x58], rbx
movups xmmword [0x180090e90], xmm0
movups xmmword [0x180090e10], xmm0
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18001556c
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x180090eb8]
lea rcx, [0x180090e00]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18001556c
mov rcx, qword [0x180090e08]
lea edx, [rbx + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18001555d
mov rcx, qword [0x180090e00]
lea edx, [rbx + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18001555d
mov rax, qword [0x180090e38]
lea rdx, [rsp + 0x68]
movups xmm0, xmmword [str.cmd.exe]
or dword [0x180090e7c], 0x100
xor r9d, r9d
mov qword [0x180090e90], rax
xor r8d, r8d
mov rax, qword [0x180090eb8]
xor ecx, ecx
mov qword [0x180090e98], rax
lea rax, [0x180090e10]
mov qword [rsp + 0x48], rax
lea rax, [0x180090e40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18001550b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateProcess_failed___d__n
jmp 0x180015579
mov rcx, qword [0x180090eb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [0x180090ea8]
mov dword [0x180090e2c], ebx
mov qword [rsp + 0x28], rax
lea r8, [0x180015210]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180090eb0], rax
test rax, rax
jne 0x180015580
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateThread_failed___d__n
jmp 0x180015579
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetHandleInformation_failed___d__n
jmp 0x180015579
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreatePipe_failed___d__n
mov edx, eax
call fcn.180001330
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x80
pop rbx
ret
Function at 0x1800155a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rdi, rcx
mov r8, rcx
mov dword [rsp + 0x28], r14d
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x20], r14
mov r9d, ebp
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rbp
mov rcx, rax
call fcn.1800625f0
mov r9d, ebp
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x38], r14
mov r9d, ebp
mov qword [rsp + 0x30], r14
mov r8, rsi
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1800625f0
mov qword [rsp + 0x38], r14
mov r9d, ebp
mov qword [rsp + 0x30], r14
mov r8, rsi
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rsi
call fcn.1800620a0
lea eax, [rbx - 1]
mov qword [rsp + 0x58], r14
xorps xmm0, xmm0
movsxd r8, eax
mov rdx, rdi
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x48]
movups xmmword [rsp + 0x48], xmm0
call fcn.18002a330
mov rcx, rdi
call fcn.1800620a0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov rbx, qword [rsp + 0x48]
cmp rdi, 0xf
mov rcx, rbp
cmova rax, rbx
inc rcx
cmp byte [rax + rcx], r14b
jne 0x1800156c5
add rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
cmp rdi, 0xf
lea rcx, [rsp + 0x48]
mov r10, rax
cmova rcx, rbx
sub rax, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
mov byte [rax + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x1800156f0
lea rcx, [r10 - 1]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x180015702
movzx eax, word [0x18007115c]
mov word [rcx], ax
movzx eax, byte [0x18007115e]
mov byte [rcx + 2], al
inc rbp
cmp byte [r10 + rbp], r14b
jne 0x180015720
mov rcx, qword [0x180090e08]
lea r9, [0x180090eac]
mov r8, rbp
mov qword [rsp + 0x20], r14
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, 0xf
jbe 0x180015782
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001577a
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001577a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1800620a0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180061d10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180018c70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
lea rax, [rsp + 0x50]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 2
lea rdx, str.SoftwareAppDataLowSoftwareMicrosoft_scriptbasic
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180018d03
cmp eax, 2
jne 0x180018cff
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdx
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], edx
lea rdx, str.SoftwareAppDataLowSoftwareMicrosoft_scriptbasic
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x180018d03
xor al, al
jmp 0x180018d55
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180018d10
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061d10
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x18001dad0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareAppDataLowSoftwareMicrosoft_scriptbasic
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
jne 0x18001db4f
mov rcx, qword [rsp + 0x30]
lea rdx, str.installtime
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x70]
je 0x18001dbbb
lea rcx, [rsp + 0x30]
call fcn.18001ce10
cmp qword [rsp + 0x48], 7
lea r9, [rsp + 0x30]
lea r8, str.installtime
cmova r9, qword [rsp + 0x30]
call fcn.180018c70
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18001dbbb
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001dbb6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001dbb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800620a0
mov ecx, 8
call fcn.1800624dc
lea rcx, [0x18001d4c0]
mov r9, rax
lea r8, [0x180035590]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18001dc29
cmp dword [0x1800914e0], edi
jne 0x18001dc22
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [0x1800914d8], xmm1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rsp + 0x38], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18001e7b0
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 0x18001e7d8
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 0x18001e7fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18001e800
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18001e859
test ecx, ecx
jle 0x18001e839
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 0x18001e859
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18001e859
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 0x18001e880
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 0x18001e8a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18001e8b8
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 0x18001e8d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001e8d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001e912
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 0x18001e9ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18001e94d
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 0x18001e98e
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 0x18001e9ae
cmp rbx, rax
ja 0x18001e960
test rbx, rbx
je 0x18001e9ae
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 0x18001ee10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18001ee3d
xor eax, eax
jmp 0x18001efa9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18001ee77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18001ee77
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 0x18001efa9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18001ef9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001eeba
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 0x18001eee5
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 0x18001efa1
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 0x18001ef54
sub eax, 1
je 0x18001ef54
cmp eax, 2
jne 0x18001ef9c
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 0x18001efa1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18001ef82
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 0x18001ef9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18001efa1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180061d10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18001fef0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x200
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x1800915f0], eax
inc eax
cmp eax, 1
jne 0x18001ff3d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800915f4], eax
test bl, bl
je 0x18001ffe1
xor ebx, ebx
lock xadd dword [0x1800915f4], ebx
test ebx, ebx
je 0x18001ffe1
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0x210], rsi
add rcx, qword [0x18008b568]
lea rsi, [0x18008b560]
mov dword [rsp + 0x3c], 0
cmp rcx, 1
jbe 0x18001ff96
mov rax, qword [0x18008b560]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x18001ff98
mov al, 1
lea rcx, str.C:_boost_1_84_0_boost_asiodetailimplwinsock_init.ipp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], rsi
lea rcx, str.throw_on_error
mov rsi, qword [rsp + 0x210]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0x48
mov dword [rsp + 0x34], 0x1a
test al, 1
jne 0x180020005
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.180061d10
mov rbx, qword [rsp + 0x218]
add rsp, 0x200
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, str.winsock
lea rcx, [rsp + 0x38]
call fcn.18000a040
int3

Function at 0x180021980
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180021a53
cmp byte [rcx + 0x71], 0
je 0x180021a53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180021a4f
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 0x180021a14
sub eax, 1
je 0x180021a18
cmp eax, 2
jne 0x180021a4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180021a46
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 0x180021a4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800219fc
xor al, al
jmp 0x1800219fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x60
pop rbx
ret
Function at 0x18003cff0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 8], rax
cmp qword [r8 + 0x18], 0xf
mov r10, r8
mov dword [rsp], r9d
jbe 0x18003d014
mov r10, qword [r8]
cmp qword [rdx + 0x18], 0xf
mov rax, qword [rdx + 0x10]
jbe 0x18003d027
add rax, qword [rdx]
mov rdx, qword [rdx]
jmp 0x18003d02a
add rax, rdx
xor r8d, r8d
cmp rdx, rax
je 0x18003d05a
sub r10, rdx
nop word [rax + rax]
movzx ecx, byte [rsp + r8]
xor cl, byte [rdx]
inc r8
mov byte [r10 + rdx], cl
and r8d, 3
inc rdx
cmp rdx, rax
jne 0x18003d040
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.180061d10
add rsp, 0x18
ret

Function at 0x18003d070
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0x19], 0
mov r12, r9
mov rdi, r8
mov r10, rdx
mov rbp, rcx
jge 0x18003d0e0
mov rax, qword [rcx + 0x80]
xor ecx, ecx
mov rdx, qword [rax + 0x10]
mov dword [rsp + 0x20], edx
test r8, r8
je 0x18003d0ce
nop word [rax + rax]
mov rax, rcx
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
xor byte [r10 + rcx], al
inc rcx
cmp rcx, rdi
jb 0x18003d0b0
mov rax, qword [rbp + 0x80]
mov rcx, rdi
and ecx, 3
je 0x18003d0dc
shl cl, 3
ror rdx, cl
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x80]
mov rdx, r10
mov rbx, qword [rax]
add rbx, 0x50
mov r15, qword [rbx + 0x10]
lea r14, [rbx + 0x10]
mov rcx, rbx
call fcn.180020d40
mov r10, qword [rbp + 0x80]
mov rax, qword [r10]
cmp dword [rax + 0x70], 1
jne 0x18003d19a
cmp qword [rbx + 0x18], 0xf
jbe 0x18003d127
mov rdx, qword [rbx]
mov rbx, rdx
add rdx, qword [r14]
jmp 0x18003d12d
mov rdx, qword [r14]
add rdx, rbx
lea rax, [r15 + rbx]
cmp rax, rdx
je 0x18003d19a
lea rbx, [0x180070240]
nop dword [rax]
cmp dword [r10 + 0x18], 0
movzx r8d, byte [rax]
mov r9d, r8d
movzx r11d, byte [r8 + rbx]
je 0x18003d163
mov ecx, dword [r10 + 0x1c]
and r9d, 0x3f
shl ecx, 6
or r9d, ecx
jmp 0x18003d172
mov r8d, 0xff
mov ecx, r11d
sar r8d, cl
and r9d, r8d
mov dword [r10 + 0x1c], r9d
mov ecx, dword [r10 + 0x18]
add ecx, 0x10
shl ecx, 4
add ecx, r11d
movzx r8d, byte [rcx + rbx]
mov dword [r10 + 0x18], r8d
cmp r8d, 1
je 0x18003d1b0
inc rax
cmp rax, rdx
jne 0x18003d140
sub qword [rbp + 0x30], rdi
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x28], select
call fcn.180012560
mov qword [rsp + 0x30], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r12], xmm0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180055320
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18005534a
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.error_while_reading
mov rcx, rbx
call fcn.180055360
int3
Function at 0x18005d840
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0x80000000
mov dword [rsp + 4], 0
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x18005d88e
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp]
dec eax
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x18005d88e
jmp 0x18005d8c6
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x18005d8b2
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, 0xedb88320
mov dword [rsp + 8], eax
jmp 0x18005d8bc
mov eax, dword [rsp + 0x28]
shr eax, 1
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
mov dword [rsp + 0x28], eax
jmp 0x18005d85c
mov eax, dword [rsp + 4]
add rsp, 0x10
pop rdi
ret

Function at 0x18005d960
Capabilities:
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x18005d97a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x18005d9a3
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x18006c040]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x18005d972
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret

Function at 0x18005d9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x18005d9da
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x18005da06
mov eax, dword [rsp + 0x20]
shl eax, 8
mov ecx, dword [rsp + 0x20]
shr ecx, 0x18
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x18006c440]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x18005d9d2
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret

Function at 0x180061ad4
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 0x180061b0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180061b13
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 0x180061b5c
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 0x180061b5c
dec r8
sub rdx, 1
jne 0x180061b42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret