joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061110
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
inc dword [0x1400b5678]
mov dword [0x1400b567c], ecx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm0, xmmword [0x1400b56b8]
mov rcx, qword [0x1400b5600]
xor r9d, r9d
movups xmm1, xmmword [0x1400b56c8]
lea rdx, [0x1400b5670]
mov dword [0x1400b5674], eax
movaps xmmword [0x1400b5680], xmm0
lea rax, [0x1400b5608]
movups xmm0, xmmword [0x1400b56d8]
mov r8d, 0x48
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
movaps xmmword [0x1400b5690], xmm1
movsd xmm1, qword [0x1400b56e8]
movaps xmmword [0x1400b56a0], xmm0
movsd qword [0x1400b56b0], xmm1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x1400b5600]
lea rdx, [0x1400b5620]
xor eax, eax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [0x1400b56bc], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, 0x400
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0x58
ret

Function at 0x140061560
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x1400b55f8], 0
je 0x1400615b0
mov dword [0x1400b56bc], ecx
mov ecx, 0xaede7345
mov dword [0x1400b56c0], edx
call fcn.140061110
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0xc8
ret
xorps xmm0, xmm0
mov dword [rsp + 0x20], edx
xor eax, eax
lea r8, str.km.move__d___d__r
mov r9d, ecx
mov qword [rsp + 0xa0], rax
mov edx, 0x78
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call fcn.14000fbd0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140061610
mov rcx, qword [0x1400b55f0]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0xc8
ret
Function at 0x140061650
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x1400b55f8], 0
je 0x1400616c8
test ecx, ecx
je 0x14006169f
or dword [0x1400b56b8], 1
mov ecx, 0x9823ae8d
call fcn.140061110
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0xc8
ret
and dword [0x1400b56b8], 0xfffffffe
mov ecx, 0x9823ae8d
call fcn.140061110
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0xc8
ret
xorps xmm0, xmm0
lea r8, str.km.left__d__r
xor eax, eax
mov r9d, ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0xa0], rax
mov edx, 0x78
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call fcn.14000fbd0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140061723
mov rcx, qword [0x1400b55f0]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0xc8
ret
Function at 0x1400621c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rdi
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x70], rbx
mov r13, rcx
mov qword [rsp + 0x38], rbp
mov rbp, qword [rdx + 0x10]
mov qword [rsp + 0x30], rsi
mov rsi, rdx
mov qword [rsp + 0x28], r12
mov r12, qword [rdx + 0x18]
cmp r12, 0xf
jbe 0x1400621f5
mov rdx, qword [rdx]
xor edi, edi
movabs r14, 0xcbf29ce484222325
mov ecx, edi
test rbp, rbp
je 0x140062225
movabs r8, 0x100000001b3
movzx eax, byte [rdx + rcx]
inc rcx
xor r14, rax
imul r14, r8
cmp rcx, rbp
jb 0x140062212
mov rcx, qword [r13 + 0x30]
mov rax, qword [r13 + 0x18]
and rcx, r14
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 8]
je 0x140062292
mov qword [rsp + 0x20], r15
mov r15, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x140062262
mov rdx, qword [rdx]
mov rcx, rsi
cmp r12, 0xf
jbe 0x14006226e
mov rcx, qword [rsi]
cmp rbp, rax
jne 0x14006227f
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006228a
cmp rbx, r15
je 0x14006228d
mov rbx, qword [rbx + 8]
jmp 0x140062250
mov rdi, rbx
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
test rdi, rdi
je 0x140062331
mov rcx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x30]
and rax, r14
add rax, rax
lea r8, [rcx + rax*8]
lea rdx, [rcx + rax*8]
mov rax, qword [rcx + rax*8]
cmp qword [r8 + 8], rdi
jne 0x1400622eb
cmp rax, rdi
jne 0x1400622e1
mov rax, qword [r13 + 8]
mov qword [rdx], rax
mov qword [r8 + 8], rax
jmp 0x1400622f6
mov rax, qword [rdi + 8]
mov qword [r8 + 8], rax
jmp 0x1400622f6
cmp rax, rdi
jne 0x1400622f6
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
lea rcx, [rdi + 0x10]
dec qword [r13 + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
call fcn.140060080
mov edx, 0x50
mov rcx, rdi
call fcn.140073454
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rdi
ret
xor eax, eax
add rsp, 0x40
pop r14
pop r13
pop rdi
ret
Function at 0x1400637e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140063808
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140063896
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x140063a30]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x1400638ab
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0x50
pop rbx
ret

Function at 0x140063990
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140063a29
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400639ec
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret
Function at 0x1400641a0
Capabilities:
Create thread
Execute command

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
lea rcx, [rsp + 0x50]
call fcn.140060800
nop
lea rcx, [rsp + 0x50]
call fcn.14005b790
test al, al
jne 0x14006420a
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, [rsp + 0x50]
call fcn.14005b600
mov eax, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400731b0
add rsp, 0x200
pop rbx
ret
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
cmp rbx, 3
jne 0x140064239
mov r8, rbx
lea rdx, [0x14009b96c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140064263
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
cmp rbx, 1
jne 0x14006426d
mov r8, rbx
lea rdx, [0x14009b970]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14006426d
lea rcx, [rsp + 0x50]
call fcn.140063bb0
call fcn.140063e00
mov ecx, 8
call fcn.1400731d0
lea rcx, [0x1400640e0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000f900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140064307
cmp dword [rsp + 0x38], 0
je 0x1400642fb
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400642fb
cmp byte [0x1400b53a0], al
je 0x14006431b
call fcn.140064330
nop
lea rcx, [rsp + 0x50]
call fcn.14005b600
xor eax, eax
jmp 0x1400641f1
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140064f60
int3
Function at 0x140064f60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, recvfrom
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Disable_rendering_layer
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008c90
lea rdx, [0x140008e70]
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]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400731d0
mov qword [rax], 0xbb8
lea rcx, [0x140013320]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400653b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400650f1
cmp dword [rsp + 0x38], ebx
je 0x1400650e5
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400650e5
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400731d0
mov qword [rax], 0x1388
lea rcx, [0x140060130]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400653b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400650d5
cmp dword [rsp + 0x38], ebx
je 0x1400650c9
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400650c9
nop dword [rax + rax]
mov cl, 1
call fcn.1400107b0
jmp 0x1400650c0
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400728a0
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 0x1400728da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400728df
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 0x140072928
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140078e30]
cmp byte [rcx + rax], 0
je 0x140072928
dec r8
sub rdx, 1
jne 0x14007290e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140073f68
Capabilities:
Parse pe header

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

Disassembly:
movzx eax, byte [rcx]
xor edx, edx
test al, al
je 0x14009d19a
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
xor eax, 0x561e12b0
shr eax, 1
imul edx, eax, 0x21
movzx eax, byte [rcx]
test al, al
jne 0x14009d180
mov eax, edx
ret

Function at 0x14009d1a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, qword [0x14009f1f8]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov edx, 0x1000
mov r8d, 4
call qword [fcn.14009f200]
mov r11, qword [0x14009f1e8]
mov r8, rbx
mov r9, qword [0x14009f1e0]
mov r10d, 0x1000
mov edi, 0x40
nop dword [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor dl, r9b
mov ecx, edi
and ecx, 0x3f
mov rax, r11
shr rax, cl
add dl, al
mov byte [r8 - 1], dl
sub r10, 1
jne 0x14009d1f0
lea r9, [rsp + 0x40]
mov edx, 0x1000
mov r8d, 1
mov rcx, rbx
call qword [fcn.14009f200]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14009d240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
lea r9, [rsp + 0x40]
mov edx, 0x1000
mov r8d, 4
mov rbx, rcx
call qword [fcn.14009f200]
mov r11, qword [0x14009f1e8]
mov r8, rbx
mov r9, qword [0x14009f1e0]
mov r10d, 0x1000
mov edi, 0x40
nop
movzx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, edi
mov rax, r11
and ecx, 0x3f
shr rax, cl
sub dl, al
xor dl, r9b
mov byte [r8 - 1], dl
sub r10, 1
jne 0x14009d280
lea r9, [rsp + 0x40]
mov edx, 0x1000
mov r8d, 0x20
mov rcx, rbx
call qword [fcn.14009f200]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14009d340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [0x14009f1d8]
mov r14, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov r11, qword [rdi]
cmp r11, rdi
je 0x14009d3e6
nop dword [rax]
mov r10, qword [r11 + 0x20]
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x14009d3de
mov esi, dword [r10 + rcx + 0x1c]
lea rax, [r10 + rcx]
mov r9d, dword [rax + 0x20]
add rsi, r10
mov ebp, dword [rax + 0x24]
add r9, r10
mov ebx, dword [rax + 0x18]
add rbp, r10
xor r8d, r8d
test ebx, ebx
je 0x14009d3de
nop word [rax + rax]
mov ecx, dword [r9]
add rcx, r10
call fcn.14009d170
cmp eax, 0xa2b3228a
je 0x14009d3d0
inc r8d
add r9, 4
cmp r8d, ebx
jb 0x14009d3b0
jmp 0x14009d3de
movzx ecx, word [rbp + r8*2]
mov eax, dword [rsi + rcx*4]
add rax, r10
jne 0x14009d3e8
mov r11, qword [r11]
cmp r11, rdi
jne 0x14009d370
xor eax, eax
lea r9, [rsp + 0x48]
mov edx, 0x1000
mov r8d, 1
mov rcx, r14
call rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18000105c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor edi, edi
mov r12d, r9d
mov esi, r8d
mov r13, rdx
mov rbx, rcx
cmp qword [rcx + 8], rdi
jne 0x18000108c
mov eax, edi
jmp 0x180001092
mov eax, dword [rcx + 0x10]
sub eax, dword [rcx + 8]
lea edx, [rax + rsi]
call fcn.180001138
mov rcx, qword [rbx + 0x10]
mov r8, rsi
mov rdx, r13
call fcn.180006510
test r12d, r12d
je 0x180001116
mov r11, rdi
mov r9, rdi
test esi, esi
jle 0x180001116
mov r10, qword [rsp + 0x60]
movzx ecx, byte [r11 + r10]
mov r8, qword [rbx + 0x10]
mov eax, 0x8fb823ef
inc r11
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
imul edx, edx, 0x1c8
sub ecx, edx
imul edi
add cl, 0x36
xor byte [r9 + r8], cl
sar edx, 2
mov ecx, edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
neg ecx
sbb rax, rax
inc edi
inc r9
and r11, rax
cmp edi, esi
jl 0x1800010bd
add qword [rbx + 0x10], rsi
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180002cf4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x18001a1d0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
lea rax, vtable.CTcpSocket.0
mov rbx, rcx
mov qword [rcx + 0x10], rdi
mov dword [rcx + 0x18], edi
mov qword [rcx], rax
mov dword [rcx + 0x58], edi
mov qword [rcx + 0x48], rdi
mov qword [rcx + 0x50], rdi
lea rax, vtable.CBuffer.0
lea rdx, [rsp + 0x20]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x78], edi
mov qword [rcx + 0x68], rdi
mov qword [rcx + 0x70], rdi
mov qword [rcx + 0x80], rax
mov dword [rcx + 0x98], edi
mov qword [rcx + 0x88], rdi
mov qword [rcx + 0x90], rdi
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov qword [rbx + 8], rax
xchg dword [rbx + 0x20], ecx
or qword [rbx + 0xb0], 0xffffffffffffffff
mov qword [rbx + 0xa0], rdi
mov qword [rbx + 0xa8], rdi
mov dword [rbx + 0x1c], edi
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800064e0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x180002dd0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x20], edi
je 0x180002e3f
mov rcx, qword [rcx + 0xb0]
lea r9, [rax + 8]
mov edx, 0xffff
mov r8d, 0x80
mov dword [rax + 8], 1
mov dword [rax - 0x18], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rbx + 0x20], edi
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
or qword [rbx + 0xb0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800033c8
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov esi, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x180003407
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x1800033f4
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
and qword [rsp + 0x20], 0
xor r9d, r9d
lea eax, [rsi + 0xe]
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x80]
mov dword [rsp + 0x60], eax
call fcn.18000105c
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rbx, [rdi + 0x30]
lea rcx, [rdi + 0x80]
lea r8d, [r9 + 0xa]
mov rdx, rbx
call fcn.18000105c
lea rcx, [rdi + 0x80]
mov r9d, 1
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x20], rbx
call fcn.18000105c
cmp qword [rdi + 0x88], 0
jne 0x18000347a
xor ebx, ebx
jmp 0x180003486
mov ebx, dword [rdi + 0x90]
sub ebx, dword [rdi + 0x88]
mov r12, qword [rdi + 0x88]
mov r15d, 0x40000
jmp 0x1800034c3
xor esi, esi
mov rcx, qword [rdi + 0xb0]
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1800034b8
inc esi
cmp esi, 0xf
jl 0x180003497
cmp esi, 0xf
je 0x1800034ef
add r12, r15
sub ebx, r15d
cmp ebx, r15d
jge 0x180003495
test ebx, ebx
jle 0x1800034ef
xor esi, esi
mov rcx, qword [rdi + 0xb0]
xor r9d, r9d
mov r8d, ebx
mov rdx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1800034ef
inc esi
cmp esi, 0xf
jl 0x1800034ce
mov rax, qword [rdi + 0x88]
lea rcx, [rdi + 0x80]
mov edx, 0x400
mov qword [rdi + 0x90], rax
call fcn.1800011ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
jne 0x180003526
dec dword [rdi + 0x18]
jne 0x180003526
and dword [rdi + 0x14], 0
and dword [rdi + 0x10], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
Function at 0x1800035a8
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov eax, dword [rcx + 0x21c]
xor esi, esi
movzx ebx, r8w
mov rbp, rdx
mov rdi, rcx
test eax, eax
jne 0x1800035dc
mov dword [rcx + 0x23c], 0x598
jmp 0x1800035f0
cmp eax, 0x598
jbe 0x1800035ea
xor eax, eax
jmp 0x18000376b
mov dword [rcx + 0x23c], eax
mov dword [rcx + 0x8c], esi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [rdi + 0xd8], 0x598
lea rcx, [rdi + 0xe8]
mov qword [rdi + 0x258], rax
mov eax, dword [rdi + 0x70]
mov dword [rdi + 0xdc], eax
mov eax, dword [rdi + 0x74]
mov dword [rdi + 0xe0], eax
mov edx, dword [rdi + 0xdc]
call fcn.180001694
mov r15d, 1
mov qword [rdi + 0x4c], 5
mov dword [rdi + 0x48], r15d
mov dword [rdi + 0x54], r15d
mov eax, r15d
lock xadd qword [0x18001f520], rax
add rax, r15
mov qword [rdi + 0x68], rax
jne 0x180003676
mov eax, r15d
lock xadd qword [0x18001f520], rax
add rax, r15
mov qword [rdi + 0x68], rax
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x50], 0x40000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x50], 0x40000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx r8d, bx
mov rdx, rbp
mov rcx, rdi
call fcn.180003780
test eax, eax
je 0x180003725
lea rax, [rdi + 0x80]
lea r8, [0x180003960]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.180006eec
mov qword [rdi + 0x78], rax
test rax, rax
je 0x180003718
mov rcx, qword [rdi + 0x40]
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x180003769
mov r9d, 0x65f
mov edx, 8
jmp 0x180003733
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, inet_ntoa
mov r9d, eax
lea r8, str.CUdpSocket::Start
mov rcx, rdi
call fcn.1800048fc
mov dword [rdi + 0x48], esi
mov qword [rdi + 0x4c], 5
mov dword [rdi + 0x54], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.180004460
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret