joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026fe0
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x14015c4d8]
xor r15d, r15d
mov r14, rcx
mov dword [rbx + 0x2f64], r15d
test rcx, rcx
je 0x14002710b
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x2f68]
mov dword [rbx + 0x2f64], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x140027044
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.1400281b0
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x14002705a
mov edx, 8
mov rcx, rdi
call fcn.1400281b0
movsxd rcx, dword [rdi]
mov ebp, r15d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
cmp dword [rbx + 0x2f78], r15d
jle 0x1400270a5
mov rsi, r15
nop word [rax + rax]
mov r9, qword [rbx + 0x2f80]
mov r8, rdi
add r9, rsi
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rbx + 0x2f78]
jl 0x140027080
mov eax, dword [rdi]
lea rdx, [0x140058ed4]
test eax, eax
lea rdi, [0x14015c4cc]
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f70]
cmove ecx, r15d
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.1400165e0
mov rbp, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x140027101
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x1400323c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x140032551
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x140032430
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.140031de0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.140031440
mov dword [rbx + 0x80], 0
jmp 0x14003253d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.140030300
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004d6d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
lea rdx, str.Rust
lea rcx, str.UnityWndClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
je 0x14004d71d
mov edx, 1
cmp rax, rdi
jne 0x14004d724
mov rdx, 0xffffffffffffffff
xor ebx, ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
movd xmm0, dword [rsp + 0x48]
lea edx, [rbx + 1]
movd xmm1, dword [rsp + 0x4c]
lea rcx, [0x140058fd8]
mov rsi, qword [0x14015c4d8]
mov r8d, 0xc030f
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [0x14015ba80], xmm0
xorps xmm0, xmm0
movss dword [0x14015ba84], xmm1
movaps xmm1, xmmword [0x14005a230]
movups xmmword [rsi + 0x1638], xmm0
movups xmmword [rsi + 0x1668], xmm1
mov eax, dword [rsi + 0x1b08]
or eax, 1
mov qword [rsi + 0x1b18], rbx
mov dword [rsi + 0x1b08], eax
or eax, 2
mov qword [rsi + 0x1b20], rbx
mov dword [rsi + 0x1b0c], 1
movss xmm0, dword [0x14015ba80]
movss xmm1, dword [0x14015ba84]
movss dword [rsi + 0x1b28], xmm0
movss dword [rsi + 0x1b2c], xmm1
mov dword [rsi + 0x1b08], eax
mov dword [rsi + 0x1b10], 1
call fcn.14001ea60
call fcn.140007040
call fcn.140020d40
lea ecx, [rbx + 0x2d]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x14004d847
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x14015b70c], bl
sete al
mov byte [0x14015b70c], al
jmp 0x14004d84e
movzx eax, byte [0x14015b70c]
mov edx, 0xffffffec
mov rcx, rdi
test al, al
je 0x14004d892
mov r8d, 0x80000
call qword [sym.imp.USER32.dll_SetWindowLongA]
cmp byte [0x14015b70c], 0
movaps xmm0, xmmword [0x14005a310]
movaps xmm1, xmmword [0x14005a2f0]
movups xmmword [rsi + 0x1638], xmm0
movups xmmword [rsi + 0x1668], xmm1
je 0x14004d89e
call fcn.14004b630
jmp 0x14004d89e
mov r8d, 0x80020
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400505b0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140050170
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400501a1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14015c798]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14015c7a8]
lea rdx, [rdi + rdi]
call fcn.140011490
mov rax, qword [0x14015c798]
lea r9, [rdi - 1]
mov qword [0x14015c7c0], r9
mov qword [0x14015c7c8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140050342
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14015c7a8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14005028c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140050303
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1400502c9
mov r10, qword [rdx]
cmp r10, rax
je 0x1400502c3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140050303
cmp r9, rdx
je 0x1400502df
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x140050317
cmp r9, rdx
jne 0x1400502d0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14005033d
mov r9, qword [0x14015c7c0]
jmp 0x140050211
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140050303
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140050350
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140050381
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14015c7d8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14015c7e8]
lea rdx, [rdi + rdi]
call fcn.140011490
mov rax, qword [0x14015c7d8]
lea r9, [rdi - 1]
mov qword [0x14015c800], r9
mov qword [0x14015c808], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140050522
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14015c7e8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14005046c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400504e3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1400504a9
mov r10, qword [rdx]
cmp r10, rax
je 0x1400504a3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400504e3
cmp r9, rdx
je 0x1400504bf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x1400504f7
cmp r9, rdx
jne 0x1400504b0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14005051d
mov r9, qword [0x14015c800]
jmp 0x1400503f1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400504e3
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140051414
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14016956d
xor al, al
jmp 0x1401696cf
mov rax, qword [0x1401896c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401896c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401896d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401896d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401896e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401896e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401896f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401896f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140189700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1401696c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140169619
mov r11d, 2
jmp 0x14016963d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140169633
mov r11d, 1
jmp 0x14016963d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1401696e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140169682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14016969a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1401696aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1401696b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140169600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1401696ca
Function at 0x180001667
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x438
lea rdx, [rbp - 0x38]
sub rdx, rsp
sub rsp, 0x20
lea rcx, [rsp + 0x20]
call fcn.180003749
add rsp, 0x20
sub rsp, 0x20
mov rcx, 0x2710
call qword [sym.imp.kernel32.dll_Sleep]
add rsp, 0x20
sub rsp, 0x20
mov rcx, 0x202
lea rdx, [rbp - 0x438]
call qword [sym.imp.ws2_32.dll_WSAStartup]
add rsp, 0x20
test rax, rax
jne 0x18000169b
lea rax, [0x180005010]
mov qword [rbp - 0x448], rax
sub rsp, 0x20
lea rcx, [0x18000507e]
mov rdx, 0xffffffffffffffff
lea r8, [rbp - 0x450]
call fcn.180002b43
add rsp, 0x20
sub rsp, 0x20
lea rcx, [rbp - 0x450]
call fcn.180003b15
add rsp, 0x20
mov qword [rbp - 0x458], rax
sub rsp, 0x20
mov rcx, qword [rbp - 0x448]
mov rdx, qword [rbp - 0x458]
call fcn.180001e02
add rsp, 0x20
test rax, rax
jne 0x18000176a
lea rax, [0x180005010]
cmp qword [rbp - 0x448], rax
jne 0x18000175c
lea rax, [0x180005047]
mov qword [rbp - 0x448], rax
jmp 0x18000176a
lea rax, [0x180005010]
mov qword [rbp - 0x448], rax
sub rsp, 0x20
mov rcx, 0x2bf20
call qword [sym.imp.kernel32.dll_Sleep]
add rsp, 0x20
jmp 0x18000171c
Function at 0x180002723
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov qword [rbp - 0x40], 0xa
cmp qword [rbp + 0x28], 0
je 0x180002770
mov edx, 0xffffffff
sub rsp, 0x20
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
add rsp, 0x20
mov rsi, qword [rbp + 0x18]
jmp 0x18000280b
sub rsp, 0x30
mov rcx, qword [rbp + 0x10]
mov rdx, 0
lea r8, [rbp - 0x68]
mov r9, 0
mov qword [rsp + 0x20], 0
call fcn.180002ca9
add rsp, 0x30
sub rsp, 0x30
mov rcx, 0
mov rdx, 0
lea r8, [rbp - 0x68]
mov r9, 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ws2_32.dll_select]
add rsp, 0x30
cmp eax, 1
jne 0x180002816
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, rsi
mov r8, qword [rbp + 0x20]
mov r9, 0
call qword [sym.imp.ws2_32.dll_send]
add rsp, 0x20
test eax, eax
jle 0x180002816
sub qword [rbp + 0x20], rax
add rsi, rax
dec qword [rbp - 0x40]
je 0x180002816
cmp qword [rbp + 0x20], 0
jne 0x180002779
cmp qword [rbp + 0x28], 0
je 0x18000282f
sub rsp, 0x20
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.kernel32.dll_SetEvent]
add rsp, 0x20
mov rax, qword [rbp + 0x20]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret

Function at 0x180002844
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x28
sub rsp, 0x30
mov rcx, qword [rbp + 0x10]
mov rdx, 0
lea r8, [rbp - 0x60]
mov r9, qword [rbp + 0x28]
mov qword [rsp + 0x20], 0
call fcn.180002ca9
add rsp, 0x30
lea r12, [rbp - 0x48]
cmp qword [rbp + 0x28], 0
jne 0x1800028a2
xor r12, r12
sub rsp, 0x30
mov rcx, 0
lea rdx, [rbp - 0x60]
mov r8, 0
mov r9, 0
mov qword [rsp + 0x20], r12
call qword [sym.imp.ws2_32.dll_select]
add rsp, 0x30
cmp rax, 1
jne 0x1800028f5
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x20]
mov r9, 0
call qword [sym.imp.ws2_32.dll_recv]
add rsp, 0x20
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret
Function at 0x18000295a
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x448
lea rdx, [rbp - 0x38]
sub rdx, rsp
sub rsp, 0x20
lea rcx, [rsp + 0x20]
call fcn.180003749
add rsp, 0x20
sub rsp, 0x20
lea rcx, [rbp - 0x68]
mov rdx, 0x30
call fcn.180003749
add rsp, 0x20
mov rax, qword [rbp + 0x18]
mov dword [rbp - 0x64], eax
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x5c], 6
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, 0
lea r8, [rbp - 0x68]
lea r9, [rbp - 0x70]
call qword [sym.imp.ws2_32.dll_getaddrinfo]
add rsp, 0x20
cmp rax, 0
jne 0x180002a29
mov rsi, qword [rbp - 0x70]
jmp 0x180002a23
cmp qword [rbp + 0x18], 2
jne 0x180002a1f
cmp dword [rsi + 4], 2
jne 0x180002a1f
mov rdx, qword [rsi + 0x20]
xor rax, rax
mov eax, dword [rdx + 4]
mov qword [rbp - 0x480], rax
sub rsp, 0x20
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
add rsp, 0x20
jmp 0x180002a29
mov rsi, qword [rsi + 0x28]
cmp rsi, 0
jne 0x1800029ed
mov rax, qword [rbp - 0x480]
add rsp, 0x448
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret

Function at 0x180002a44
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov rbp, rsp
push rax
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x400
movabs rax, 0xfffefdfc
mov rcx, 0x40
mov dword [rbp + rcx*4 - 0x444], eax
sub rax, 0x4040404
dec rcx
jne 0x180002a80
xor rax, rax
mov rdi, qword [rbp + 0x10]
xor rbx, rbx
mov rsi, qword [rbp + 0x18]
jmp 0x180002aa9
inc bl
dec rsi
je 0x180002a99
mov dl, byte [rcx + rbp - 0x440]
add al, byte [rbx + rdi]
add al, dl
mov dh, byte [rax + rbp - 0x440]
mov byte [rcx + rbp - 0x440], dh
mov byte [rax + rbp - 0x440], dl
inc cl
jne 0x180002aa2
mov rdi, qword [rbp + 0x28]
mov rsi, qword [rbp + 0x20]
test rdi, rdi
je 0x180002b2e
xor rax, rax
xor rdx, rdx
xor rcx, rcx
xor rbx, rbx
inc bl
mov dl, byte [rbx + rbp - 0x440]
add al, dl
mov cl, byte [rax + rbp - 0x440]
mov byte [rbx + rbp - 0x440], cl
mov byte [rax + rbp - 0x440], dl
add cl, dl
mov cl, byte [rcx + rbp - 0x440]
xor byte [rsi], cl
inc rsi
dec rdi
jne 0x180002ae7
xor rax, rax
lea rdi, [rbp - 0x440]
mov rcx, 0x40
cld
rep stosd dword [rdi], eax
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rax
pop rbp
ret
Function at 0x180002f81
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x158
lea rdx, [rbp - 0x38]
sub rdx, rsp
sub rsp, 0x20
lea rcx, [rsp + 0x20]
call fcn.180003749
add rsp, 0x20
sub rsp, 0x20
mov rcx, 2
mov rdx, 1
mov r8, 6
call qword [sym.imp.ws2_32.dll_socket]
add rsp, 0x20
mov qword [rbp - 0x40], rax
sub rsp, 0x20
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp + 0x10]
mov r8, 8
call fcn.1800038e9
add rsp, 0x20
mov qword [rbp - 0x180], 1
sub rsp, 0x30
mov rcx, qword [rbp - 0x40]
mov rdx, 6
mov r8, 1
lea r9, [rbp - 0x180]
mov qword [rsp + 0x20], 8
call qword [sym.imp.ws2_32.dll_setsockopt]
add rsp, 0x30
sub rsp, 0x20
mov rcx, qword [rbp + 0x18]
mov rdx, 0xffffffffffffffff
lea r8, [rbp - 0x178]
call fcn.180002b43
add rsp, 0x20
sub rsp, 0x20
lea rcx, [rbp - 0x178]
call fcn.180002d1d
add rsp, 0x20
cmp rax, 0
je 0x180003084
lea rax, [rbp - 0x178]
jmp 0x1800030b0
sub rsp, 0x20
lea rcx, [rbp - 0x178]
mov rdx, 2
call fcn.18000295a
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
call qword [sym.imp.ws2_32.dll_inet_ntoa]
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
call qword [sym.imp.ws2_32.dll_inet_addr]
add rsp, 0x20
test rax, rax
je 0x1800031e7
mov dword [rbp - 0x74], eax
mov rax, qword [rbp + 0x20]
cmp rax, 0x10000
jbe 0x1800030e9
sub rsp, 0x20
mov rcx, rax
call fcn.180003b15
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
call qword [sym.imp.ws2_32.dll_htons]
add rsp, 0x20
mov word [rbp - 0x76], ax
mov word [rbp - 0x78], 2
mov qword [rbp - 0x180], 1
sub rsp, 0x20
mov rcx, qword [rbp - 0x40]
movabs rdx, 0x8004667e
lea r8, [rbp - 0x180]
call qword [sym.imp.ws2_32.dll_ioctlsocket]
add rsp, 0x20
sub rsp, 0x20
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp - 0x78]
mov r8, 0x10
call qword [sym.imp.ws2_32.dll_connect]
add rsp, 0x20
sub rsp, 0x30
mov rcx, qword [rbp - 0x40]
mov rdx, 0
lea r8, [rbp - 0x68]
mov r9, qword [rbp + 0x28]
mov qword [rsp + 0x20], 0
call fcn.180002ca9
add rsp, 0x30
sub rsp, 0x30
mov rcx, 0
mov rdx, 0
lea r8, [rbp - 0x68]
mov r9, 0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_select]
add rsp, 0x30
cmp rax, 1
jne 0x1800031e7
mov qword [rbp - 0x180], 0
sub rsp, 0x20
mov rcx, qword [rbp - 0x40]
movabs rdx, 0x8004667e
lea r8, [rbp - 0x180]
call qword [sym.imp.ws2_32.dll_ioctlsocket]
add rsp, 0x20
mov qword [rbp - 0x188], 1
mov rax, qword [rbp - 0x188]
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret