joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d6a0
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [rdx + 0x98]
cmp qword [rdx + 0x90], rax
jb 0x14003d87a
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x80]
xorps xmm0, xmm0
lea r8, [rsp + 0x28]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x68]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0xc0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x14003d77b
test eax, eax
je 0x14003d79a
cmp eax, 0x90317
je 0x14003d853
cmp eax, 0x90321
jne 0x14003d85b
mov dword [rdi + 0x40], 0x10000
xor ebx, ebx
mov byte [rdi + 0x44], bl
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x58]
sub rdx, rax
mov rcx, rdi
call fcn.14003d634
and qword [rdi + 0xf8], 0
mov byte [rsi + 1], bl
jmp 0x14003d869
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x14003d857
mov rax, qword [rdi + 0x78]
mov rdx, qword [rdi + 0x70]
sub rdx, rax
jb 0x14003d87a
mov r14, qword [rsp + 0x40]
mov r15d, dword [rsp + 0x38]
lea rbx, [rdi + 0x60]
sub r14, qword [rdi + 0x80]
add r15, r14
and qword [rdi + 0x70], 0
mov r8, qword [rdi + 0x60]
lea r9, [r8 + rax]
lea rcx, [rsp + 0x78]
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rdx
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], rbx
call fcn.14000b800
mov rcx, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x90]
mov r8, r14
mov r9, r15
call fcn.14003d888
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.14000ae91
and qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x58]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14003d634
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x14003d869
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14003d869
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
Function at 0x14003d8a3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x48], r8
mov rcx, r8
call fcn.14003daac
mov rbx, rax
lea rbp, [rsp + 0x32]
lea rsi, [rsp + 0x42]
mov rdi, qword [r15 + 0x10]
mov r12, qword [r15 + 0x18]
mov eax, 0x7fffffff
cmp rdx, rax
mov qword [rsp + 0x50], rdx
cmovb rax, rdx
mov qword [rsp + 0x60], rax
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x28]
mov rdx, rdi
mov r8, r14
xor r9d, r9d
call fcn.14007c117
mov al, byte [rsp + 0x31]
cmp al, 3
je 0x14003da18
mov r13, qword [rsp + 0x28]
cmp al, 2
je 0x14003da2c
mov cl, byte [rsp + 0x30]
movzx edx, word [rbp + 4]
mov word [rsi + 4], dx
mov edx, dword [rbp]
mov dword [rsi], edx
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
cmp r12, 0xffffffffffffffff
je 0x14003da8d
mov rcx, r12
mov rdx, rbx
mov r8, qword [rsp + 0x60]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x14003da1f
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x14003da29
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.14001c5d4
cmp al, 0xd
jne 0x14003d9f2
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14003d9f2
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14003da8d
mov r12, rdi
mov rdi, r15
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140034e2b
mov r15, rax
xor ecx, ecx
call fcn.1400341a3
test r15, r15
je 0x14003d9e7
mov ecx, 1
mov rdx, r13
call fcn.140034f34
mov r13, r15
mov r15, rdi
mov rdi, r12
mov r12, qword [rsp + 0x20]
mov rcx, r13
call fcn.140077553
cmp al, 0xd
jne 0x14003da2c
mov rcx, r15
lea rdx, [rsp + 0x38]
call fcn.14007c0b4
mov rcx, r13
call fcn.14001c4c0
jmp 0x14003d8ff
mov edi, 1
jmp 0x14003da2e
movsxd rsi, eax
xor r13d, r13d
xor edi, edi
jmp 0x14003da30
xor r13d, r13d
xor edi, edi
xor esi, esi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r13
test rdi, rdi
jne 0x14003da76
test r13, r13
jne 0x14003da76
cmp rsi, qword [rsp + 0x50]
ja 0x14003da8d
lea rcx, [rsp + 0x68]
call fcn.14003da91
mov rcx, qword [rsp + 0x48]
add rsi, qword [rcx + 0x10]
jb 0x14003da8d
mov qword [rcx + 0x10], rsi
mov rax, qword [rcx + 0x18]
cmp rsi, rax
cmova rax, rsi
mov qword [rcx + 0x18], rax
xor r13d, r13d
mov rax, rdi
mov rdx, r13
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14003dd05
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [rdx + 0x198]
cmp qword [rdx + 0x190], rax
jb 0x14003def7
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x180]
xorps xmm0, xmm0
lea r8, [rsp + 0x28]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x68]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0x1c0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x14003dde6
test eax, eax
je 0x14003de05
cmp eax, 0x90317
je 0x14003ded0
cmp eax, 0x90321
jne 0x14003ded8
mov dword [rdi + 0x140], 0x10000
xor ebx, ebx
mov byte [rdi + 0x144], bl
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x198]
mov eax, 0
cmove eax, dword [rsp + 0x58]
sub rdx, rax
mov rcx, rdi
call fcn.14003dc99
and qword [rdi + 0x1f8], 0
mov byte [rsi + 1], bl
jmp 0x14003dee6
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x14003ded4
mov rax, qword [rdi + 0x178]
mov rdx, qword [rdi + 0x170]
sub rdx, rax
jb 0x14003def7
mov r14, qword [rsp + 0x40]
mov r15d, dword [rsp + 0x38]
lea rbx, [rdi + 0x160]
sub r14, qword [rdi + 0x180]
add r15, r14
and qword [rdi + 0x170], 0
mov r8, qword [rdi + 0x160]
lea r9, [r8 + rax]
lea rcx, [rsp + 0x78]
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rdx
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], rbx
call fcn.14000b800
mov rcx, qword [rdi + 0x180]
mov rdx, qword [rdi + 0x190]
mov r8, r14
mov r9, r15
call fcn.14003d888
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.14000ae91
and qword [rdi + 0x178], 0
xor ebx, ebx
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x198]
mov eax, dword [rsp + 0x58]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14003dc99
xor eax, eax
cmp qword [rdi + 0x198], rbx
sete al
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x14003dee6
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14003dee6
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
Function at 0x14003defb
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x14003df0d
add rcx, 8
jmp fcn.14003d8a3
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rcx, r8
call fcn.14003daac
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rdi + 0x38], rbx
call fcn.14003e0ad
mov r14, rax
mov r15, rdx
lea rbx, [rsp + 0x28]
mov rcx, rdi
call fcn.14003e0fa
test rdx, rdx
jne 0x14003dfc3
mov rcx, rbx
mov rdx, rdi
call fcn.14003c83f
mov eax, dword [rsp + 0x28]
cmp eax, 2
je 0x14003e01c
test eax, eax
je 0x14003dfc3
cmp qword [rdi + 0xf8], 0
je 0x14003dfaa
mov rcx, rbx
mov rdx, rdi
call fcn.14003d479
cmp qword [rsp + 0x28], 0
jne 0x14003e01c
cmp qword [rsp + 0x30], 0
je 0x14003dfc3
and qword [rdi + 0xf8], 0
mov rcx, rbx
mov rdx, rdi
call fcn.14003d6a0
cmp byte [rsp + 0x28], 0
jne 0x14003e01c
cmp byte [rsp + 0x29], 0
je 0x14003df50
mov rcx, rdi
call fcn.14003e0fa
mov rbx, rdx
test rax, rax
je 0x14003e021
cmp r15, rbx
cmovb rbx, r15
mov rcx, r14
mov rdx, rax
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi + 0x78]
add rax, rbx
cmp rax, qword [rdi + 0x70]
ja 0x14003e0a9
mov qword [rdi + 0x78], rax
add rbx, qword [rsp + 0x50]
jb 0x14003e0a9
cmp qword [rsp + 0x58], rbx
jb 0x14003e0a9
mov qword [rsp + 0x50], rbx
xor ebx, ebx
jmp 0x14003e04a
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.14001c5d4
cmp al, 0xd
jne 0x14003e04a
and qword [rdi + 0x38], 0
lea rcx, [rsp + 0x28]
call fcn.14003b658
mov edi, 1
xor eax, eax
jmp 0x14003e053
and qword [rdi + 0x38], 0
mov al, 1
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
test al, al
je 0x14003e097
test rbx, rbx
jne 0x14003e097
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x48]
ja 0x14003e0a9
lea rcx, [rsp + 0x60]
call fcn.14003da91
add rbx, qword [rsi + 0x10]
jb 0x14003e0a9
mov qword [rsi + 0x10], rbx
mov rax, qword [rsi + 0x18]
cmp rbx, rax
cmova rax, rbx
mov qword [rsi + 0x18], rax
xor ebx, ebx
mov rax, rdi
mov rdx, rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2

Function at 0x140041553
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x378
mov rbx, rdx
movzx eax, byte [rdx + 0x388]
test eax, eax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rcx
je 0x1400415a8
cmp eax, 3
jne case.0x140041b1c.1
mov r15, r8
lea r12, [rbx + 0x1f8]
movzx eax, byte [rbx + 0x288]
lea rcx, [0x14008d35c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
and qword [rbx + 0x20], 0
mov qword [rbx + 0x40], rax
Function at 0x1400721a0
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400721c9
mov rdx, qword [rsp + 0x20]
jmp 0x1400721d1
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x140072987
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400729b3
xor eax, eax
jmp 0x1400729b8
call fcn.140034700
nop
add rsp, 0x38
ret
Function at 0x140074b60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140074bc0
mov ecx, eax
add rsp, 0x28
jmp fcn.140087c84

Function at 0x140074b94
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.140074bc0
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140087c8c

Function at 0x140074bc0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140074bce
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140074c45
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140074c8c
cmp dword [rsp + 0x2c], 0
je 0x140074c6d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140074c7c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401060e8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401060e8], rsi
jne 0x140074c20
mov byte [0x1401060e0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140074c72
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140074c8c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140074c72
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140074c72
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2

Function at 0x140074bce
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140074bce
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140074c45
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140074c8c
cmp dword [rsp + 0x2c], 0
je 0x140074c6d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140074c7c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401060e8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401060e8], rsi
jne 0x140074c20
mov byte [0x1401060e0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140074c72
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140074c8c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140074c72
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140074c72
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x1400757a5
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
lea rdi, [rsp + 0x98]
mov rcx, rdi
call fcn.1400751cd
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140075953
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov esi, 0x200
mov r15d, 2
xor r14d, r14d
mov r12d, 0xffffffff
xor r13d, r13d
cmp rsi, 0x201
jae 0x140075833
lea rbp, [rsp + 0x98]
mov edi, 0x200
mov rbx, rsi
jmp 0x140075868
sub rsi, r13
lea rcx, [rsp + 0x68]
mov rdx, rsi
call fcn.140072ae7
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
cmp r14, r12
mov r13d, 0xffffffff
cmovb r13, r14
mov qword [rsp + 0x78], r13
mov rbp, r15
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x40]
mov rdx, rbp
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x140075892
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400759cb
mov esi, esi
cmp rbx, rsi
jne 0x1400758b9
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140075a16
add rbx, rbx
cmp rbx, r12
cmovae rbx, r12
mov rsi, rbx
jmp 0x140075818
jb 0x140075818
cmp rdi, rsi
jb 0x140075a16
mov rcx, rsi
call fcn.14000b223
lea r13, [rsp + 0x50]
mov qword [r13 - 8], rax
mov qword [r13], rdx
and qword [r13 + 8], 0
lea rax, [rsi*2]
add rax, rbp
lea rsi, [rsp + 0x80]
mov qword [rsi], rbp
mov qword [rsi + 8], rax
and word [rsi + 0x10], 0
mov byte [r13 + 0x10], 1
lea rbx, [rsp + 0x28]
lea r12, [rsp + 0x48]
mov rcx, rsi
call fcn.14000b0a0
test ax, ax
je 0x14007592f
movzx ecx, ax
cmp ecx, 2
je 0x140075969
shr eax, 0x10
mov byte [rsp + 0x60], 0
jmp 0x140075933
shr rax, 0x20
and dword [rsp + 0x28], 0
mov ecx, eax
mov rdx, rbx
call fcn.140072f08
lea r8, [rdx + rax]
mov rcx, r12
mov rdx, rax
call fcn.14000ae91
jmp 0x140075910
lea rcx, [rsp + 0x98]
call fcn.1400753e2
mov byte [rsi + 0x18], 2
jmp 0x140075a01
mov rsi, qword [rsp + 0x48]
movups xmm0, xmmword [r13]
movaps xmmword [rsp + 0x80], xmm0
mov bl, byte [rsp + 0x60]
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x2b], eax
mov eax, dword [rsp + 0x61]
mov dword [rsp + 0x28], eax
mov rcx, r15
mov rdx, r14
call fcn.140072ed7
cmp bl, 2
je 0x1400759de
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rsi
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], bl
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
mov rdi, qword [rsp + 0x30]
jmp 0x1400759f4
call fcn.140034700
mov rsi, rax
mov rcx, r15
mov rdx, r14
call fcn.140072ed7
mov rax, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov byte [rax + 0x18], 2
mov rcx, rsi
call fcn.140072e48
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call fcn.140072ed7
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1400760bc
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14007610f
call fcn.14007612c
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140076122
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x14007615c
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x1400761ad
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x1400761ad
lea rax, [0x140087a34]
mov qword [rdi], rax
add rsp, 0x1b8
pop rdi
pop rsi
ret
ud2

