joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008820
Capabilities:
Set console window title

Disassembly:
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rbp + 0xa0], rax
lea rcx, [rsp + 0x68]
call fcn.1400086c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400086c0
nop
mov r8d, 4
lea rdx, [0x1401454c0]
lea rcx, [rsp + 0x48]
call fcn.140001aa0
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400088b3
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x28]
call fcn.140001b50
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call fcn.1400ef59c
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140008930
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000892a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089d2
call fcn.1400db19c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140008969
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008964
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089d8
call fcn.1400db19c
movdqa xmm0, xmmword [0x1401467b0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400089b4
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400089af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089cc
call fcn.1400db19c
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400daef0
add rsp, 0x1b0
pop rbp
ret
call fcn.1400eeeb4
nop
call fcn.1400eeeb4
nop
call fcn.1400eeeb4
int3

Function at 0x1400089e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
xor ebx, ebx
nop
xor eax, eax
mov dword [rsp + 0x20], 0x948281bb
mov byte [rsp + 0x2c], al
mov dword [rsp + 0x24], 0x9ca39f93
mov dword [rsp + 0x28], 0x8e979398
nop
movsxd rcx, eax
lea rdx, [rsp + 0x20]
add rdx, rcx
lea ecx, [rax - 0x12]
inc eax
xor byte [rdx], cl
cmp eax, 0xc
jb 0x140008a20
xor edx, edx
mov byte [rsp + 0x2c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140008a75
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x14
jl 0x140008a00
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400daef0
add rsp, 0x40
pop rbx
ret
Function at 0x1400094d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
cmp dword [0x14017ae90], ebx
je 0x1400095f2
mov qword [rsp + 0x88], rdi
mov edx, ebx
mov dword [rbp - 0x50], 0x859f9dbe
mov dword [rbp - 0x4c], 0xb2809097
mov dword [rbp - 0x48], 0x8b998284
mov word [rbp - 0x44], 0x9e
nop
movsxd rax, edx
lea rcx, [rbp - 0x50]
add rcx, rax
lea eax, [rdx - 0x12]
inc edx
xor byte [rcx], al
cmp edx, 0xd
jb 0x140009520
xor edx, edx
mov byte [rbp - 0x43], bl
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400095a0
mov r8d, 0xf01ff
mov qword [rsp + 0x80], rsi
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x14000958f
lea r8, [rbp - 0x38]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov edx, ebx
mov dword [rbp - 0x50], 0x859f9dbe
mov dword [rbp - 0x4c], 0xb2809097
mov dword [rbp - 0x48], 0x8b998284
mov word [rbp - 0x44], 0x9e
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x50]
add rcx, rax
lea eax, [rdx - 0x12]
inc edx
xor byte [rcx], al
cmp edx, 0xd
jb 0x1400095d0
lea rcx, [rbp - 0x50]
mov byte [rbp - 0x43], bl
call fcn.14003b1e0
mov rcx, qword [0x14017ae70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x140146bb0]
xor eax, eax
movdqa xmm1, xmmword [0x140146b30]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0xa], al
movdqu xmmword [rbp - 0x28], xmm1
mov dword [rbp - 0x18], 0x6562697d
mov dword [rbp - 0x14], 0x63776b67
mov dword [rbp - 0x10], 0x6a36746e
mov word [rbp - 0xc], 0x6863
nop dword [rax]
movsxd rax, ebx
lea rcx, [rbp - 0x38]
add rcx, rax
lea eax, [rbx - 0x12]
inc ebx
xor byte [rcx], al
cmp ebx, 0x2e
jb 0x140009640
lea rcx, [rbp - 0x38]
mov byte [rbp - 0xa], 0
call fcn.1400ef4b8
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400daef0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x14000ca60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000cabd
lea rbx, [0x140140440]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000caa4
cmp r10, 2
jb 0x14000caa4
cmp byte [r9], r8b
jne 0x14000caa4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000ca80
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000caff
lea rbx, [0x140140440]
cmp r8b, 0x23
jne 0x14000cae3
cmp byte [r9], r8b
jne 0x14000cae3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000cad0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000cc40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000cc5a
mov qword [r8], 0
lea rdx, [0x140145984]
call fcn.14000cb10
mov rbx, rax
test rax, rax
jne 0x14000cc7a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1400efd70
mov esi, eax
cmp eax, 0xffffffff
je 0x14000cd48
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400f07f4
test eax, eax
jne 0x14000cd48
mov rcx, rbx
call fcn.1400efd70
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000cd48
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400f07f4
test eax, eax
jne 0x14000cd48
cmp rdi, 0xffffffffffffffff
je 0x14000cd48
mov rax, qword [0x14017aea8]
test rax, rax
je 0x14000ccea
inc dword [rax + 0xec]
mov rcx, rdi
call fcn.1400ef748
mov rsi, rax
test rax, rax
je 0x14000cd48
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400f1614
mov rcx, rbx
cmp rax, rdi
je 0x14000cd36
call fcn.1400f0474
mov rax, qword [0x14017aea8]
test rax, rax
je 0x14000cd2c
dec dword [rax + 0xec]
mov rcx, rsi
call fcn.1400ef2dc
jmp 0x14000cd50
call fcn.1400f0474
test r14, r14
je 0x14000cd43
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000cd52
mov rcx, rbx
call fcn.1400f0474
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000ee70
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140140440]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x14017aea8]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x14000ef06
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14001f8e0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140019fa0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14017aea8]
mov edi, ecx
cmp byte [rbx + 0x4235], 0
jne 0x14001a001
cmp byte [rbx + 0x4236], 0
jne 0x14001a001
movsx r9d, word [rbx + 0x531a]
lea r8, [0x140145670]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14000c9e0
test dil, 1
je 0x14001a128
jmp 0x14001a08a
movss xmm1, dword [rbx + 0x3890]
lea r8, [0x140145670]
movsx r9d, word [rbx + 0x531a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140146708]
mulss xmm1, dword [0x1401466f8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdf4]
addss xmm1, dword [rbx + 0xdf8]
mov qword [rbx + 0x3fa0], rax
mov dword [rbx + 0x3f8c], 1
movss dword [rbx + 0x3f98], xmm0
movss dword [rbx + 0x3f9c], xmm1
movss xmm0, dword [rbx + 0x38ec]
mulss xmm0, dword [0x14014668c]
or dword [rbx + 0x3f88], 0x41
movss dword [rbx + 0x3fe8], xmm0
call fcn.14000c9e0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001a0e0
lea r11, [0x140140440]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001a0c3
cmp byte [r8], r9b
jne 0x14001a0c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001a0b0
not ecx
call fcn.1400136f0
test rax, rax
je 0x14001a128
cmp byte [rax + 0x96], 0
je 0x14001a128
mov byte [rax + 0x9d], 1
lea r8, [0x140145670]
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x531a]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x531a]
call fcn.14000c9e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140015ec0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400daef0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14001eab0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14017aea8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001eb13
mov qword [rsp], rbx
lea rbx, [0x140140440]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001eaf3
cmp byte [r8], r9b
jne 0x14001eaf3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001eae0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001eb47
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001eb4e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001eb34
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14003b1e0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14003b260
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14003b257
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
test eax, eax
jne 0x14003b264
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14003b278
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400daef0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14003ca60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14003ca82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14003cafc
mov rdi, r14
mov rcx, rbx
call fcn.14003e490
test rax, rax
jle 0x14003cad4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400dd6b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14003caec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14003caf4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14003ca96
sub r14, rdi
jmp 0x14003cbdf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14003cb13
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003cb15
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003cb47
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400dd6b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14003cbdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003cb82
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14003cbbd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400f1614
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14003cbdc
cmp rbp, rax
ja 0x14003cb90
test rbp, rbp
je 0x14003cbdc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400f1614
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1400581c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x158
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x1a0]
mov r15, r8
mov r8, qword [rcx + 0x18]
mov r14, r9
mov rbp, rcx
cmp rdx, qword [r8 + 0x1b8]
je 0x140058211
cmp rdx, qword [r8 + 0x1c0]
je 0x140058211
mov eax, Ordinal_46
jmp 0x140058351
cmp rdx, qword [r8 + 0x1c0]
mov eax, 0x1b8
mov qword [rsp + 0x150], rbx
mov r9d, 0x1c0
cmove eax, r9d
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x140], r12
mov ebx, 0x210
mov qword [rsp + 0x138], r13
mov r12, qword [rax + r8]
mov eax, 0x230
cmove ebx, eax
xor r13d, r13d
add rbx, r8
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400582c4
mov rdi, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
cmp rdi, rax
jbe 0x140058296
sub rdi, rax
lea rdx, [rax + rcx]
cmp r14, rdi
mov rcx, r15
cmovb rdi, r14
mov r8, rdi
call fcn.1400dd6b0
add qword [rbx + 0x18], rdi
mov rax, qword [rbx + 0x18]
jmp 0x140058299
mov rdi, r13
cmp rax, qword [rbx + 0x10]
jne 0x1400582b7
mov rcx, qword [rbx]
call qword [fcn.1400ef2dc]
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rdi, rdi
jle 0x1400582c4
mov eax, r13d
mov qword [rsi], rdi
jmp 0x140058331
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
mov eax, r13d
cmp rdi, 0xffffffffffffffff
jne 0x140058325
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400582f6
lea eax, [rdi + 0x52]
jmp 0x140058325
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140042990
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.140057fb0
mov eax, gethostname
mov dword [rbp + 0xd8c], ebx
mov qword [rsi], rdi
cmp rdi, 0xffffffffffffffff
jne 0x140058331
mov qword [rsi], r13
mov r13, qword [rsp + 0x138]
mov r12, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
mov rbx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400daef0
add rsp, 0x158
pop r15
pop r14
pop rsi
pop rbp
ret
Function at 0x140058500
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x210]
mov r14, qword [rcx + r8*8 + 0x1b8]
add rbx, rax
mov rax, qword [rcx + 0x370]
mov rsi, qword [rbx + 8]
sub rsi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14005860a
lea rax, [0x140068cb0]
cmp qword [rcx + r8*8 + 0x1e0], rax
jne 0x14005860a
cmp qword [rbx], 0
je 0x140058591
test rsi, rsi
je 0x14005860a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14006a290
cmp eax, 0xffffffff
je 0x14005860a
test al, 1
je 0x14005860a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400585e9
mov eax, dword [rbp + 0x6e4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [fcn.1400ef748]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140058642
mov rsi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14005860a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
mov dword [rdi], 0
cmp rsi, 0xffffffffffffffff
jne 0x140058681
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140058651
mov dword [rdi], 0x51
jmp 0x140058681
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140058684
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140042990
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140057fb0
mov dword [rbp + 0xd8c], ebx
mov dword [rdi], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400daef0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
xor edx, edx
call fcn.140068c70
test al, al
je 0x140059147
mov rdx, rbx
mov rcx, rdi
call fcn.140051c90
test eax, eax
je 0x140059179
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x1b8]
cmp rcx, 0xffffffffffffffff
je 0x140059179
mov r9d, 2
lea rdx, [rsp + 0x40]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x1400593d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140160200]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140059483
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140042990
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140057fb0
jmp 0x14005954b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x140059520
sub edx, 1
je 0x1400594ca
cmp edx, 0x15
jne 0x1400594d1
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.1400869b0
test rax, rax
je 0x1400594d1
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14005954b
lea rdx, [rsp + 0x34]
jmp 0x1400594a2
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.1400ef2bc
mov dword [rax], 0x273f
call fcn.1400ef2bc
mov ebx, dword [rax]
call fcn.1400ef2bc
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140042990
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140057fb0
jmp 0x14005954b
cmp dword [rsp + 0x20], 2
jle 0x140059542
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x140145a10]
mov rcx, rbx
call fcn.14005d760
jmp 0x140059545
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400daef0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400598c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1401781a0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140059924
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140087240
test al, al
je 0x140059918
mov dword [0x1401781a0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1401781a0], 1
jmp 0x140059929
cmp eax, 2
je 0x14005997b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14005995a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14005997b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret