joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140364ac0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0
je 0x140364b0a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x140364b4c
cmp qword [rsp + 0x90], 0
je 0x140364b22
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x140364b4c
cmp qword [rsp + 0x98], 0
je 0x140364b3a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x140364b4c
mov rcx, qword [rsp + 0xa0]
call fcn.140154278
jmp 0x140364c1d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1401555fb
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x140364b8a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x140364b8a
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x140364b93
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x140364bba
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x140364bba
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x140364bc3
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x140364bea
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x140364bea
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x140364bf3
mov qword [rsp + 0x60], 0
mov eax, dword [rsp + 0x80]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1403718b0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.14015529f
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140371958
jmp 0x140371a42
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140371983
jmp 0x140371a1a
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1403719a7
jmp 0x140371a1a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1403719d2
jmp 0x140371a1a
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1403719e2
jmp 0x140371a1a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140371a10
jmp 0x140371a1a
xor eax, eax
test eax, eax
jne 0x140371958
cmp qword [rsp + 0x58], 0
je 0x140371a2d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x140371a42
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1401559a2
add rsp, 0xd0
pop rdi
ret
Function at 0x140373490
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [0x1404acc58]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1403734e0
mov rcx, qword [rsp + 0x20]
call qword [0x1404acc50]
xor eax, eax
jmp 0x14037354b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140373526
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x140373526
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x140373535
mov rcx, qword [rsp + 0x20]
call qword [0x1404acc50]
xor eax, eax
jmp 0x14037354b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x140373546
mov rax, qword [rsp + 0x20]
jmp 0x14037354b
jmp 0x1403734b3
add rsp, 0x40
pop rdi
ret
Function at 0x140385190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x20]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax + 0x188]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0xf4], 0x80
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14038524c
mov dword [rsp + 0xf4], 0x80
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140385272
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x130]
call fcn.140157004
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14038536a
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x130]
call fcn.1401560f5
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x2b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140152108
lea r9, [rsp + 0x38]
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.1401570b8
mov dword [rsp + 0x104], eax
cmp dword [rsp + 0x104], 0
je 0x1403852db
mov eax, dword [rsp + 0x104]
jmp 0x14038536a
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x268], 0
je 0x140385368
mov dword [rsp + 0x108], 0
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.1401558ee
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x270]
mov rax, qword [rsp + 0x130]
call qword [rax + 0x268]
mov dword [rsp + 0x108], eax
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.1401558ee
cmp dword [rsp + 0x108], 0
je 0x140385368
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.140385040
mov eax, Ordinal_46
jmp 0x14038536a
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140153acb
add rsp, 0x120
pop rdi
ret
Function at 0x140388ba0
Capabilities:
Check http status code

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x140388bf5
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.140157004
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x140388c84
cmp dword [rsp + 0x48], 0xc8
je 0x140388c15
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
mov rcx, qword [rsp + 0x40]
call fcn.1401560f5
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x140388c34
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140386eb0
mov dword [rsp + 0x20], eax
jmp 0x140388c80
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x140388c4e
mov rcx, qword [rsp + 0x40]
call fcn.140386f70
mov dword [rsp + 0x20], eax
jmp 0x140388c80
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x140388c68
mov rcx, qword [rsp + 0x40]
call fcn.140387230
mov dword [rsp + 0x20], eax
jmp 0x140388c80
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x140388c80
mov rcx, qword [rsp + 0x40]
call fcn.140387260
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x24], 0xff
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + rax + 0x24], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x70]
mov byte [rsp + rax + 0x24], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x188]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x1403980b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1404b92a0]
mov rcx, qword [rsp + 0x60]
call fcn.140157004
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x1404b92bc]
mov rcx, qword [rsp + 0x60]
call fcn.140397d20
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
add rsp, 0x50
pop rdi
ret
Function at 0x1403aea70
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, reloc.WLDAP32.dll_Ordinal_27
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rdi
ret

Function at 0x1403aeab0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1403aeb55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140155579
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.1401560f5
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401559a2
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140153acb
add rsp, 0x180
pop rdi
ret
Function at 0x1403aeb90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xa9b]
test eax, eax
je 0x1403aebed
mov dword [rsp + 0xc0], 1
jmp 0x1403aebf8
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1403aec57
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0xe0]
call fcn.1401560f5
jmp 0x1403aed2f
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa0c]
call fcn.140152bc6
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa10]
call fcn.140152bc6
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recv
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1403aed2f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0xe0]
call fcn.1401560f5
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401559a2
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140153acb
add rsp, 0xd0
pop rdi
ret
Function at 0x1403afa80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x1a8]
mov dword [rax], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x198]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1403afbae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x2733
jne 0x1403afb58
mov rax, qword [rsp + 0x1a8]
mov dword [rax], 0x51
mov qword [rsp + 0x40], 0xffffffffffffffff
jmp 0x1403afbae
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x60]
mov ecx, dword [rsp + 0x48]
call fcn.140155579
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.140157004
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0xd64], ecx
mov rax, qword [rsp + 0x1a8]
mov dword [rax], gethostname
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rax, qword [rsp + 0x1a8]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1a0]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.140155ca9
mov rax, qword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140153acb
add rsp, 0x180
pop rdi
ret
Function at 0x1403afe50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x230]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x238]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x2c8]
mov eax, dword [rax + 0x84]
and eax, 0x800
test eax, eax
jne 0x1403affde
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.14015529f
lea r8, [rsp + 0x1f4]
lea rdx, [rsp + 0x160]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1403aff57
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x204], eax
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x204]
call fcn.140155579
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.140157004
mov eax, 2
jmp 0x1403affe0
mov rax, qword [rsp + 0x20]
add rax, 0x144
mov rcx, qword [rsp + 0x20]
add rcx, 0x114
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x1f4]
lea rcx, [rsp + 0x160]
call fcn.1401561fe
movzx eax, al
test eax, eax
jne 0x1403affde
call qword [sym.imp.ucrtbased.dll__errno]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.140155579
mov qword [rsp + 0x210], rax
call qword [sym.imp.ucrtbased.dll__errno]
mov rcx, qword [rsp + 0x210]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.140157004
mov eax, 2
jmp 0x1403affe0
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.140153acb
add rsp, 0x220
pop rdi
ret

Function at 0x1403b05b0
Capabilities:
Connect socket

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1403b05e5
jmp 0x1403b0610
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret
Function at 0x1403b1800
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
xor eax, eax
test eax, eax
jne 0x1403b1820
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1403b1882
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x50]
add rcx, 0xe0
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
call fcn.1403af8f0
jmp 0x1403b195c
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x17e], 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1403afe50
mov rax, qword [rsp + 0x50]
cmp dword [rax], 5
jne 0x1403b18bb
lea rax, str.QUIC
mov qword [rsp + 0x60], rax
jmp 0x1403b18c7
lea rax, [0x1404bace4]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
add rax, 0xe0
mov rcx, qword [rsp + 0x50]
add rcx, 0x114
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0x110]
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x144]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.140155ca9
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x98]
call fcn.140152108
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
add rsp, 0x70
pop rdi
ret
Function at 0x1403d6420
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1403d6456
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1403d64a6
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1403d64a4
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x1403d64a6
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1403d64c0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret
Function at 0x1403d71a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xb4], 8
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1403d7216
xor al, al
jmp 0x1403d7328
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.14015529f
mov byte [rsp + 0x88], 8
mov byte [rsp + 0x89], 2
mov dword [rsp + 0x8c], 0x6601
mov dword [rsp + 0x90], 8
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x100]
call fcn.1403d6fb0
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.14015537b
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1403d72bb
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1403d7328
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.140153aee
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140153acb
add rsp, 0xe0
pop rdi
ret

Function at 0x1403dd0e0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1403dd116
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1403dd166
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1403dd164
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x1403dd166
xor eax, eax
add rsp, 0x30
pop rdi
ret