joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b95f0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.14007d550
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call fcn.140186d50
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140186d50
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400b96d7
cmp qword [rsp + 0x58], 0
je 0x1400b96ab
mov rcx, qword [rsp + 0x58]
call fcn.14012bfc0
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400b9690
cmp qword [rsp + 0x60], 0
je 0x1400b96cc
mov rcx, qword [rsp + 0x60]
call fcn.14012bfc0
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400b96b1
jmp 0x1400b979a
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.14007d550
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.14007d660
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x1400b9741
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x1400b978a
cmp qword [rsp + 0x58], 0
je 0x1400b975c
mov rcx, qword [rsp + 0x58]
call fcn.14012bfc0
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400b9741
cmp qword [rsp + 0x60], 0
je 0x1400b977d
mov rcx, qword [rsp + 0x60]
call fcn.14012bfc0
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400b9762
mov eax, 1
jmp 0x1400b979c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400b9676
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.140184540
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14002d8e0
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x1400baa40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.14013a950
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400baa9b
mov ecx, 0xffffffff
call fcn.1400bab50
cmp qword [rsp + 0x30], rax
jne 0x1400baa9f
xor eax, eax
jmp 0x1400baaa4
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret

Function at 0x1400bae50
Capabilities:
Generate random numbers via winapi

Disassembly:
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.140114d30
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1400bae92
mov eax, 2
jmp 0x1400bae94
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400c0b60
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.140114d30
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 0x1400c0c08
jmp 0x1400c0cf2
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 0x1400c0c33
jmp 0x1400c0cca
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 0x1400c0c57
jmp 0x1400c0cca
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 0x1400c0c82
jmp 0x1400c0cca
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1400c0c92
jmp 0x1400c0cca
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 0x1400c0cc0
jmp 0x1400c0cca
xor eax, eax
test eax, eax
jne 0x1400c0c08
cmp qword [rsp + 0x58], 0
je 0x1400c0cdd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x1400c0cf2
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.140184540
add rsp, 0xd0
pop rdi
ret
Function at 0x1400c0db0
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 [fcn.14013ab40]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400c0e00
mov rcx, qword [rsp + 0x20]
call qword [fcn.14012bfc0]
xor eax, eax
jmp 0x1400c0e6b
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 0x1400c0e46
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1400c0e46
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1400c0e55
mov rcx, qword [rsp + 0x20]
call qword [fcn.14012bfc0]
xor eax, eax
jmp 0x1400c0e6b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1400c0e66
mov rax, qword [rsp + 0x20]
jmp 0x1400c0e6b
jmp 0x1400c0dd3
add rsp, 0x40
pop rdi
ret

Function at 0x1400c2aa0
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, reloc.WS2_32.dll_inet_ntoa
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 + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x1400c2b62
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1401e8858]
mov rcx, qword [rsp + 0x60]
call fcn.1400943f0
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x1401e8874]
mov rcx, qword [rsp + 0x60]
call fcn.1400c27d0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.140184540
add rsp, 0x50
pop rdi
ret
Function at 0x1400d88b0
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 [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
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 + 0x1a8]
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 0x1400d896c
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 0x1400d8992
lea rdx, [0x1401e9d48]
mov rcx, qword [rsp + 0x130]
call fcn.1400943f0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400d8a8a
lea rdx, [0x1401e9d70]
mov rcx, qword [rsp + 0x130]
call fcn.1400942b0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140105190
lea r9, [rsp + 0x38]
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.1400eec70
mov dword [rsp + 0x104], eax
cmp dword [rsp + 0x104], 0
je 0x1400d89fb
mov eax, dword [rsp + 0x104]
jmp 0x1400d8a8a
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x270], 0
je 0x1400d8a88
mov dword [rsp + 0x108], 0
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.1400741c0
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x278]
mov rax, qword [rsp + 0x130]
call qword [rax + 0x270]
mov dword [rsp + 0x108], eax
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.1400741c0
cmp dword [rsp + 0x108], 0
je 0x1400d8a88
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.1400d8760
mov eax, Ordinal_46
jmp 0x1400d8a8a
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140184540
mov rax, rdi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14002d8e0
add rsp, 0x120
pop rdi
ret
Function at 0x1400dc1d0
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 + 0x18]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1400dc225
lea rdx, [0x1401ea598]
mov rcx, qword [rsp + 0x40]
call fcn.1400943f0
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1400dc2b4
cmp dword [rsp + 0x48], 0xc8
je 0x1400dc245
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1401ea498]
mov rcx, qword [rsp + 0x40]
call fcn.1400942b0
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x1400dc264
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1400da5f0
mov dword [rsp + 0x20], eax
jmp 0x1400dc2b0
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x1400dc27e
mov rcx, qword [rsp + 0x40]
call fcn.1400da6b0
mov dword [rsp + 0x20], eax
jmp 0x1400dc2b0
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x1400dc298
mov rcx, qword [rsp + 0x40]
call fcn.1400da970
mov dword [rsp + 0x20], eax
jmp 0x1400dc2b0
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x1400dc2b0
mov rcx, qword [rsp + 0x40]
call fcn.1400da9a0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ee490
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x1404dafbc], 0
jne 0x1400ee511
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400fa9d0
movzx eax, al
test eax, eax
je 0x1400ee507
mov dword [0x1404dafbc], 2
jmp 0x1400ee511
mov dword [0x1404dafbc], 1
cmp dword [0x1404dafbc], 2
jne 0x1400ee51c
jmp 0x1400ee57a
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400ee554
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x1400ee554
jmp 0x1400ee57a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140184540
add rsp, 0x90
pop rdi
ret
Function at 0x1400eef60
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 [0x1401e1010]
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 0x1400ef005
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400b6ec0
mov r8, rax
lea rdx, [0x1401ebc10]
mov rcx, qword [rsp + 0x190]
call fcn.1400942b0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.140184540
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14002d8e0
add rsp, 0x180
pop rdi
ret

Function at 0x1400ef040
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 [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xab4]
test eax, eax
je 0x1400ef09d
mov dword [rsp + 0xc0], 1
jmp 0x1400ef0a8
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 0x1400ef0fe
mov r8, qword [rsp + 0xe8]
lea rdx, [0x1401ebc30]
mov rcx, qword [rsp + 0xe0]
call fcn.1400942b0
jmp 0x1400ef1d6
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa1c]
call fcn.140097f70
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 + 0xa20]
call fcn.140097f70
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, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400ef1d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0xe8]
lea rdx, [0x1401ebc58]
mov rcx, qword [rsp + 0xe0]
call fcn.1400942b0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140184540
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14002d8e0
add rsp, 0xd0
pop rdi
ret
Function at 0x1400f0010
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 [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.140114d30
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 0x1400f00f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x204], eax
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x204]
call fcn.1400b6ec0
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, [0x1401ebde8]
mov rcx, qword [rsp + 0x238]
call fcn.1400943f0
mov eax, 2
jmp 0x1400f0178
mov rax, qword [rsp + 0x20]
add rax, 0x104
mov rcx, qword [rsp + 0x20]
add rcx, 0xd4
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x1f4]
lea rcx, [rsp + 0x160]
call fcn.1400953f0
movzx eax, al
test eax, eax
jne 0x1400f0176
call fcn.1401404f0
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.1400b6ec0
mov qword [rsp + 0x210], rax
call fcn.1401404f0
mov rcx, qword [rsp + 0x210]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, [0x1401ebe10]
mov rcx, qword [rsp + 0x238]
call fcn.1400943f0
mov eax, 2
jmp 0x1400f0178
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140184540
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.14002d8e0
add rsp, 0x220
pop rdi
ret

Function at 0x1400f0690
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 0x1400f06c5
jmp 0x1400f06f0
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 0x1400f1690
Capabilities:
Connect socket

Disassembly:
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
xor eax, eax
test eax, eax
jne 0x1400f16ad
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
cmp dword [rsp + 0x28], 0xffffffff
jne 0x1400f1709
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x20]
add rcx, 0xa0
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x48]
call fcn.1400ee390
jmp 0x1400f1742
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400f0010
xor eax, eax
test eax, eax
jne 0x1400f1718
mov edx, 1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call fcn.140105190
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 8]
mov dword [rsp + 0x2c], eax
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140105190
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x1401051c5
mov dword [rsp + 0x34], 1
jmp 0x1401051cd
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.140184540
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x14010cb90
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 0x14010cbc6
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14010cc0a
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 0x14010cc08
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 0x14010cc0a
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14010cc20
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 0x14010cd30
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x14010cd81
mov eax, dword [rsp + 0x20]
jmp 0x14010cda7
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.140115070
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14010cda5
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x30
pop rdi
ret