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

Disassembly:
jmp 0x14014e370
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x20], Ordinal_45
lea rax, str.0123456789abcdef
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc8], rax
xor eax, eax
test eax, eax
jne 0x14014e3d3
xor edx, edx
mov rax, qword [rsp + 0x100]
mov ecx, 2
div rcx
cmp rax, 0x80
jae 0x14014e404
mov rax, qword [rsp + 0x100]
and rax, 1
test rax, rax
jne 0x14014e40e
mov eax, Ordinal_45
jmp 0x14014e517
mov rax, qword [rsp + 0x100]
dec rax
mov qword [rsp + 0x100], rax
xor edx, edx
mov rax, qword [rsp + 0x100]
mov ecx, 2
div rcx
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call fcn.140098dc0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14014e45c
mov eax, dword [rsp + 0x20]
jmp 0x14014e517
cmp qword [rsp + 0x100], 0
je 0x14014e508
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
and eax, 0xf0
sar eax, 4
cdqe
mov rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x28]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0xf8]
inc rax
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
and eax, 0xf
cdqe
mov rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x28]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0xf8]
inc rax
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xc8]
inc rax
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x100]
sub rax, 2
mov qword [rsp + 0x100], rax
jmp 0x14014e45c
mov rax, qword [rsp + 0xf8]
mov byte [rax], 0
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0xe0
pop rdi
ret

Function at 0x14009ae0e
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x14014e550
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14009a1ac
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call fcn.14009837f
test eax, eax
je 0x14014e592
mov eax, 2
jmp 0x14014e594
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14009b002
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x14011dfc0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
lea rdi, [rsp + 0x20]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x220]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov dword [rsp + 0x1e4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.14009a1ac
lea r8, [rsp + 0x1e4]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14011e08e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x1f4], eax
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x1f4]
call fcn.14009a2ec
mov r9, rax
mov r8d, dword [rsp + 0x1f4]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.14009b14c
jmp 0x14011e101
mov r9, qword [rsp + 0x238]
mov r8, qword [rsp + 0x230]
mov edx, dword [rsp + 0x1e4]
lea rcx, [rsp + 0x150]
call fcn.14009a9a4
movzx eax, al
test eax, eax
jne 0x14011e101
call qword [sym.imp.ucrtbased.dll__errno]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov ecx, dword [rax]
call fcn.14009a2ec
mov qword [rsp + 0x200], rax
call qword [sym.imp.ucrtbased.dll__errno]
mov rcx, qword [rsp + 0x200]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.14009b14c
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14009a508
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0x210
pop rdi
ret
Function at 0x1400ff600
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x1400ff68b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.14009afa3
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400ff62d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, pe_nt_image_headers64
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14011b9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x218]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x3e8]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x14011bb80
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x140099e73]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x14011bb80
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14011ba63
cmp qword [rsp + 0x30], 0
je 0x14011bb80
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x20]
call fcn.14009b00c
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
je 0x14011bb80
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x14011bb80
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14011bb13
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6ec]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.140099ae0]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14011baeb
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14011bb82
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14011bb73
xor eax, eax
test eax, eax
jne 0x14011bb1e
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x14011bb71
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x14011bb80
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x14011e880
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 [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xaf2]
test eax, eax
je 0x14011e8dd
mov dword [rsp + 0xc0], 1
jmp 0x14011e8e8
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 0x14011e93e
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0xe0]
call fcn.14009a8f0
jmp 0x14011ea16
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa5c]
call fcn.140098e1f
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 + 0xa60]
call fcn.140098e1f
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, listen
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14011ea16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0xe0]
call fcn.14009a8f0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14009a508
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0xd0
pop rdi
ret
Function at 0x14011fdd0
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 [0x14021ab88]
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 0x14011fe75
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14009a2ec
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.14009a8f0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14009a508
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0x180
pop rdi
ret
Function at 0x14012c6f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012c791
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14009a508
add rsp, 0xa0
pop rdi
ret

Function at 0x140141300
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 0x14014134a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x14014138c
cmp qword [rsp + 0x90], 0
je 0x140141362
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x14014138c
cmp qword [rsp + 0x98], 0
je 0x14014137a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x14014138c
mov rcx, qword [rsp + 0xa0]
call fcn.1400999f5
jmp 0x14014145d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14009a34b
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x1401413ca
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x1401413ca
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x1401413d3
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x1401413fa
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x1401413fa
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x140141403
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x14014142a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x14014142a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x140141433
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.14009a508
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1401554e0
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.14009a1ac
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 0x140155588
jmp 0x140155672
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 0x1401555b3
jmp 0x14015564a
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 0x1401555d7
jmp 0x14015564a
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 0x140155602
jmp 0x14015564a
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x140155612
jmp 0x14015564a
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 0x140155640
jmp 0x14015564a
xor eax, eax
test eax, eax
jne 0x140155588
cmp qword [rsp + 0x58], 0
je 0x14015565d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x140155672
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.14009a508
add rsp, 0xd0
pop rdi
ret
Function at 0x1401572d0
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 [0x14020a048]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140157320
mov rcx, qword [rsp + 0x20]
call qword [0x14020a040]
xor eax, eax
jmp 0x14015738b
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 0x140157366
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x140157366
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x140157375
mov rcx, qword [rsp + 0x20]
call qword [0x14020a040]
xor eax, eax
jmp 0x14015738b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x140157386
mov rax, qword [rsp + 0x20]
jmp 0x14015738b
jmp 0x1401572f3
add rsp, 0x40
pop rdi
ret

Function at 0x140159400
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, listen
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
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 + 0x1d0]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x1401594c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1402142d0]
mov rcx, qword [rsp + 0x60]
call fcn.14009b14c
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x1402142ec]
mov rcx, qword [rsp + 0x60]
call fcn.140159130
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14009a508
add rsp, 0x50
pop rdi
ret
Function at 0x140173a70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax + 0x1d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0xe4], 0x80
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140173b2c
mov dword [rsp + 0xe4], 0x80
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
call fcn.14009a2a1
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140173b69
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x120]
call fcn.14009b14c
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x140173c4e
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x120]
call fcn.14009a8f0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x3b1], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov qword [rcx + rax + 0x1d0], rdx
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.140098898
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x3c4], 1
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x280], 0
je 0x140173c4c
mov dword [rsp + 0xf4], 0
mov dl, 1
mov rcx, qword [rsp + 0x120]
call fcn.14009a4b3
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x288]
mov rax, qword [rsp + 0x120]
call qword [rax + 0x280]
mov dword [rsp + 0xf4], eax
xor edx, edx
mov rcx, qword [rsp + 0x120]
call fcn.14009a4b3
cmp dword [rsp + 0xf4], 0
je 0x140173c4c
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
call fcn.1401738c0
mov eax, Ordinal_45
jmp 0x140173c4e
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0x110
pop rdi
ret
Function at 0x140177250
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x18], r8d
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 + 0x18]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1401772a5
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.14009b14c
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x140177328
cmp dword [rsp + 0x48], 0xc8
je 0x1401772c5
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.14009a8f0
cmp dword [rsp + 0x50], 0x13
jne 0x1401772e1
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1401757f0
mov dword [rsp + 0x20], eax
jmp 0x140177324
cmp dword [rsp + 0x50], 0x14
jne 0x1401772f8
mov rcx, qword [rsp + 0x40]
call fcn.1401758b0
mov dword [rsp + 0x20], eax
jmp 0x140177324
cmp dword [rsp + 0x50], 0x15
jne 0x14017730f
mov rcx, qword [rsp + 0x40]
call fcn.140175b80
mov dword [rsp + 0x20], eax
jmp 0x140177324
cmp dword [rsp + 0x50], 0x16
jne 0x140177324
mov rcx, qword [rsp + 0x40]
call fcn.140175bb0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1401a74f0
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 0x1401a7526
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401a756a
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 0x1401a7568
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401a756a
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1401a7580
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