Function at 0x1400761b1
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400761dd
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140034700
ud2

Function at 0x140076765
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
lea rcx, [0x14008b140]
call fcn.140074b60
cmp rax, 2
jb 0x140076794
mov rcx, rax
cmp qword [rax + 8], 0
je 0x140076794
add rcx, 0x10
jmp 0x14007683c
lea rbx, [0x14008b140]
mov rcx, rbx
call fcn.140074b60
cmp rax, 1
je 0x14007681f
mov rsi, rax
test rax, rax
jne 0x1400767d6
mov ecx, 0x20
mov edx, 8
call fcn.140074b74
mov rsi, rax
mov qword [rax], rbx
and qword [rax + 8], 0
mov rcx, rbx
mov rdx, rax
call fcn.140074b94
test rdi, rdi
je 0x1400767f1
mov rax, qword [rdi]
and qword [rdi], 0
test rax, rax
je 0x1400767f1
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
jmp 0x140076828
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140076823
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140076828
xor ecx, ecx
jmp 0x14007683c
call fcn.1400761b1
mov qword [rsi + 8], 1
lea rcx, [rsi + 0x10]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
mov rax, rcx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007bb9c
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14007bb9f
test al, 1
je 0x14007bbba
test al, 2
jne 0x14007bbba
xor rax, 3
ret
ud2

Function at 0x14007c304
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x14007c345
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007c33a
xor eax, eax
jmp 0x14007c33f
call fcn.14007612c
nop
add rsp, 0x38
ret
ud2

Function at 0x14007c349
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea r15, [rsp + 0x4a]
lea r12, [rsp + 0x5a]
mov r13, qword [rdx + 0x10]
mov edi, 0x7fffffff
cmp rax, rdi
cmovb rdi, rax
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rbx
call fcn.14007c2fc
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x14007c4c0
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x14007c4ce
mov dl, byte [rsp + 0x48]
movzx r8d, word [r15 + 4]
mov word [r12 + 4], r8w
mov r8d, dword [r15]
mov dword [r12], r8d
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x58], dl
mov byte [rsp + 0x59], al
cmp rsi, 0xffffffffffffffff
je 0x14007c512
mov rcx, rsi
mov rdx, rbp
mov r8d, edi
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14007c4e0
call fcn.14007612c
mov rsi, rax
mov rcx, rax
call fcn.14001c5d4
cmp al, 0xd
jne 0x14007c495
cmp qword [rsp + 0x38], 0
je 0x14007c495
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14007c512
mov rdi, r13
mov r13, r14
mov r14, r15
mov r15, rbx
mov rbx, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140034e2b
mov rbp, rax
xor ecx, ecx
call fcn.1400341a3
test rbp, rbp
je 0x14007c481
mov ecx, 1
mov rdx, rsi
call fcn.140034f34
mov rsi, rbp
mov rbp, rbx
mov rbx, r15
mov r15, r14
mov r14, r13
mov r13, rdi
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140077553
cmp al, 0xd
jne 0x14007c4f1
mov rcx, r14
lea rdx, [rsp + 0x50]
call fcn.14007c0b4
mov rcx, rsi
call fcn.14001c4c0
mov rsi, qword [rsp + 0x60]
jmp 0x14007c3a0
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x14007c501
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x14007c501
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14007c501
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2