joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014a6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, r8d
mov rdi, rcx
mov eax, dword [rcx + 0x10]
mov r15d, eax
shr r15d, 3
and r15d, 0x3f
lea ecx, [rsi*8]
shr r8d, 0x1d
add ecx, eax
mov dword [rdi + 0x10], ecx
adc dword [rdi + 0x14], r8d
mov rbx, rdx
mov ebp, 0x40
sub ebp, r15d
cmp ebp, esi
jbe 0x14014a72a
mov eax, r15d
xor ebp, ebp
jmp 0x14014a785
lea r14, [rdi + 0x18]
lea rcx, [rdi + r15]
add rcx, 0x18
mov rdx, rbx
mov r8d, ebp
call 0x14014a890
mov rcx, rdi
mov rdx, r14
call fcn.14014aa00
xor r15d, 0x7f
cmp r15d, esi
jae 0x14014a783
nop word cs:[rax + rax]
lea edx, [r15 - 0x3f]
add rdx, rbx
mov rcx, rdi
call fcn.14014aa00
add r15d, 0x40
cmp r15d, esi
jb 0x14014a760
add r15d, 0xffffffc1
xor eax, eax
mov ebp, r15d
jmp 0x14014a785
xor eax, eax
sub esi, ebp
mov ecx, ebp
add rbx, rcx
lea rcx, [rdi + rax]
add rcx, 0x18
mov rdx, rbx
mov r8d, esi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp 0x14014a890
push rsi
push rdi
push rbx
mov rax, rcx
test r8d, r8d
je 0x14014a9ef
cmp r8d, 8
jb 0x14014a8c3
mov rcx, rax
sub rcx, rdx
cmp rcx, 0x20
jb 0x14014a8c3
lea r10d, [r8 - 1]
inc r10
cmp r8d, 0x20
jae 0x14014a8cb
xor r11d, r11d
jmp 0x14014a90a
mov rcx, rdx
mov r9, rax
jmp 0x14014a948
mov r11, r10
and r11, 0xffffffffffffffe0
xor ecx, ecx
nop word cs:[rax + rax]
movups xmm0, xmmword [rdx + rcx]
movups xmm1, xmmword [rdx + rcx + 0x10]
movups xmmword [rax + rcx], xmm0
movups xmmword [rax + rcx + 0x10], xmm1
add rcx, 0x20
cmp r11, rcx
jne 0x14014a8e0
cmp r10, r11
je 0x14014a9ef
test r10b, 0x18
je 0x14014a93b
mov rsi, r10
and rsi, 0xfffffffffffffff8
lea rcx, [rdx + rsi]
lea r9, [rax + rsi]
sub r8d, esi
nop dword [rax]
mov rdi, qword [rdx + r11]
mov qword [rax + r11], rdi
add r11, 8
cmp rsi, r11
jne 0x14014a920
cmp r10, rsi
jne 0x14014a948
jmp 0x14014a9ef
sub r8d, r11d
lea r9, [rax + r11]
add rdx, r11
mov rcx, rdx
lea edx, [r8 - 1]
test r8b, 7
je 0x14014a97a
mov r11d, r8d
and r11d, 7
xor r10d, r10d
nop dword [rax]
movzx ebx, byte [rcx + r10]
mov byte [r9 + r10], bl
inc r10
cmp r11d, r10d
jne 0x14014a960
add rcx, r10
add r9, r10
sub r8d, r10d
cmp edx, 7
jb 0x14014a9ef
mov edx, r8d
xor r8d, r8d
nop word cs:[rax + rax]
movzx r10d, byte [rcx + r8]
mov byte [r9 + r8], r10b
movzx r10d, byte [rcx + r8 + 1]
mov byte [r9 + r8 + 1], r10b
movzx r10d, byte [rcx + r8 + 2]
mov byte [r9 + r8 + 2], r10b
movzx r10d, byte [rcx + r8 + 3]
mov byte [r9 + r8 + 3], r10b
movzx r10d, byte [rcx + r8 + 4]
mov byte [r9 + r8 + 4], r10b
movzx r10d, byte [rcx + r8 + 5]
mov byte [r9 + r8 + 5], r10b
movzx r10d, byte [rcx + r8 + 6]
mov byte [r9 + r8 + 6], r10b
movzx r10d, byte [rcx + r8 + 7]
mov byte [r9 + r8 + 7], r10b
add r8, 8
cmp edx, r8d
jne 0x14014a990
pop rbx
pop rdi
pop rsi
ret
Function at 0x14043f420
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1d0
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
test cl, 2
jne 0x14043f4b6
call fcn.140460e40
mov esi, eax
test eax, eax
jne 0x14043f4e4
lea rcx, str.iphlpapi.dll
call fcn.14043f500
mov qword [0x14051d0d8], rax
test rax, rax
je 0x14043f482
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14043f482
mov qword [0x14051d0d0], rax
mov dword [rsp + 0x20], 3
xor esi, esi
mov ecx, 6
xor edx, edx
xor r8d, r8d
mov r9d, 2
call fcn.1404610b0
mov byte [0x14051d0e0], al
lea rcx, [0x14051d0e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x14043f4e4
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14043f4df
movzx eax, word [rsp + 0x30]
cmp eax, 0x202
je 0x14043f43f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 2
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
add rsp, 0x1d0
pop rsi
ret

Function at 0x14043f500
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x1404f9d88]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14043f55f
mov rdi, rax
lea rdx, [0x1404f545f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x1404f9dec]
mov rcx, rsi
call fcn.1404bdac8
test rax, rax
je 0x14043f570
test rbx, rbx
je 0x14043f5a9
mov rax, rbx
mov rcx, rsi
xor edx, edx
mov r8d, 8
jmp 0x14043f59b
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, rbx
test rbx, rbx
je 0x14043f5be
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14043f5be
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
mov rax, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp rax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14043f561
mov r14d, eax
mov rcx, rsi
call fcn.1404bd600
lea ecx, [r14 + 1]
add rcx, rax
add rcx, rcx
call qword [fcn.1404baf0c]
mov rdi, rax
test rax, rax
je 0x14043f642
mov rcx, rdi
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14043f642
mov rcx, rdi
call fcn.1404bd600
lea rcx, [rdi + rax*2]
lea rdx, [0x1404f9c7a]
call fcn.1404bd5e4
mov rcx, rdi
call fcn.1404bd600
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.1404bd5e4
mov rcx, rdi
test r15, r15
je 0x14043f646
xor edx, edx
mov r8d, 8
call r15
jmp 0x14043f64c
xor ebx, ebx
jmp 0x14043f64f
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, rdi
call qword [fcn.1404ba1dc]
jmp 0x14043f561
Function at 0x1404487f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1008
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14044884b
cmp dword [rsp + 0x34], 1
jne 0x14044884b
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x40
pop rsi
ret

Function at 0x14044d0c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
test rdx, rdx
jle 0x14044d105
mov rsi, rdx
mov rdi, rcx
add rsi, rcx
mov eax, 0x1505
nop word [rax + rax]
mov rbx, rax
shl rbx, 5
add rbx, rax
movzx ecx, byte [rdi]
inc rdi
call fcn.140453420
movzx eax, al
xor rax, rbx
cmp rdi, rsi
jb 0x14044d0e0
movzx eax, al
jmp 0x14044d10a
mov eax, 5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14044f460
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov edi, ecx
mov rcx, r8
call fcn.140071550
mov ecx, edi
mov rdx, rsi
mov r8d, eax
call fcn.1404b52b8
cdqe
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140453440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x14045344e
test rdx, rdx
jne 0x140453460
xor eax, eax
or rcx, rdx
sete al
ret
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx ecx, byte [rcx]
test cl, cl
je 0x1404534a7
inc rdi
nop dword [rax + rax]
movzx ebx, byte [rsi]
test bl, bl
je 0x1404534a9
call fcn.140453420
mov ebp, eax
mov ecx, ebx
call fcn.140453420
cmp bpl, al
jne 0x1404534bb
inc rsi
movzx ecx, byte [rdi]
inc rdi
test cl, cl
jne 0x140453480
xor ecx, ecx
test cl, cl
setne al
cmp byte [rsi], 0
sete cl
xor cl, al
movzx eax, cl
jmp 0x1404534bd
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140453460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x14045344e
test rdx, rdx
jne 0x140453460
xor eax, eax
or rcx, rdx
sete al
ret
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx ecx, byte [rcx]
test cl, cl
je 0x1404534a7
inc rdi
nop dword [rax + rax]
movzx ebx, byte [rsi]
test bl, bl
je 0x1404534a9
call fcn.140453420
mov ebp, eax
mov ecx, ebx
call fcn.140453420
cmp bpl, al
jne 0x1404534bb
inc rsi
movzx ecx, byte [rdi]
inc rdi
test cl, cl
jne 0x140453480
xor ecx, ecx
test cl, cl
setne al
cmp byte [rsi], 0
sete cl
xor cl, al
movzx eax, cl
jmp 0x1404534bd
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140456140
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 4
mov eax, dword [0x14051d1f8]
cmp eax, 2
je 0x14045620b
mov rsi, rcx
test eax, eax
jne 0x1404561b9
mov dword [rsp + 0x20], 3
mov ecx, 6
xor edx, edx
xor r8d, r8d
mov r9d, 2
call fcn.1404610b0
test al, al
je 0x1404561af
mov dword [0x14051d1f8], 2
jmp 0x14045620b
mov dword [0x14051d1f8], 1
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1404561ea
cmp dword [rsp + 0x30], 0x4020
jg 0x14045620b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x40
pop rsi
ret

Function at 0x140457300
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x2e8]
test byte [rax + 0x85], 8
jne 0x14045741a
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov dword [rsp + 0x2c], Ordinal_133
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rdi + 0x98]
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1404573c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, eax
call fcn.1404702f0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, rsi
mov r8d, edi
mov r9, rax
jmp 0x140457415
lea r9, [rdi + 0x144]
add rdi, 0x114
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.140450950
test al, al
jne 0x14045741a
call fcn.1404b2980
mov ecx, dword [rax]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
call fcn.1404702f0
mov rdi, rax
call fcn.1404b2980
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, rsi
mov r9, rdi
call fcn.14043cca0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x1b8
pop rdi
pop rsi
ret

Function at 0x140457900
Capabilities:
Connect socket

Disassembly:
test dl, dl
je 0x14045790a
mov eax, 0xffffffff
ret
mov rdx, qword [rcx + 0x10]
mov r8d, dword [rdx + 0x14]
mov rcx, qword [rdx + 0x98]
add rdx, 0x18
jmp qword [sym.imp.WS2_32.dll_connect]
Function at 0x140457b20
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov r8d, reloc.WLDAP32.dll_Ordinal_27
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x38
ret

Function at 0x140457b70
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rdx
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x140457bf2
test eax, eax
jns 0x140457bf2
cmp byte [rsi + 0xaaf], 0
je 0x140457bf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.1404702f0
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
mov r8, rax
call fcn.14043cd70
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x140
pop rsi
ret

Function at 0x140457c10
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rcx + 0xabb]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x5c]
mov rcx, rdx
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x140457cff
mov dword [rsp + 0x50], 1
mov ecx, dword [rdi + 0xa24]
call fcn.14044f440
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x54], eax
mov ecx, dword [rdi + 0xa28]
call fcn.14044f440
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x58], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x98000004
mov r9d, recvfrom
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140457d1a
cmp byte [rdi + 0xaaf], 0
je 0x140457d1a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, rdi
mov r8d, esi
mov r9d, eax
call fcn.14043cd70
jmp 0x140457d1a
cmp byte [rdi + 0xaaf], 0
je 0x140457d1a
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rdi
mov r8, rsi
call fcn.14043cd70
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140458310
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x140
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov dword [r9], 0
mov rcx, qword [rax + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1404583a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140458372
mov dword [rdi], 0x51
jmp 0x1404583a9
mov ebp, eax
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.1404702f0
mov rcx, qword [r14 + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14043cca0
mov rax, qword [r14 + 8]
mov dword [rax + 0xd74], ebp
mov dword [rdi], gethostname
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1404583e5
cmp byte [rcx + 0xaaf], 0
je 0x1404583e5
mov rdx, qword [r14]
test rdx, rdx
je 0x1404583e5
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x1404583e5
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r8, str.nw_in_read_len_zu______d__err_d
mov r9, rsi
call fcn.14043ce10
movsxd rsi, ebx
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14049f400
mov rax, rsi
add rsp, 0x140
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1404585e0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov r8d, dword [rsi + 0x14]
lea rdx, [rsi + 0x18]
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1404586ab
mov rcx, rbx
mov rdx, rdi
call fcn.140457300
test rdi, rdi
je 0x140458690
cmp byte [rdi + 0xaaf], 0
je 0x140458690
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x140458690
mov eax, dword [rsi + 0x110]
lea rcx, [rsi + 0xe0]
mov edx, dword [rsi + 0x144]
lea r8, [rsi + 0x114]
mov r10, qword [rsi + 0x98]
cmp dword [rsi], 5
lea r11, str.QUIC
lea r9, [0x1404f5a0d]
cmove r9, r11
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov rcx, rdi
mov rdx, rbx
call fcn.14043ce10
mov rcx, qword [rsi + 0x98]
mov edx, 1
call fcn.14048a070
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsi, 0xe0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.140457930
Function at 0x14045ce70
Capabilities:
Query environment variable

Disassembly:
jmp 0x14045ce80
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x14044c6be.0]
test rax, rax
je 0x14045cede
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x14045ced9
cmp eax, edi
je 0x14045ced9
cmp eax, 0x8001
jae 0x14045ced9
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x14045cea0
jmp 0x14045cee9
mov rcx, rbx
jmp 0x14045cee1
mov rcx, r14
call qword [fcn.1404ba1dc]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14045ce80
Capabilities:
Query environment variable

Disassembly:
jmp 0x14045ce80
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x14044c6be.0]
test rax, rax
je 0x14045cede
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x14045ced9
cmp eax, edi
je 0x14045ced9
cmp eax, 0x8001
jae 0x14045ced9
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x14045cea0
jmp 0x14045cee9
mov rcx, rbx
jmp 0x14045cee1
mov rcx, r14
call qword [fcn.1404ba1dc]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140460cf0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], edi
mov rcx, r8
xor edx, edx
mov r8, r9
call fcn.1404a3cc0
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
xor edx, edx
xor r8d, r8d
mov r9d, Ordinal_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140460e1a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140460df8
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140460df8
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140460df8
mov eax, dword [rsp + 0x3c]
cmp rax, rdi
ja 0x140460df8
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140460e08
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140460e1a
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1404612b0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.1404affe0
cmp rax, 0xffffffffffffffff
cmove rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140462930
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rsi, r9
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [r9], 0
lea r9, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x140462ab7
mov r13, qword [rsp + 0x20]
test r13, r13
je 0x140462aa2
xor ebp, ebp
xorps xmm6, xmm6
xor edi, edi
jmp 0x1404629a3
mov r14, rbp
mov r13, qword [r13 + 0x28]
mov rbp, r14
test r13, r13
je 0x140462a8b
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1404629c0
call fcn.1404bc040
mov rbx, rax
inc rbx
jmp 0x1404629c2
xor ebx, ebx
mov eax, dword [r13 + 4]
cmp eax, 2
je 0x1404629e0
cmp eax, 0x17
jne 0x140462990
mov r15d, 0x1c
cmp qword [r13 + 0x20], 0
jne 0x1404629ed
jmp 0x140462990
mov r15d, reloc.WS2_32.dll_recv
cmp qword [r13 + 0x20], 0
je 0x140462990
cmp qword [r13 + 0x10], r15
jb 0x140462990
lea rcx, [rbx + r15]
add rcx, 0x30
call qword [fcn.1404baf0c]
test rax, rax
je 0x140462adc
mov r14, rax
mov eax, dword [r13]
mov dword [r14], eax
mov eax, dword [r13 + 4]
mov dword [r14 + 4], eax
mov eax, dword [r13 + 8]
mov dword [r14 + 8], eax
mov eax, dword [r13 + 0xc]
mov dword [r14 + 0xc], eax
mov dword [r14 + 0x10], r15d
lea r12, [r14 + 0x30]
movups xmmword [r14 + 0x18], xmm6
mov qword [r14 + 0x28], 0
mov qword [r14 + 0x20], r12
mov rdx, qword [r13 + 0x20]
mov rcx, r12
mov r8, r15
call fcn.1404a3620
test rbx, rbx
je 0x140462a72
lea rax, [r14 + 0x18]
add r12, r15
mov qword [rax], r12
mov rdx, qword [r13 + 0x18]
mov rcx, r12
mov r8, rbx
call fcn.1404a3620
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x140462993
mov qword [rbp + 0x28], r14
jmp 0x140462993
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140462a9b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor ebx, ebx
test rdi, rdi
jne 0x140462ab4
mov ebx, 0x2af9
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14049f400
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140462aec
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.140462900
mov ebx, 8
jmp 0x140462ab2
Function at 0x140465490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r15, rdx
test r9b, r9b
jne 0x1404654cb
mov rcx, rbx
call fcn.140466740
mov r15, rax
xor esi, esi
test rdi, rdi
je 0x140465596
movzx ebp, byte [rsp + 0xa0]
xor bpl, 1
lea r12, [0x1404f82e2]
lea r13, [0x1404f7077]
cmp rbx, r15
jb 0x140465530
movzx eax, byte [rbx]
cmp eax, 0x3f
je 0x140465516
cmp eax, 0x20
jne 0x14046551a
test bpl, 1
jne 0x14046554f
mov r8d, 1
mov rcx, r14
mov rdx, r12
jmp 0x14046553c
xor ebp, ebp
jmp 0x140465530
cmp al, 0x20
jb 0x140465530
cmp rax, 0x20
je 0x140465530
cmp eax, 0x7f
je 0x140465530
cmp al, 0x7f
jae 0x14046555d
nop dword [rax]
mov r8d, 1
mov rcx, r14
mov rdx, rbx
call fcn.140449030
test eax, eax
jne 0x140465591
inc rbx
dec rdi
jne 0x1404654f0
jmp 0x140465596
mov r8d, 3
mov rcx, r14
mov rdx, r13
jmp 0x14046553c
mov byte [rsp + 0x2d], Ordinal_41
mov ecx, eax
shr ecx, 4
lea rdx, [0x1404e41a0]
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2e], cl
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x2f], al
mov r8d, 3
mov rcx, r14
lea rdx, [rsp + 0x2d]
jmp 0x14046553c
mov esi, 7
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret