joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ebx, recv
call fcn.140003b10
mov rdi, rax
test rax, rax
je 0x140009c9a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x53637052
mov rcx, rax
mov dword [rsp + 0x28], 0x65724667
mov word [rsp + 0x2c], 0x4165
mov dword [rsp + 0x24], 0x6e697274
mov byte [rsp + 0x2e], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009c92
mov rcx, rsi
call rax
mov ebx, eax
mov rcx, rdi
call fcn.1400ab270
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140009cb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x20], 0x46746547
mov word [rsp + 0x2a], 0x65
mov word [rsp + 0x24], 0x6c69
mov word [rsp + 0x27], 0x6953
mov byte [rsp + 0x26], 0x65
mov byte [rsp + 0x29], 0x7a
call fcn.140003ad0
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009d05
xor edx, edx
mov rcx, rbx
call rax
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret

Function at 0x140009d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov ebx, 1
call fcn.140003a90
mov rdi, rax
test rax, rax
je 0x140009e08
lea rdx, [rsp + 0x20]
mov word [rsp + 0x26], 0x4b6e
mov rcx, rax
mov word [rsp + 0x23], 0x704f
mov word [rsp + 0x29], 0x4179
mov word [rsp + 0x20], 0x6552
mov byte [rsp + 0x22], 0x67
mov byte [rsp + 0x2b], 0
mov byte [rsp + 0x25], 0x65
mov byte [rsp + 0x28], 0x65
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009e00
mov r8, rsi
mov rdx, rbp
mov rcx, 0xffffffff80000002
call rax
mov ebx, eax
mov rcx, rdi
call fcn.1400ab270
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140009e20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rsi, r9
mov rbp, r8
mov r14, rdx
xor ebx, ebx
call fcn.140003a90
mov rdi, rax
test rax, rax
je 0x140009eda
lea rdx, [rsp + 0x40]
mov word [rsp + 0x4f], 0x4164
mov rcx, rax
mov byte [rsp + 0x51], bl
mov dword [rsp + 0x4a], 0x53746e75
mov dword [rsp + 0x46], 0x6f636341
mov dword [rsp + 0x40], 0x6b6f6f4c
mov word [rsp + 0x44], 0x7075
mov byte [rsp + 0x4e], 0x69
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140009ed2
mov rax, qword [rsp + 0xa0]
mov r9, rsi
mov qword [rsp + 0x30], rax
mov r8, rbp
mov rax, qword [rsp + 0x98]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call r10
mov ebx, eax
mov rcx, rdi
call fcn.1400ab270
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140009f50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
xor ebx, ebx
call fcn.140003a90
mov rdi, rax
test rax, rax
je 0x140009fe6
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x3a], 0x6e656b6f
mov rcx, rax
mov dword [rsp + 0x31], 0x696c7075
mov dword [rsp + 0x35], 0x65746163
mov word [rsp + 0x3f], 0x78
mov byte [rsp + 0x39], 0x54
mov byte [rsp + 0x3e], 0x45
mov byte [rsp + 0x30], 0x44
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140009fde
mov rax, qword [rsp + 0x88]
lea r9d, [rbx + 2]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
mov rcx, rsi
call r10
mov ebx, eax
mov rcx, rdi
call fcn.1400ab270
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14000a1b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, r9
mov rbp, r8
mov ebx, 1
call fcn.140009720
mov rdi, rax
test rax, rax
je 0x14000a25a
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x35], 0x72657551
mov rcx, rax
mov word [rsp + 0x33], 0x636f
mov dword [rsp + 0x3c], 0x676e6972
mov word [rsp + 0x30], 0x7341
mov word [rsp + 0x3a], 0x7453
mov word [rsp + 0x40], 0x41
mov byte [rsp + 0x32], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x39], 0x79
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x14000a252
mov rax, qword [rsp + 0x88]
lea edx, [rbx + 1]
mov qword [rsp + 0x28], rax
mov r9, rsi
mov rax, qword [rsp + 0x80]
mov r8, rbp
xor ecx, ecx
mov qword [rsp + 0x20], rax
call r10
mov ebx, eax
mov rcx, rdi
call fcn.1400ab270
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140012630
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x14001266b
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x140012666
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp ecx, dword [r9 + 0x3d0]
jl 0x140012650
add rsp, 0x48
ret
mov rdx, qword [0x1400db4c8]
lea rcx, [rsp + 0x20]
call fcn.1400126d0
lea rdx, [0x1400d1438]
lea rcx, [rsp + 0x20]
call fcn.14007cb40
int3
Function at 0x1400352c0
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 0x14003536a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2733
jne 0x14003531d
mov dword [rsp + 0x24], 1
jmp 0x140035325
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
jne 0x140035336
mov dword [rsp + 0x28], 0
jmp 0x14003533e
mov dword [rsp + 0x28], 1
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140035363
mov eax, 0x51
jmp 0x140035379
mov eax, 0x38
jmp 0x140035379
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

