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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov sil, dl
mov rbx, rcx
and dword [rbp + 0x47], 0
call fcn.140012288
mov dword [rbp + 0x47], 1
xor edi, edi
mov word [rbp + 0x2a], 0x656e
mov dword [rbp + 0x30], 0x6c6c64
mov word [rbp + 0x27], 0x654b
mov dword [rbp + 0x2c], 0x2e32336c
mov byte [rbp + 0x29], WSACleanup
mov dword [rbp + 0x38], 0x69547465
mov dword [rbp + 0x40], 0x746e75
mov byte [rbp + 0x37], 0x47
mov dword [rbp + 0x3c], 0x6f436b63
lea rcx, [rbp + 0x27]
call fcn.1400e8804
mov rcx, rax
lea rdx, [rbp + 0x37]
call fcn.1400e8748
test rax, rax
je 0x140002304
call rax
mov edi, eax
mov dword [rbp - 0x39], 0x70747468
test sil, sil
je 0x1400023cc
mov dword [rbp + 0xe], 0x69742664
mov word [rbp + 0xb], 0x253d
mov dword [rbp - 0x16], 0x73726576
mov byte [rbp - 0x2f], reloc.WS2_32.dll_WSAGetLastError
mov dword [rbp - 0x35], 0x2f2f3a73
mov dword [rbp + 0x13], 0x64253d65
mov dword [rbp + 2], 0x26732525
mov dword [rbp - 0x28], 0x2e736f66
mov dword [rbp - 0xe], 0x67267325
mov word [rbp - 0x11], 0x6e6f
mov dword [rbp - 6], 0x26732525
mov dword [rbp - 0x21], 0x6162662f
mov dword [rbp - 0x2c], 0x6e696d61
mov word [rbp - 0x1b], 0x702e
mov dword [rbp - 2], 0x3d726176
mov dword [rbp - 0xa], 0x3d646975
mov word [rbp - 0x18], 0x3f70
mov dword [rbp + 6], 0x756c6176
mov word [rbp - 0x23], 0x6d6f
mov byte [rbp + 0xa], 0x65
mov byte [rbp + 0x17], 0
mov word [rbp - 0x1d], 0x6b63
mov byte [rbp + 0xd], 0x25
mov byte [rbp + 0x12], WSASetLastError
mov byte [rbp - 0x24], 0x63
mov byte [rbp - 0x12], 0x69
mov word [rbp - 0x31], 0x7270
mov byte [rbp - 0x19], 0x68
mov word [rbp - 0x2e], 0x7267
mov byte [rbp - 0xf], 0x3d
lea rdx, [rbp - 0x39]
jmp 0x140002483
mov dword [rbp - 7], 0x253d7261
mov word [rbp + 9], 0x7426
mov dword [rbp - 0xd], 0x7325253d
mov word [rbp - 0x1a], 0x7372
mov dword [rbp - 0x2b], 0x6d6f632e
mov dword [rbp + 3], 0x253d6575
mov word [rbp - 0x12], 0x6726
mov word [rbp + 0xc], 0x656d
mov dword [rbp - 2], 0x61762673
mov dword [rbp - 0x1f], 0x763f7068
mov dword [rbp - 0x32], 0x6f73732f
mov word [rbp + 7], 0x6425
mov dword [rbp - 0x17], 0x253d6e6f
mov word [rbp - 0x2e], 0x7061
mov dword [rbp - 0x25], 0x6b636162
mov word [rbp - 0xf], 0x6469
mov byte [rbp + 2], WSAGetLastError
mov word [rbp - 0x27], 0x662f
mov byte [rbp - 0x2c], WSASetLastError
mov word [rbp - 9], 0x7626
mov word [rbp - 0x21], 0x702e
mov word [rbp + 0xf], 0x6425
mov word [rbp - 0x34], 0x2f3a
mov byte [rbp - 0x1b], 0x65
mov byte [rbp - 0x10], 0x75
mov byte [rbp - 3], 0x25
mov byte [rbp - 0x13], reloc.WS2_32.dll_WSAStartup
mov byte [rbp - 0x18], 0x69
mov byte [rbp + 0xb], 0x69
mov byte [rbp + 0xe], 0x3d
mov byte [rbp - 0x35], reloc.WS2_32.dll_WSAStartup
mov byte [rbp + 0x11], 0
lea rdx, [rbp - 0x39]
mov r8d, edi
mov rcx, rbx
call fcn.1400114b4
mov rax, rbx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x13], 0x72656c6c
mov rbx, rcx
mov dword [rbp - 0x18], 0x74736e49
mov word [rbp - 0x1e], 0x626f
mov word [rbp - 0x1b], 0x5c6c
mov word [rbp - 0xb], 0x78
mov word [rbp - 0xe], 0x7475
mov byte [rbp - 0x19], 0x43
mov word [rbp - 0x20], 0x6c47
mov byte [rbp - 0x14], 0x61
mov byte [rbp - 0xf], 0x4d
mov byte [rbp - 0xc], 0x65
mov byte [rbp - 0x1c], 0x61
call fcn.14001193c
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret

Function at 0x140002788
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x19], 0x6e494549
mov rbx, rcx
mov dword [rbp - 0x20], 0x626f6c47
mov word [rbp - 0x1c], 0x6c61
mov dword [rbp - 0xc], 0x786574
mov dword [rbp - 0x12], 0x72656c6c
mov byte [rbp - 0x1a], 0x5c
mov word [rbp - 0xe], 0x754d
mov word [rbp - 0x14], 0x6174
mov byte [rbp - 0x15], reloc.WS2_32.dll_WSAStartup
call fcn.14001193c
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret

Function at 0x1400027e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x18], 0x736e4946
mov rbx, rcx
mov dword [rbp - 0x1f], 0x61626f6c
mov word [rbp - 0x14], 0x6174
mov word [rbp - 0xe], 0x754d
mov word [rbp - 0x11], 0x656c
mov dword [rbp - 0xc], 0x786574
mov word [rbp - 0x1a], 0x465c
mov byte [rbp - 0xf], WSACleanup
mov byte [rbp - 0x1b], WSAGetLastError
mov byte [rbp - 0x20], 0x47
mov byte [rbp - 0x12], WSAGetLastError
call fcn.14001193c
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140014f54
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
xor r9d, r9d
cmp byte [rcx + 8], r9b
je 0x140014f87
cmp dword [rcx + 0x3d0], r9d
jle 0x140014f82
sub r8, rdx
mov al, byte [r8 + rdx]
inc r9d
xor byte [rdx], al
inc rdx
cmp r9d, dword [rcx + 0x3d0]
jl 0x140014f6d
add rsp, 0x48
ret
lea rdx, str.Object_not_Initialized
lea rcx, [rsp + 0x20]
call fcn.140014fe0
lea rdx, [0x140110760]
lea rcx, [rsp + 0x20]
call fcn.1400812f8
int3
Function at 0x140037cf4
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 0x140037d9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2733
jne 0x140037d51
mov dword [rsp + 0x24], 1
jmp 0x140037d59
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
jne 0x140037d6a
mov dword [rsp + 0x28], 0
jmp 0x140037d72
mov dword [rsp + 0x28], 1
mov al, 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 0x140037d96
mov eax, 0x51
jmp 0x140037dac
mov eax, 0x38
jmp 0x140037dac
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

Function at 0x140037f30
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 [0x140117dd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
test eax, eax
jne 0x140037f5c
xor eax, eax
test eax, eax
jne 0x140037f62
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.1400384b0
test eax, eax
je 0x140037fcb
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140038083
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 0x14003807e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x140038033
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x51
jmp 0x14003807e
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.140067424
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x160]
call fcn.140037a8c
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xd2c], 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.14007e5f0
add rsp, 0x158
ret
Function at 0x14003839c
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 + 0xa77]
test eax, eax
je 0x1400384a4
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x14003842f
mov rcx, qword [rsp + 0x50]
call fcn.14002004c
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.14001ffe8
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]
mov dl, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14001ffe8
jmp 0x1400384a4
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14003844e
cmp dword [rsp + 0x34], 1
je 0x14003844e
cmp dword [rsp + 0x34], 2
je 0x14003844e
jmp 0x1400384a4
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400f3eb0]
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.14009fbac
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.14009fbac
add rsp, 0x48
ret
Function at 0x1400384b0
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 0x14003867f
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x140037db8]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x14003867f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x140038562
cmp qword [rsp + 0x30], 0
je 0x14003867f
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140052d44
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14003867f
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14003867f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140038612
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 [section..data]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x1400385ea
mov eax, 0x1b
jmp 0x140038681
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 0x140038672
xor eax, eax
test eax, eax
jne 0x14003861d
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 0x140038670
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 0x14003867f
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x140039ec4
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 [0x140118d20], 0
jne 0x140039f28
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14006b400
movzx eax, al
test eax, eax
je 0x140039f1e
mov dword [0x140118d20], 2
jmp 0x140039f28
mov dword [0x140118d20], 1
cmp dword [0x140118d20], 2
jne 0x140039f33
jmp 0x140039f8b
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 0x140039f68
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140039f68
jmp 0x140039f8b
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 0x14003a1a0
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 [0x140117dd8]
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 0x14003a242
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.140067424
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.140037a8c
jmp 0x14003a2aa
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.140039c88
movzx eax, al
test eax, eax
jne 0x14003a2aa
call fcn.14008e690
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.140067424
mov qword [rsp + 0x28], rax
call fcn.14008e690
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.140037a8c
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14007e5f0
add rsp, 0x1c0
pop rdi
ret
Function at 0x14003a958
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140117dd8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa83]
test eax, eax
je 0x14003a995
mov dword [rsp + 0x54], 1
jmp 0x14003a99d
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 0x14003a9da
xor eax, eax
test eax, eax
jne 0x14003a9cf
jmp 0x14003aa8d
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa04]
call fcn.14003bd74
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 + 0xa08]
call fcn.14003bd74
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, listen
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14003aa8d
xor eax, eax
test eax, eax
jne 0x14003aa87
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007e5f0
add rsp, 0x88
ret
Function at 0x14003bc0c
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 0x14003bc56
xor eax, eax
test eax, eax
jne 0x14003bc50
add rsp, 0x48
ret

Function at 0x14003c34c
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x140117dd8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x14003c404
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 0x14003c3aa
mov eax, 2
jmp 0x14003c4aa
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 0x14003c3f4
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 0x14003c404
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14003c4aa
call fcn.14006cd28
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14003c41d
mov eax, dword [rsp + 0x34]
jmp 0x14003c4aa
lea rcx, str.iphlpapi.dll
call fcn.14003c520
mov qword [0x140118d30], rax
cmp qword [0x140118d30], 0
je 0x14003c467
lea rdx, str.if_nametoindex
mov rcx, qword [0x140118d30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14003c467
mov rax, qword [rsp + 0x40]
mov qword [0x140118d28], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14006b400
movzx eax, al
test eax, eax
je 0x14003c494
mov byte [0x14011acb8], 1
jmp 0x14003c49b
mov byte [0x14011acb8], 0
lea rcx, [0x14011acc0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14007e5f0
add rsp, 0x208
ret
Function at 0x140045124
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 0x14004519f
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 0x14004ae98
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 + 0x12a0], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12a8], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f9]
test eax, eax
je 0x14004af0c
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f9]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x71b]
cmp eax, ecx
jle 0x14004af22
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov cl, byte [rcx + 0x71b]
mov byte [rax + 0x10f9], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1108], 0
je 0x14004af5b
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1170]
test eax, eax
jne 0x14004af5b
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x14004af5b
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
cmp eax, 0xa
jne 0x14004af83
xor eax, eax
test eax, eax
jne 0x14004af6c
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14003a73c
jmp 0x14004afee
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
cmp eax, 0x14
je 0x14004afad
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x14004afc7
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x14004afc7
xor eax, eax
test eax, eax
jne 0x14004afad
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x14004afee
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
cmp eax, 0xb
jl 0x14004afee
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x14004afee
xor eax, eax
test eax, eax
jne 0x14004afe8
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x14004b011
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x14004b011
mov dword [rsp + 0x20], 1
jmp 0x14004b019
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x14004b02a
mov dword [rsp + 0x24], 0
jmp 0x14004b032
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
mov cl, 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 0x14004b07f
cmp dword [rsp + 0x28], 0x130
je 0x14004b063
jmp 0x14004b0a4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x558]
test eax, eax
je 0x14004b07f
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1384], 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 0x140053734
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 0x14005375e
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x1400537a0
cmp qword [rsp + 0x80], 0
je 0x140053776
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x1400537a0
cmp qword [rsp + 0x88], 0
je 0x14005378e
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1400537a0
mov rcx, qword [rsp + 0x90]
call fcn.1400536bc
jmp 0x140053865
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140075b0c
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x1400537de
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1400537de
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x1400537e7
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x14005380e
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x14005380e
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140053817
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x140053835
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x140053835
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x14005383e
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 0x1400599b0
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.1400b3e4c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140059a07
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x30], rax
jne 0x140059a0b
xor eax, eax
jmp 0x140059a10
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14005a1a8
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 0x14005a1e7
mov eax, 2
jmp 0x14005a1e9
xor eax, eax
add rsp, 0x20
pop rdi
ret