joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017e70
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x218
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rcx, [rsp + 0x190]
call fcn.180018f80
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x30]
lea rdx, [0x1801545ac]
lea rcx, [rsp + 0x190]
call fcn.180005290
cmp qword [rsp + 0x30], 0
je 0x180017edc
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
jne 0x180017ee9
mov rax, qword [rsp + 0x240]
jmp 0x180017fbf
mov qword [rsp + 0x38], 0xffffffffffffffff
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x180017fb7
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0x220]
call fcn.18001a3b0
test eax, eax
je 0x180017f94
mov rax, qword [rsp + 0x228]
movsx eax, byte [rax]
test eax, eax
je 0x180017f53
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x228]
call fcn.1800fb190
test eax, eax
jne 0x180017f94
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x230]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0x220]
call fcn.18001a4e0
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180017f13
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x218
ret
Function at 0x18001b1a0
Capabilities:
Read file on windows

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, 0xce0
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0xcd0], rax
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x401
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xcf0]
cmp qword [rax + 0x70], 0
jne 0x18001b200
xor eax, eax
jmp 0x18001b32c
mov rax, qword [rsp + 0xcf0]
mov rax, qword [rax + 0x70]
add rax, 8
mov qword [rsp + 0x58], rax
xor ecx, ecx
call fcn.1800223b0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x5c
mov rcx, qword [rsp + 0xcf8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x5c
mov r8, rax
lea rdx, [0x1801545b8]
lea rcx, [rsp + 0x4c0]
call fcn.180005290
lea rdx, [0x1801545c8]
lea rcx, [rsp + 0x4c0]
call fcn.1800ff394
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18001b328
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x401
jae 0x18001b298
jmp 0x18001b29d
call fcn.1800e9a54
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0xb0], 0
mov r9, qword [rsp + 0x48]
mov r8d, 0x400
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.1800fd0bc
lea rdx, [0x1801545cc]
lea rcx, [rsp + 0xb0]
call fcn.1800faec0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0xd08]
lea rdx, str._x__d____n_
lea rcx, [rsp + 0xb0]
call fcn.1800052e0
mov r8d, 0x40
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xd00]
call fcn.18000c140
mov rcx, qword [rsp + 0x48]
call fcn.1800fea4c
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xcd0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0xce0
pop rdi
ret
Function at 0x18001cb10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.18001d6b0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 0xffffffff
cmp qword [rsp + 0x88], 0
je 0x18001cb9c
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
test eax, eax
je 0x18001cb9c
mov r8d, ntohl
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.18000c140
lea rcx, [rsp + 0x50]
call fcn.18000bdb0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x50]
call fcn.18001d160
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x18001cbcc
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x14]
add eax, 0x76c
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x40], 0
je 0x18001cc04
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x34]
call fcn.18006c6d0
jmp 0x18001cbcc
movsxd rax, dword [rsp + 0x30]
lea rcx, [0x180154670]
mov edx, dword [rsp + 0x34]
mov dword [rsp + 0x20], edx
mov r9, qword [rcx + rax*8]
mov r8d, dword [rsp + 0x38]
lea rdx, str._d__s__d
mov rcx, qword [rsp + 0x90]
call fcn.180005290
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x78
ret
Function at 0x180021490
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov eax, 1
imul rax, rax, 0
lea rcx, [0x180175760]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1800214fa
mov r9d, 1
mov r8d, reloc.WLDAP32.dll_Ordinal_35
lea rdx, [0x180175760]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x1800214fa
lea rcx, [0x180175760]
call fcn.1800fb030
lea rcx, [0x180175760]
add rcx, rax
mov rax, rcx
lea r8, str.Reprise
lea rdx, [0x180154964]
mov rcx, rax
call fcn.180005290
lea rax, [0x180175760]
add rsp, 0x28
ret

Function at 0x180021a80
Capabilities:
Get session user name

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x378
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x28], 0x101
lea rax, [rsp + 0x150]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x28]
mov r8d, eax
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.18012a620
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov r8d, 0x101
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x150]
call fcn.180022450
mov r8d, dword [rsp + 0x388]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x380]
call fcn.18000c140
mov eax, dword [rsp + 0x388]
dec eax
cdqe
mov rcx, qword [rsp + 0x380]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x380]
mov qword [rsp + 0x20], rax
jmp 0x180021b42
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x180021c06
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
and eax, 0xff
mov ecx, eax
call fcn.1800fc8c0
test eax, eax
je 0x180021b85
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
and eax, 0xff
mov ecx, eax
call fcn.1800fcc84
mov rcx, qword [rsp + 0x20]
mov byte [rcx], al
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
and eax, 0xff
mov ecx, eax
call fcn.1800fc810
test eax, eax
je 0x180021ba7
mov rax, qword [rsp + 0x20]
mov byte [rax], 0x5f
jmp 0x180021c01
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x26
jne 0x180021bbe
mov rax, qword [rsp + 0x20]
mov byte [rax], 0x41
jmp 0x180021c01
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x22
jne 0x180021bd5
mov rax, qword [rsp + 0x20]
mov byte [rax], 0x51
jmp 0x180021c01
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x3e
jne 0x180021bec
mov rax, qword [rsp + 0x20]
mov byte [rax], 0x47
jmp 0x180021c01
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
cmp eax, 0x3c
jne 0x180021c01
mov rax, qword [rsp + 0x20]
mov byte [rax], 0x4c
jmp 0x180021b35
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x378
ret

Function at 0x180021c30
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
add rsp, 0x28
ret
Function at 0x180022620
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.18012a620
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0xac], 1
xor eax, eax
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
mov edx, 0x2710
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], 0
jne 0x1800226e0
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x50]
add rsp, 0xe8
ret

Function at 0x180023330
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x208
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
lea rcx, [rsp + 0x180]
call fcn.180025a70
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x30]
lea rdx, [0x180154bfc]
lea rcx, [rsp + 0x180]
call fcn.180005290
cmp qword [rsp + 0x30], 0
je 0x18002339c
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
jne 0x1800233a9
mov rax, qword [rsp + 0x230]
jmp 0x180023450
mov qword [rsp + 0x38], 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x180023448
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x210]
call fcn.180025c90
test eax, eax
je 0x180023429
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x220]
mov r8, qword [rsp + 0x218]
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x210]
call fcn.180025d40
mov qword [rsp + 0x230], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800233cf
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x208
ret
Function at 0x180025880
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor ecx, ecx
call fcn.1800223b0
mov qword [rsp + 0x38], rax
mov edx, 0x3e8
lea rcx, [rsp + 0xb0]
call fcn.180021700
mov rcx, qword [rsp + 0x38]
call fcn.18010670c
test eax, eax
je 0x1800258f9
mov rax, qword [rsp + 0x4c0]
mov dword [rax + 0x228], 0xffffff76
mov rax, qword [rsp + 0x4c0]
mov eax, dword [rax + 0x228]
jmp 0x1800259cb
mov eax, 1
imul rax, rax, 1
lea rax, [rsp + rax + 0x40]
mov dword [rsp + 0x20], 1
mov r9, rax
mov r8, qword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x4c8]
mov rcx, qword [rsp + 0x4c0]
call fcn.1800240c0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], Ordinal_60
lea rdx, [0x180154a50]
lea rcx, [rsp + 0x40]
call fcn.180021670
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180025994
mov rcx, qword [rsp + 0x30]
call fcn.1800fea4c
lea rcx, [rsp + 0xb0]
call fcn.18010670c
mov rax, qword [rsp + 0x4c0]
mov dword [rax + 0x228], 0xffffff77
mov rax, qword [rsp + 0x4c0]
mov eax, dword [rax + 0x228]
jmp 0x1800259cb
lea rdx, [0x180154a54]
lea rcx, [rsp + 0x40]
call fcn.180021670
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800259bc
mov rcx, qword [rsp + 0x30]
call fcn.1800fea4c
lea rcx, [rsp + 0xb0]
call fcn.18010670c
xor eax, eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x4b8
ret
Function at 0x18004ad60
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jae 0x18004adea
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 + 0x20], al
movzx ecx, byte [rsp + 0x20]
call fcn.180065060
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x18004ad8c
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
Function at 0x1800603f0
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
sub rsp, 0x48
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x180060472
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2733
jne 0x18006044d
mov dword [rsp + 0x20], 1
jmp 0x180060455
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x18006046b
mov eax, 0x51
jmp 0x180060481
mov eax, Ordinal_60
jmp 0x180060481
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax*8 + 0x240]
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.180060d50
xor r9d, r9d
mov r8d, dword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x100]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x180060716
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x1800606c5
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x100]
mov dword [rax], 0x51
jmp 0x180060716
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.1800c2ee0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax]
call fcn.180060120
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x10e8], ecx
mov rax, qword [rsp + 0x100]
mov dword [rax], Ordinal_60
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0xd8
ret
Function at 0x180060d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + rax*8 + 0x240]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x288]
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 + 0x60]
mov rax, qword [rax + 0x3e8]
mov eax, dword [rax + 0x7c]
and eax, 3
test eax, eax
je 0x180060f04
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rdx, [0x180060490]
cmp qword [rcx + rax*8 + 0x268], rdx
jne 0x180060f04
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x180060df9
cmp qword [rsp + 0x30], 0
je 0x180060f04
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.18005eec0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x180060f04
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x180060f04
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x180060e97
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov eax, dword [rax + 0xb60]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.1800fb170]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
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 0x180060ef7
xor eax, eax
test eax, eax
jne 0x180060ea2
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 + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x180060ef5
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 0x180060f04
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
add rsp, 0x58
ret

