joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180063e10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x38], 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 + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x180063eaa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1800c2ee0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, qword [rsp + 0x38]
call fcn.18005ffc0
jmp 0x180063ebb
lea rdx, str.TCP_NODELAY_set_n
mov rcx, qword [rsp + 0x38]
call fcn.18005ffc0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0xd8
ret

Function at 0x180064680
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x1e8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [rsp + 0x1f0]
and eax, 2
test eax, eax
je 0x180064735
mov eax, 0x202
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1800646de
mov eax, 2
jmp 0x180064789
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x180064728
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x180064735
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x180064789
call fcn.1800c5830
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x18006474b
mov eax, dword [rsp + 0x24]
jmp 0x180064789
mov r9d, 3
mov r8d, 2
xor edx, edx
mov ecx, 6
call fcn.1800647e0
movzx eax, al
test eax, eax
je 0x180064780
mov byte [0x180179430], 1
lea rcx, [0x180179438]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x180064787
mov byte [0x180179430], 0
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x1e8
ret
Function at 0x1800649f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180064a2c
xor eax, eax
jmp 0x180064bc8
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
lea rdx, [0x1801597b8]
mov rcx, qword [rsp + 0x70]
call fcn.180103360
test rax, rax
je 0x180064a98
cmp qword [rsp + 0x30], 0
je 0x180064a79
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_50]
mov qword [rsp + 0x48], rax
jmp 0x180064a89
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
jmp 0x180064bc3
cmp qword [rsp + 0x30], 0
je 0x180064ad2
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180064ad2
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_50]
mov qword [rsp + 0x38], rax
jmp 0x180064bc3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180064bc3
mov rcx, qword [rsp + 0x70]
call fcn.1800fb030
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
add rax, qword [rsp + 0x58]
mov rcx, rax
call qword [fcn.1800fb170]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180064bb8
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x180064bb8
mov rcx, qword [rsp + 0x28]
call fcn.1800fb030
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
lea rdx, [0x1801597bc]
mov rcx, rax
call fcn.1800faf60
mov rcx, qword [rsp + 0x28]
call fcn.1800fb030
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.1800faf60
cmp qword [rsp + 0x30], 0
je 0x180064b9e
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [rsp + Ordinal_50]
mov qword [rsp + 0x50], rax
jmp 0x180064bae
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x28]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x38]
add rsp, 0x68
ret
Function at 0x18006c9c0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x2a8]
lea rdx, str._s
lea rcx, [rsp + 0x170]
call fcn.180005290
xor eax, eax
cmp eax, 1
je 0x18006cab4
cmp dword [rsp + 0x20], 0
je 0x18006ca52
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18006ca48
jmp 0x18006cab4
mov dword [rsp + 0x20], 0
jmp 0x18006ca68
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18006ca68
jmp 0x18006cab4
lea rdx, str.bootstat.dat
lea rcx, [rsp + 0x5c]
call fcn.1800fb190
test eax, eax
jne 0x18006ca7f
jmp 0x18006ca14
mov r9, qword [rsp + 0x2b0]
lea r8, [rsp + 0x5c]
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.18006c8f0
test eax, eax
je 0x18006caaf
mov dword [rsp + 0x24], 1
jmp 0x18006cab4
jmp 0x18006ca14
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x18006cac7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x298
ret

Function at 0x18006f070
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x30], 0x44
mov dword [rsp + 0x40], 0x10000000
mov dword [rsp + 0x44], 3
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, 1
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov eax, dword [rsp + 0x30]
add rax, 0x10
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
xor ecx, ecx
call fcn.18000bb40
mov qword [rsp + 0x38], rax
mov r8d, 2
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAceEx]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x38]
call fcn.18000bb20
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0xf8
ret
Function at 0x1800705b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r9, qword [rsp + 0x48]
mov r8d, 4
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800fd0bc
lea r8, [rsp + 0x20]
lea rdx, [0x18015a32c]
mov rcx, qword [rsp + 0x50]
call fcn.1800052e0
cmp dword [rsp + 0x20], 0xc8
jle 0x180070625
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x228], 0xffffff85
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x244], 0xffffffe8
mov eax, 0xffffff85
jmp 0x1800706a9
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x48]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800fd0bc
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x180070676
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x228], 0xffffff85
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x244], 0xffffffe7
mov eax, 0xffffff85
jmp 0x1800706a9
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x228], 0
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.180070420
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0
xor eax, eax
add rsp, 0x38
ret

Function at 0x180070780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x868
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x850], rax
cmp qword [rsp + 0x870], 0
je 0x1800707dc
mov rax, qword [rsp + 0x878]
mov qword [rsp + 0x20], rax
mov r9d, 0x5c
mov r8, qword [rsp + 0x870]
lea rdx, [0x18015a330]
lea rcx, [rsp + 0x40]
call fcn.180005290
jmp 0x1800707ee
mov rdx, qword [rsp + 0x878]
lea rcx, [rsp + 0x40]
call fcn.1800faf60
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x180070816
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x180070816
mov eax, 1
jmp 0x180070818
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x868
ret
Function at 0x180071d70
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x1d8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x1f0], 0xb
jne 0x180071e09
movsxd rax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x1e0]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x208]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x200]
mov r8, qword [rsp + 0x1f8]
mov edx, dword [rsp + 0x1f0]
mov rcx, rax
call fcn.180072bf0
jmp 0x180071fda
cmp qword [rsp + 0x1e8], 0
jne 0x180071e36
mov edx, 0x100
lea rcx, [rsp + 0xb0]
call fcn.180021c30
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x1e8], rax
cmp qword [rsp + 0x1e8], 0
je 0x180071f8e
cmp dword [rsp + 0x1f0], 2
jne 0x180071f42
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18012a620
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x84], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180071f3a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180071f38
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 2
jne 0x180071ef8
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x60], rax
movzx ecx, word [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
jmp 0x180071f28
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 0x17
jne 0x180071f28
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x68], rax
movzx ecx, word [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x68]
mov word [rcx + 2], ax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x180071ebe
jmp 0x180071f42
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x40], 0
je 0x180071f8e
xor ecx, ecx
call fcn.180071cf0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180071f64
mov rax, qword [rsp + 0x48]
jmp 0x180071fda
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x60], 0xffffff28
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x64], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rsp + 0x48]
jmp 0x180071fda
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x208]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x200]
mov r8, qword [rsp + 0x1f8]
mov edx, dword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x50]
call fcn.180072bf0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x1d8
ret
Function at 0x180080880
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1800808fb
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x68
ret
Function at 0x18009ba70
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 fcn.18012a620
mov dword [rsp + 0x20], 0xf0000000
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18009baec
jmp 0x18009bbc4
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 0x18009bb17
jmp 0x18009bb9c
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 0x18009bb35
jmp 0x18009bb9c
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 0x18009bb5d
jmp 0x18009bb9c
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x18009bb6a
jmp 0x18009bb9c
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 0x18009bb92
jmp 0x18009bb9c
xor eax, eax
test eax, eax
jne 0x18009baec
cmp qword [rsp + 0x40], 0
je 0x18009bbaf
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x18009bbc4
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x58
ret

Function at 0x18009bcb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x170]
call fcn.1800fc424
mov qword [rsp + 0x28], rax
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x104
jae 0x18009bcfb
jmp 0x18009bd00
call fcn.1800e9a54
mov rax, qword [rsp + 0x20]
mov byte [rsp + rax + 0x40], 0
cmp qword [rsp + 0x28], 0
je 0x18009bd28
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x40]
test eax, eax
je 0x18009bd4c
lea rcx, [rsp + 0x40]
call qword [0x180150278]
mov qword [rsp + 0x30], rax
jmp 0x18009bd55
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x168
ret
Function at 0x18009c5b0
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], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18009c605
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]
add rsp, 0x38
ret

Function at 0x18009c610
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 0x1800a1180
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor eax, eax
test eax, eax
jne 0x1800a119e
mov eax, 2
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1800a11e9
mov r8d, dword [rsp + 0x24]
lea rdx, str.WSAStartup_failed___d_
mov rcx, qword [rsp + 0x1f0]
call fcn.180060120
mov eax, 2
jmp 0x1800a1256
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1800a1239
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1800a1254
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, qword [rsp + 0x1f0]
call fcn.180060120
mov eax, 2
jmp 0x1800a1256
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x1e8
ret

Function at 0x1800a1d30
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]
mov qword [rsp + 0x30], 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 + 0x50]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jge 0x1800a1dda
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
lea rdx, str.Sending_data_failed___d_
mov rcx, qword [rsp + 0x30]
call fcn.180060120
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
lea rdx, [0x18015f6e4]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.1800a1a60
add rsp, 0x48
ret
Function at 0x1800b5950
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rcx + rax + 0x240]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1800b59e8
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call fcn.180062840
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1800b5a1d
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x28]
call fcn.180060120
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1800b5b06
lea rdx, str.Connection_accepted_from_server_n
mov rcx, qword [rsp + 0x28]
call fcn.18005ffc0
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x3c4]
btr eax, 0xb
mov rcx, qword [rsp + 0xf0]
mov dword [rcx + 0x3c4], eax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x38]
mov qword [rcx + rax + 0x240], rdx
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1800c4320
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0xf0]
mov byte [rcx + rax + 0x260], 1
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x738], 0
je 0x1800b5b04
mov dword [rsp + 0x30], 0
mov dl, 1
mov rcx, qword [rsp + 0x28]
call fcn.180043b40
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x740]
mov rax, qword [rsp + 0x28]
call qword [rax + 0x738]
mov dword [rsp + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180043b40
cmp dword [rsp + 0x30], 0
je 0x1800b5b04
mov rcx, qword [rsp + 0xf0]
call fcn.1800b5760
mov eax, Ordinal_46
jmp 0x1800b5b06
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0xe8
ret