joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002158
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x1400021bf
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x14000219e
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x1400021de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x140002323
bt qword [0x1401f79b0], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x140338088]
call fcn.14000208c
mov r14, rax
test rax, rax
je 0x14000219c
mov r13d, 2
test r13b, r15b
je 0x140002215
mov r8d, r13d
jmp 0x14000231b
test r15b, 4
je 0x140002223
xor r8d, r8d
jmp 0x14000231b
bt qword [0x1401f7998], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x140338070]
call fcn.14000208c
test rax, rax
jne 0x140002315
bt qword [0x1401f7990], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x140338068]
call fcn.14000208c
mov r15, rax
test rax, rax
je 0x14000219c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14000221b
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x1400022bb
cmp word [rax], r12w
je 0x1400022bb
inc rcx
add rax, r13
sub rdx, 1
jne 0x1400022a9
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x14000232a
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x140002337
xchg qword [rsi], rdi
jmp 0x14000219c
xchg qword [rsi], rax
test rax, rax
je 0x14000234c
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x14000219e
Function at 0x14000e410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov dword [rax - 0x38], 0x1c
mov rdi, r8
mov rsi, rdx
lea r8, [rax - 0x38]
mov r14, r9
lea rdx, [rax - 0x30]
mov word [rax - 0x30], bx
cmp dword [rsp + 0x80], ebx
je 0x14000e454
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x14000e45a
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14000e462
xor eax, eax
jmp 0x14000e4dc
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r14], ax
lea rcx, [rsp + 0x30]
movzx eax, word [rsp + 0x28]
mov r8, rsi
movsxd r9, dword [rdi]
lea rdx, [rsp + 0x2c]
cmp eax, 2
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x14000e4b7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ebx, 1
mov dword [rdi], eax
jmp 0x14000e4d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x14000e4d5
cmp bp, 2
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0x41
cmovne ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x14000e740
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
lea rdx, [rsp + 0x44]
mov rbp, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x40]
cmp rax, rsi
mov qword [rsp + 0x28], 0
cmovb rax, rsi
xor edx, edx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
jne 0x14000e7be
call fcn.14000ca50
jmp 0x14000e826
test rsi, rsi
jne 0x14000e7d1
mov rax, qword [rsp + 0x40]
sub rax, rbp
mov qword [rdi + 8], rax
jmp 0x14000e7d5
mov qword [rdi + 8], rsi
mov rax, qword [rdi + 8]
mov r9d, ebp
mov edx, dword [rsp + 0x68]
mov qword [rdi + 0x18], rbp
mov r8d, dword [rdi + 0x1c]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov dword [rdi + 0x20], edx
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
jne 0x14000e824
call fcn.14000ca50
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [0x1401f8060]
mov eax, ebx
mov qword [rdi + 0x10], 0
jmp 0x14000e826
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e840
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r10, rcx
mov edi, r9d
mov rcx, qword [rdx + 8]
xor eax, eax
mov rsi, r8
mov rbx, rdx
test rcx, rcx
je 0x14000e894
mov qword [rsp + 0x38], rax
lea r9d, [rax + 1]
mov dword [rsp + 0x30], 0x80
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov rdx, r10
mov qword [rsp + 0x20], rax
call fcn.14000df30
jmp 0x14000e8be
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r10
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x14000e8dd
call fcn.14000ca50
test eax, eax
jns 0x14000e8e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x14000e900
call fcn.14000ca50
test eax, eax
js 0x14000e952
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000e940
cmp rax, rdi
ja 0x14000e940
mov rdx, qword [rbx]
xor r9d, r9d
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
call fcn.14000e740
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rax, rax
mov ecx, 0x800700df
mov edx, 0x800703ee
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000ea00
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x14000ea20
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000ea50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x14000ea78
lea r9, [rsp + 0x50]
jmp 0x14000ea82
cmp edx, 1
jne 0x14000eacb
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x14000eb1e
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x14000eb60
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x14033f2a8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r8d, edx
mov qword [rsp + 0x258], rcx
mov eax, 0x10624dd3
mov qword [rsp + 0x48], rcx
mul edx
mov rbx, rcx
mov dword [rsp + 0x250], 1
shr edx, 6
lea r9, [rsp + 0x40]
imul eax, edx, 0x3e8
xor ecx, ecx
mov dword [rsp + 0x38], edx
xor edx, edx
mov dword [rsp + 0x40], 1
sub r8d, eax
imul eax, r8d, 0x3e8
lea r8, [rsp + 0x250]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x14000ec06
jne 0x14000ebf4
mov eax, 0x5b4
jmp 0x14000ec77
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x22a
cmove eax, ecx
jmp 0x14000ec77
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, rbx
test eax, eax
je 0x14000ec68
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000ec52
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + 1]
cmp eax, 1
ja 0x14000ec64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x22a
test eax, eax
cmove eax, ecx
mov ecx, eax
mov eax, ecx
jmp 0x14000ec77
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401e57c0
add rsp, 0x470
pop rbx
ret
Function at 0x14000f300
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test r8d, r8d
je 0x14000f38c
mov rdx, qword [rcx + 0x30]
lea r8d, [rdi + 0x30]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14000f44a
cmp word [rsi], 2
mov eax, 0x1c
mov rcx, qword [rbx + 0x28]
mov r8d, reloc.WS2_32.dll_recv
cmovne r8d, eax
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000f375
cmp eax, 0xffffffff
jne 0x14000f44a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000f44a
mov edi, 1
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x28]
mov edx, 1
call fcn.14000ea00
test eax, eax
jne 0x14000f45c
cmp word [rsi], 2
mov eax, 0x1c
mov rcx, qword [rbx + 0x28]
mov r8d, reloc.WS2_32.dll_recv
cmovne r8d, eax
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
je 0x14000f3d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x14000f44a
cmp esi, 0xffffffff
jne 0x14000f3e8
mov edx, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x28]
call fcn.14000eb60
mov esi, eax
test esi, esi
jne 0x14000f442
mov rdx, qword [rbx + 0x30]
lea r8d, [rsi + 0x23]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14000f44a
mov dword [rbx + 0x70], 1
xor ecx, ecx
mov dword [rbx + 0x74], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x180]
cmp eax, 2
jne 0x14000f375
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
jmp 0x14000f444
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.14000ca70
int3

Function at 0x14000f5e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x68]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edi, edi
lea r8, [0x140010590]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call sub.msvcrt.dll__beginthreadex
test rax, rax
mov qword [rbx + 0x60], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14000f630
Capabilities:
Send data
Send data on socket

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, 0x20
mov eax, dword [rdx + 0x30]
mov r14, r8
mov rsi, rdx
mov rdi, rcx
sub eax, dword [rdx + 0x28]
je 0x14000f6d6
nop dword [rax + rax]
mov r8d, dword [rdi + 0x48]
cmp eax, r8d
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rdi + 0x28]
cmovl r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x14000f6c9
lea rcx, [rdi + 0x190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rdi + 0x1f0], ebp
lea rcx, [rdi + 0x190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
mov r8d, ebp
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
call qword [rax + 0x190]
mov edx, ebp
mov rcx, rsi
call fcn.14000dbf0
jmp 0x14000f6ce
cmp ebp, 0xffffffff
je 0x14000f6f6
mov eax, dword [rsi + 0x30]
sub eax, dword [rsi + 0x28]
jne 0x14000f660
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000f70c
mov dword [r14], 1
jmp 0x14000f6d6
mov dword [rdi + 0x20], eax
xor eax, eax
mov dword [rdi + 0x18], 1
mov dword [rdi + 0x1c], 3
mov dword [rdi + 0x24], 1
jmp 0x14000f6db

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x1f4]
mov rbx, rcx
test eax, eax
jne 0x14000fd3e
nop dword [rax + rax]
mov r8d, dword [rbx + 0x48]
xor r9d, r9d
mov rdx, qword [rbx + 0x88]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14000fce7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rbx]
mov r8d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call qword [r9 + 0x1a0]
cmp eax, 2
jne 0x14000fcf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
xor eax, eax
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edi, 0xffffffff
je 0x14000fd31
test edi, edi
je 0x14000fd0e
mov eax, dword [rbx + 0x1f4]
test eax, eax
je 0x14000fc70
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x18], 1
xor eax, eax
mov qword [rbx + 0x1c], 5
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000fcc2
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fe50
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14001febc
movzx ecx, byte [rcx]
test cl, cl
je 0x14001febc
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x14001fe70
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x14001fec0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1401e5730
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14001ff53
movzx eax, byte [rcx]
test al, al
je 0x14001ff53
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.140034240
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x14001fef0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400308f0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401e5730
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140032300
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1401e5730
sub rsp, rax
cmp dword [0x14033fb40], 0
jne 0x1400323ba
xor edx, edx
mov dword [0x14033fb40], 1
mov r8d, 0x198
lea rcx, [0x14033fb50]
call sub.msvcrt.dll_memset
mov ecx, 0x202
lea rdx, [0x14033fb50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400323ba
call fcn.1400301c0
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400302e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1400303e0
call fcn.1400301c0
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400302e0
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1400303e0
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400323d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401e5730
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x140032432
call fcn.1400301c0
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400302e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1400303e0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x140032440
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1401e5730
sub rsp, rax
mov rax, qword [0x14033f2a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0xffffffff
jne 0x140032473
mov eax, ecx
jmp 0x1400324d3
test rbx, rbx
jne 0x14003247d
lea eax, [rbx + 1]
jmp 0x1400324d3
xor ecx, ecx
call sub.msvcrt.dll__time64
mov rcx, rax
cmp rbx, rax
jge 0x140032490
xor eax, eax
jmp 0x1400324d3
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401e57c0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400331f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1401e5730
sub rsp, rax
mov rax, qword [0x14033f2a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x14033fcf0], 0
lea rax, [0x140032b70]
mov qword [rsp + 0x28], rax
lea rbx, [0x14026dc80]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140032fb0]
mov qword [rsp + 0x38], rax
lea rax, [0x14026dca0]
mov qword [rsp + 0x40], rax
lea rax, [0x140032b10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1400333c9
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400333bf
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_strcpy_s
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_strcat_s
lea rcx, [rsp + 0x50]
call qword [0x1401f79e0]
mov rsi, rax
test rax, rax
je 0x1400332ea
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14003334a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_strcpy_s
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_strcat_s
lea rcx, [rsp + 0x50]
call qword [0x1401f79e0]
mov rsi, rax
test rax, rax
je 0x1400333b7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14003334a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400333b7
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1400333a6
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140033360
mov rax, qword [rsp + 0x28]
mov qword [0x1403399e0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1403399f0], rax
mov rax, qword [rsp + 0x48]
mov qword [0x140339a00], rax
jmp 0x1400333af
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x14033fcf0], 1
mov rax, rbp
lea rcx, [0x1403399d8]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e57c0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret