joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104dc0
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x140104e01
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov ecx, 2
call fcn.140104c20
jmp 0x140104e03
xor eax, eax
add rsp, 0x38
ret

Function at 0x140105080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401050db
mov ecx, 0xffffffff
call fcn.140105170
cmp qword [rsp + 0x30], rax
jne 0x1401050df
xor eax, eax
jmp 0x1401050e4
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140105400
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
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 0x140105441
mov eax, 2
jmp 0x140105443
xor eax, eax
add rsp, 0x28
ret
Function at 0x14010ab00
Capabilities:
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
sub rsp, 0x58
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14010ab7c
jmp 0x14010ac54
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14010aba7
jmp 0x14010ac2c
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14010abc5
jmp 0x14010ac2c
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14010abed
jmp 0x14010ac2c
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x14010abfa
jmp 0x14010ac2c
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14010ac22
jmp 0x14010ac2c
xor eax, eax
test eax, eax
jne 0x14010ab7c
cmp qword [rsp + 0x40], 0
je 0x14010ac3f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x14010ac54
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x58
ret

Function at 0x14010ad00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x8000
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [0x1401d9018]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14010ad4f
mov rcx, qword [rsp + 0x30]
call qword [fcn.1401581f2]
xor eax, eax
jmp 0x14010adba
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14010ad95
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x14010ad95
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x14010ada4
mov rcx, qword [rsp + 0x30]
call qword [fcn.1401581f2]
xor eax, eax
jmp 0x14010adba
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x14010adb5
mov rax, qword [rsp + 0x30]
jmp 0x14010adba
jmp 0x14010ad22
add rsp, 0x48
ret
Function at 0x14010c8a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0xff
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x58]
mov byte [rsp + rax + 0x20], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x60]
mov byte [rsp + rax + 0x20], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jge 0x14010c94b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
lea rdx, [0x1401e09c8]
mov rcx, qword [rsp + 0x50]
call fcn.1400e22e0
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
lea rdx, [0x1401e09e4]
mov rcx, qword [rsp + 0x50]
call fcn.14010c5d0
add rsp, 0x48
ret
Function at 0x1401210f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x1a8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14012117d
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x1401211a0
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x70]
call fcn.1400e22e0
mov eax, 0x1e
jmp 0x14012126b
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x70]
call fcn.1400e21d0
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.1401484c0
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140135860
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1401211f7
mov eax, dword [rsp + 0x24]
jmp 0x14012126b
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x270], 0
je 0x140121269
mov dword [rsp + 0x28], 0
mov dl, 1
mov rcx, qword [rsp + 0x70]
call fcn.1400c3d50
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x278]
mov rax, qword [rsp + 0x70]
call qword [rax + 0x270]
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1400c3d50
cmp dword [rsp + 0x28], 0
je 0x140121269
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140120fa0
mov eax, Ordinal_46
jmp 0x14012126b
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x68
ret
Function at 0x1401244d0
Capabilities:
Check http status code

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
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 0x140124524
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.1400e22e0
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1401245b3
cmp dword [rsp + 0x48], 0xc8
je 0x140124544
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.1400e21d0
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x140124563
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140122a50
mov dword [rsp + 0x20], eax
jmp 0x1401245af
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x14012457d
mov rcx, qword [rsp + 0x40]
call fcn.140122b10
mov dword [rsp + 0x20], eax
jmp 0x1401245af
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x140124597
mov rcx, qword [rsp + 0x40]
call fcn.140122d90
mov dword [rsp + 0x20], eax
jmp 0x1401245af
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x1401245af
mov rcx, qword [rsp + 0x40]
call fcn.140122dc0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140133900
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x60], 0x20
jbe 0x140133931
xor al, al
jmp 0x140133a12
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x50]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140133952
xor al, al
jmp 0x140133a12
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x58]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140133973
xor al, al
jmp 0x140133a12
cmp dword [rsp + 0x60], 0
je 0x1401339d8
cmp dword [rsp + 0x60], 0x20
je 0x1401339d8
mov eax, 0x20
sub eax, dword [rsp + 0x60]
mov ecx, 0xffffffff
mov dword [rsp + 0x30], ecx
movzx ecx, al
mov eax, dword [rsp + 0x30]
shl eax, cl
mov dword [rsp + 0x3c], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x3c]
test eax, eax
je 0x1401339d4
xor al, al
jmp 0x140133a12
mov al, 1
jmp 0x140133a12
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jne 0x1401339ec
mov dword [rsp + 0x28], 1
jmp 0x1401339f4
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x140133a05
mov dword [rsp + 0x2c], 0
jmp 0x140133a0d
mov dword [rsp + 0x2c], 1
movzx eax, byte [rsp + 0x2c]
add rsp, 0x48
ret

Function at 0x140135190
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x1401ebd4c], 0
jne 0x1401351f4
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14013e120
movzx eax, al
test eax, eax
je 0x1401351ea
mov dword [0x1401ebd4c], 2
jmp 0x1401351f4
mov dword [0x1401ebd4c], 1
cmp dword [0x1401ebd4c], 2
jne 0x1401351ff
jmp 0x140135257
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140135234
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140135234
jmp 0x140135257
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret
Function at 0x140135b50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140135bdb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1400c0c10
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x160]
call fcn.1400e21d0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x158
ret

Function at 0x140135c00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xab4]
test eax, eax
je 0x140135c3d
mov dword [rsp + 0x54], 1
jmp 0x140135c45
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140135c98
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0x90]
call fcn.1400e21d0
jmp 0x140135d6a
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa1c]
call fcn.1400e5930
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa20]
call fcn.1400e5930
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, ntohs
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140135d6a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x98]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0x90]
call fcn.1400e21d0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x88
ret
Function at 0x140136850
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], pe_nt_image_headers64
mov r8d, pe_nt_image_headers64
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140136905
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r8d, 0x100
lea rdx, [rsp + 0xc0]
mov ecx, dword [rsp + 0x20]
call fcn.1400c0c10
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1e8]
call fcn.1400e22e0
mov eax, 2
jmp 0x140136985
mov rax, qword [rsp + 0x28]
add rax, 0x104
mov rcx, qword [rsp + 0x28]
add rcx, 0xd4
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x40]
call fcn.1400e3180
movzx eax, al
test eax, eax
jne 0x140136983
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xc0]
mov ecx, dword [rax]
call fcn.1400c0c10
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0x30]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1e8]
call fcn.1400e22e0
mov eax, 2
jmp 0x140136985
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x1d8
ret

Function at 0x140136e20
Capabilities:
Connect socket

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
xor eax, eax
test eax, eax
jne 0x140137ccc
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140137d28
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x28]
add rcx, 0xa0
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x48]
call fcn.1401350c0
jmp 0x140137d61
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140136850
xor eax, eax
test eax, eax
jne 0x140137d37
mov edx, 1
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x98]
call fcn.1401484c0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
xor eax, eax
add rsp, 0x38
ret
Function at 0x1401484c0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x1401484de
mov dword [rsp + 0x20], 1
jmp 0x1401484e6
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x14014f5b0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
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_CryptAcquireContextW]
test eax, eax
jne 0x14014f5e5
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14014f629
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 0x14014f627
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 0x14014f629
xor eax, eax
add rsp, 0x38
ret

Function at 0x14014f640
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
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, 0x28
ret

Function at 0x14014f730
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
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 0x14014f780
mov eax, dword [rsp + 0x20]
jmp 0x14014f7a6
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14014f7a4
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x38
ret
Function at 0x14014fdf0
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
sub rsp, 0x88
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 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_CryptAcquireContextW]
test eax, eax
jne 0x14014fe46
xor al, al
jmp 0x14014ff3a
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memset
mov byte [rsp + 0x58], 8
mov byte [rsp + 0x59], 2
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0xa0]
call fcn.14014fc00
mov edx, 8
lea rcx, [rsp + 0x64]
call fcn.140155c70
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14014fed3
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14014ff3a
mov r8d, 8
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
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 rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x88
ret