Function at 0x180062340
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, Ordinal_27
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x2d8]
and eax, 1
test eax, eax
je 0x180062379
mov rcx, qword [rsp + 0x40]
call fcn.180052d80
test eax, eax
jne 0x180062377
xor al, al
jmp 0x1800623cf
jmp 0x1800623cd
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + rax + 0x240], 0xffffffffffffffff
jne 0x180062398
xor al, al
jmp 0x1800623cf
mov eax, 8
imul rax, rax, 0
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1800623cd
xor al, al
jmp 0x1800623cf
mov al, 1
add rsp, 0x38
ret
Function at 0x1800623e0
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 [0x1801759e4], 0
jne 0x18006243f
mov r9d, 3
mov r8d, 2
xor edx, edx
mov ecx, 6
call fcn.1800647e0
movzx eax, al
test eax, eax
je 0x180062435
mov dword [0x1801759e4], 2
jmp 0x18006243f
mov dword [0x1801759e4], 1
cmp dword [0x1801759e4], 2
jne 0x18006244a
jmp 0x1800624a2
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 0x18006247f
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x18006247f
jmp 0x1800624a2
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 0x1800624b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1f0]
cmp dword [rax + 0xbc], 2
jne 0x1800624f9
jmp 0x180062735
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x3c4]
shr eax, 1
and eax, 1
test eax, eax
jne 0x180062728
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x3c4]
shr eax, 0x1b
and eax, 1
test eax, eax
jne 0x180062728
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180062596
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rsp + 0x24]
call fcn.1800c2ee0
mov r9, rax
mov r8d, dword [rsp + 0x24]
lea rdx, str.getpeername___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.180060120
jmp 0x180062735
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18012a620
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18006260b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rsp + 0x28]
call fcn.1800c2ee0
mov r9, rax
mov r8d, dword [rsp + 0x28]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.180060120
jmp 0x180062735
mov rax, qword [rsp + 0x1f0]
add rax, 0x1bc
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x18e
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0xd0]
call fcn.180063ce0
movzx eax, al
test eax, eax
jne 0x180062687
call fcn.180102964
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rax]
call fcn.1800c2ee0
mov qword [rsp + 0x38], rax
call fcn.180102964
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.180060120
jmp 0x180062735
mov rax, qword [rsp + 0x1f0]
add rax, 0x18e
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x88
mov r8d, reloc.WLDAP32.dll_Ordinal_46
mov rdx, rax
call fcn.180129f80
mov rax, qword [rsp + 0x1f0]
add rax, 0x1f0
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x1c0
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180063ce0
movzx eax, al
test eax, eax
jne 0x180062728
call fcn.180102964
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rax]
call fcn.1800c2ee0
mov qword [rsp + 0x40], rax
call fcn.180102964
mov rcx, qword [rsp + 0x40]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.180060120
jmp 0x180062735
mov rcx, qword [rsp + 0x1f0]
call fcn.180062760
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x1e8
ret
Function at 0x180062da0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xe74]
shr eax, 0xd
and eax, 1
test eax, eax
je 0x180062de2
mov dword [rsp + 0x54], 1
jmp 0x180062dea
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 0x180062e3d
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, qword [rsp + 0x90]
call fcn.18005ffc0
jmp 0x180062f0f
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xdfc]
call fcn.180064030
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 + 0xe00]
call fcn.180064030
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, ntohl
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180062f0f
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_n
mov rcx, qword [rsp + 0x90]
call fcn.18005ffc0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x88
ret