Function at 0x140035510
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, 0x158
mov rax, qword [0x1400d8c68]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
test eax, eax
jne 0x14003553c
xor eax, eax
test eax, eax
jne 0x140035542
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.140035ac0
test eax, eax
je 0x1400355ab
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140035663
xor r9d, r9d
mov r8d, dword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14003565e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x140035613
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x51
jmp 0x14003565e
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.140063cd0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x160]
call fcn.140035050
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xd24], ecx
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x37
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007a650
add rsp, 0x158
ret
Function at 0x1400359a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa6f]
test eax, eax
je 0x140035aa9
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x140035a34
mov rcx, qword [rsp + 0x50]
call fcn.14001d200
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.14001d190
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x270]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14001d190
jmp 0x140035aa9
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140035a53
cmp dword [rsp + 0x34], 1
je 0x140035a53
cmp dword [rsp + 0x34], 2
je 0x140035a53
jmp 0x140035aa9
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400b4dc0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1d0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.140085b5c
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1d0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140085b5c
add rsp, 0x48
ret
Function at 0x140035ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x218]
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 + 0x68]
mov rax, qword [rax + 0x3e0]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x140035c8f
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x140035390]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x140035c8f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x140035b72
cmp qword [rsp + 0x30], 0
je 0x140035c8f
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.14004faf0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140035c8f
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140035c8f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140035c22
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6dc]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [str.t_b_b_]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140035bfa
mov eax, 0x1b
jmp 0x140035c91
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 0x140035c82
xor eax, eax
test eax, eax
jne 0x140035c2d
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 0x140035c80
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 0x140035c8f
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x140037490
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 [0x1400d9ba0], 0
jne 0x1400374f4
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140067150
movzx eax, al
test eax, eax
je 0x1400374ea
mov dword [0x1400d9ba0], 2
jmp 0x1400374f4
mov dword [0x1400d9ba0], 1
cmp dword [0x1400d9ba0], 2
jne 0x1400374ff
jmp 0x140037557
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 0x140037534
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140037534
jmp 0x140037557
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 0x140037780
Capabilities:
Get local ipv4 addresses
Get socket information

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, 0x1c0
mov rax, qword [0x1400d8c68]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x24], 0x80
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140037822
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
call fcn.140063cd0
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.140035050
jmp 0x14003788a
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.1400372c0
movzx eax, al
test eax, eax
jne 0x14003788a
call fcn.14008084c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.140063cd0
mov qword [rsp + 0x28], rax
call fcn.14008084c
mov rcx, qword [rsp + 0x28]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.140035050
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14007a650
add rsp, 0x1c0
pop rdi
ret
Function at 0x140037f20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400d8c68]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa7b]
test eax, eax
je 0x140037f5d
mov dword [rsp + 0x54], 1
jmp 0x140037f65
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 0x140037fa2
xor eax, eax
test eax, eax
jne 0x140037f97
jmp 0x140038055
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa00]
call fcn.140039220
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 + 0xa04]
call fcn.140039220
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, recv
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140038055
xor eax, eax
test eax, eax
jne 0x14003804f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007a650
add rsp, 0x88
ret
Function at 0x140039080
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
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 + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400390ca
xor eax, eax
test eax, eax
jne 0x1400390c4
add rsp, 0x48
ret

Function at 0x140039850
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400d8c68]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x140039908
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400398ae
mov eax, 2
jmp 0x1400399ae
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1400398f8
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140039908
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400399ae
call fcn.140068ab0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140039921
mov eax, dword [rsp + 0x34]
jmp 0x1400399ae
lea rcx, str.iphlpapi.dll
call fcn.140039a30
mov qword [0x1400d9bb0], rax
cmp qword [0x1400d9bb0], 0
je 0x14003996b
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400d9bb0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14003996b
mov rax, qword [rsp + 0x40]
mov qword [0x1400d9ba8], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140067150
movzx eax, al
test eax, eax
je 0x140039998
mov byte [0x1400db650], 1
jmp 0x14003999f
mov byte [0x1400db650], 0
lea rcx, [0x1400db658]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14007a650
add rsp, 0x208
ret
Function at 0x1400428f0
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 0x14004296b
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 0x140048480
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1298], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12a0], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
test eax, eax
je 0x1400484f4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
cmp eax, ecx
jle 0x14004850b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
mov byte [rax + 0x10f1], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1100], 0
je 0x140048544
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1168]
test eax, eax
jne 0x140048544
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x140048544
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xa
jne 0x14004856c
xor eax, eax
test eax, eax
jne 0x140048555
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140037cf0
jmp 0x1400485d7
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0x14
je 0x140048596
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x1400485b0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x1400485b0
xor eax, eax
test eax, eax
jne 0x140048596
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x1400485d7
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xb
jl 0x1400485d7
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x1400485d7
xor eax, eax
test eax, eax
jne 0x1400485d1
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x1400485fa
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x1400485fa
mov dword [rsp + 0x20], 1
jmp 0x140048602
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x140048613
mov dword [rsp + 0x24], 0
jmp 0x14004861b
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0xdd], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xcc
je 0x140048669
cmp dword [rsp + 0x28], 0x130
je 0x14004864d
jmp 0x14004868e
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x558]
test eax, eax
je 0x140048669
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x137c], 1
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdd], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400504f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x78], 0
je 0x14005051a
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x14005055c
cmp qword [rsp + 0x80], 0
je 0x140050532
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x14005055c
cmp qword [rsp + 0x88], 0
je 0x14005054a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x14005055c
mov rcx, qword [rsp + 0x90]
call fcn.140050470
jmp 0x140050621
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140071a80
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x14005059a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x14005059a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x1400505a3
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x1400505ca
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x1400505ca
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x1400505d3
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x1400505f1
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x1400505f1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x1400505fa
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x70]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x68
ret
Function at 0x140056270
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 fcn.14008d128
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400562c7
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x30], rax
jne 0x1400562cb
xor eax, eax
jmp 0x1400562d0
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140056ad0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
rep stosb byte [rdi], al
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 0x140056b0f
mov eax, 2
jmp 0x140056b11
xor eax, eax
add rsp, 0x20
pop rdi
ret