joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c7b1
Capabilities:
Write file on windows

Disassembly:
jmp 0x14004be10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14009a080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1400a71ee]
call fcn.14002c815
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14004be77
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14004be7e
mov al, 1
jmp 0x14004bfee
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14002b6cc
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14002b6cc
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14002c2fc
movzx eax, al
test eax, eax
je 0x14004bee1
xor al, al
jmp 0x14004bfee
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14004bf54
cmp dword [rbp + 0x160], 1
je 0x14004bf5f
cmp dword [rbp + 0x160], 3
je 0x14004bfdd
jmp 0x14004bfec
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14004bfaf
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14004bfaf
xor al, al
jmp 0x14004bfee
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14004bfca
mov dword [rbp + 0x154], 1
jmp 0x14004bfd4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14004bfee
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14004bfee
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14008bd10]
call fcn.14002c3ec
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14002bbc7
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140048ef0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x14009a080]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400a7223]
call fcn.14002c815
nop
mov qword [rbp + 8], 0x2c
mov byte [rbp + 0x28], 0x3f
mov byte [rbp + 0x29], 0x42
mov byte [rbp + 0x2a], 0xe9
mov byte [rbp + 0x2b], 0xa7
mov byte [rbp + 0x2c], 0xc1
mov byte [rbp + 0x2d], 0xb3
mov byte [rbp + 0x2e], 0xc9
mov byte [rbp + 0x2f], 0x33
mov byte [rbp + 0x30], 0x13
mov byte [rbp + 0x31], 0x4e
mov byte [rbp + 0x32], 0xff
mov byte [rbp + 0x33], 0xf3
mov byte [rbp + 0x34], 0xd1
mov byte [rbp + 0x35], 0xbc
mov byte [rbp + 0x36], 0xd3
mov byte [rbp + 0x37], 0x33
mov byte [rbp + 0x38], 0x1b
mov byte [rbp + 0x39], 0x44
mov byte [rbp + 0x3a], 0xf5
mov byte [rbp + 0x3b], 0xbe
mov byte [rbp + 0x3c], 0xd1
mov byte [rbp + 0x3d], 0xbc
mov byte [rbp + 0x3e], 0xd1
mov byte [rbp + 0x3f], 0x7a
mov byte [rbp + 0x40], 0xd
mov byte [rbp + 0x41], 0x4e
mov byte [rbp + 0x42], 0xef
mov byte [rbp + 0x43], 0xb6
mov byte [rbp + 0x44], 0xd7
mov byte [rbp + 0x45], 0xa6
mov byte [rbp + 0x46], 0xc0
mov byte [rbp + 0x47], 0x3e
mov byte [rbp + 0x48], 0x47
mov byte [rbp + 0x49], 0xb
mov byte [rbp + 0x4a], 0xca
mov byte [rbp + 0x4b], 0xa6
mov byte [rbp + 0x4c], 0xdd
mov byte [rbp + 0x4d], 0xa6
mov byte [rbp + 0x4e], 0xd1
mov byte [rbp + 0x4f], 0x33
mov byte [rbp + 0x50], 7
mov byte [rbp + 0x51], 0x4c
mov byte [rbp + 0x52], 0xb5
mov byte [rbp + 0x53], 0xd3
mov eax, 0x104
mov eax, eax
mov ecx, dword [0x14009abd4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x14009aaf8], eax
jle 0x140049057
lea rcx, [0x14009aaf8]
call fcn.14002c581
cmp dword [0x14009aaf8], 0xffffffff
jne 0x140049057
lea rdx, [rbp + 0x28]
lea rcx, [0x14009aac8]
call fcn.14002b398
nop
lea rcx, [0x14002c8c9]
call fcn.14002b96f
nop
lea rcx, [0x14009aaf8]
call fcn.14002c62b
nop
lea rax, [0x14009aac8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14008c2c0]
call fcn.14002c3ec
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.14002bbc7
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x14007d3b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14002c900
movzx eax, al
test eax, eax
jne 0x14007d3d0
mov ecx, 7
call fcn.14002c419
nop
mov byte [rsp + 0x20], 0
call fcn.14002c49b
mov byte [rsp + 0x21], al
cmp dword [0x14009ab68], 1
jne 0x14007d3f4
mov ecx, 7
call fcn.14002c419
nop
jmp 0x14007d44c
cmp dword [0x14009ab68], 0
jne 0x14007d447
mov dword [0x14009ab68], 1
lea rdx, [0x140088888]
lea rcx, [0x140088558]
call fcn.14002bb81
test eax, eax
je 0x14007d428
mov eax, 0xff
jmp 0x14007d551
lea rdx, [0x140088448]
lea rcx, [section..rdata]
call fcn.14002c473
mov dword [0x14009ab68], 2
jmp 0x14007d44c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14002c3ce
call fcn.14002c16c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14007d4a9
mov rcx, qword [rsp + 0x30]
call fcn.14002b94c
movzx eax, al
test eax, eax
je 0x14007d4a9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1400a9020]
nop
call fcn.14002c27a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14007d4dd
mov rcx, qword [rsp + 0x38]
call fcn.14002b94c
movzx eax, al
test eax, eax
je 0x14007d4dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14002c743
nop
call fcn.14007d5c0
mov dword [rsp + 0x28], eax
call fcn.14002c0c2
movzx eax, al
test eax, eax
jne 0x14007d4fc
mov ecx, dword [rsp + 0x28]
call fcn.14002b1d1
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14007d50b
call fcn.14002c793
nop
xor edx, edx
mov cl, 1
call fcn.14002b8c5
mov eax, dword [rsp + 0x28]
jmp 0x14007d551
add rsp, 0x68
ret
Function at 0x140001d40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d8c
xor al, al
add rsp, 0x28
ret
Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al

Function at 0x184a6d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.184a6d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x184a6d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x184a6d06f
add dl, dl
jne 0x184a6d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x184a6d0f6
xor eax, eax
add dl, dl
jne 0x184a6d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x184a6d1ad
add dl, dl
jne 0x184a6d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x184a6d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x184a6d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x184a6d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x184a6d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x184a6d07e
mov eax, 1
add dl, dl
jne 0x184a6d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x184a6d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x184a6d0fb
sub eax, ebx
mov ebx, 1
jne 0x184a6d14c
mov ecx, 1
add dl, dl
jne 0x184a6d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x184a6d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x184a6d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x184a6d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x184a6d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x184a6d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x184a6d15d
cmp eax, 0x7d00
jae 0x184a6d19b
cmp eax, 0x500
jb 0x184a6d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x184a6d07e
cmp eax, 0x7f
ja 0x184a6d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x184a6d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x184a6d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x184a6d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1aa5980
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1aa598d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1aa599d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1aa5985
lea eax, [rcx + 1]
jmp 0x1aa59ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1aa59be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1aa59a4
sub eax, 3
jb 0x1aa59de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1aa5a2d
sar eax, 1
movsxd rbp, eax
jb 0x1aa5a14
jmp 0x1aa59ec
add ebx, ebx
jne 0x1aa59ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1aa5a14
inc ecx
add ebx, ebx
jne 0x1aa59fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1aa5a14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1aa5a0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1aa59fc
add ecx, 2
jmp 0x1aa5a19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01aa5942
jmp 0x1aa598d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xd2200
mov dl, 0x18
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1aa5a79
cmp rsi, rcx
jae 0x1aa5a81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1aa5a60
cmp al, 0x8f
ja 0x1aa5a60
cmp byte [rsi - 2], 0xf
je 0x1aa5a66
sub al, 0xe8
cmp al, 1
ja 0x1aa5a4a
cmp rsi, rcx
jae 0x1aa5a81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1aa5a50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1aa5a81
lodsb al, byte [rsi]
jmp 0x1aa5a60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x16a1000]
mov eax, dword [rdi]
or eax, eax
je 0x1aa5ade
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x16a78a4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1aa5a8e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1aa5ad8
mov qword [rbx], rax
add rbx, 8
jmp 0x1aa5aae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1aa5b22
cmp al, 0xef
ja 0x1aa5b0a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1aa5aea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1aa5af9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1aa5af9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1aa5b76
sub rsp, 0xffffffffffffff80
jmp 0x46a520
Function at 0x140013360
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140250340]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400549e0
movzx eax, al
test eax, eax
je 0x1400133db
xor edx, edx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140013408
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, [fcn.1400099d0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ea170
add rsp, 0x48
ret
Function at 0x140013d60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140250340]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0xb0], 0xffffffffffffffff
je 0x140013f25
movzx eax, byte [rsp + 0xc0]
test eax, eax
je 0x140013e1e
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
and eax, 8
test eax, eax
je 0x140013e1e
xor eax, eax
mov word [rsp + 0x78], ax
xor eax, eax
mov word [rsp + 0x7a], ax
lea rcx, [rsp + 0x80]
call fcn.1400103b0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
mov r8d, 0xffff
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.140014c60
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140013e3e
mov byte [rsp + 0x40], 1
jmp 0x140013e43
mov byte [rsp + 0x40], 0
movzx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
call fcn.140013bd0
cmp dword [rsp + 0x44], 0
je 0x140013f25
xor r8d, r8d
mov edx, 0x2733
lea rcx, [rsp + 0x48]
call fcn.140064c30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140010920
movzx eax, al
test eax, eax
jne 0x140013eb6
xor r8d, r8d
mov edx, 0x4d5
lea rcx, [rsp + 0x60]
call fcn.140064c30
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xc8]
call fcn.140010920
movzx eax, al
test eax, eax
je 0x140013f25
mov dword [rsp + 0x7c], 0
lea r8, [rsp + 0x7c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0xb8]
mov byte [rcx], al
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140013f0e
mov byte [rsp + 0x41], 1
jmp 0x140013f13
mov byte [rsp + 0x41], 0
movzx edx, byte [rsp + 0x41]
mov rcx, qword [rsp + 0xc8]
call fcn.140013bd0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401ea170
add rsp, 0xa8
ret
Function at 0x140013f50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140250340]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140013f95
mov edx, 0x2719
mov rcx, qword [rsp + 0x68]
call fcn.140064bf0
xor al, al
jmp 0x14001402f
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x140013fa8
mov dword [rsp + 0x24], 1
jmp 0x140013fb0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140013fdf
mov byte [rsp + 0x20], 1
jmp 0x140013fe4
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.140013bd0
cmp dword [rsp + 0x28], 0
jl 0x14001402d
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x140014017
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
or eax, 1
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
jmp 0x140014029
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov al, 1
jmp 0x14001402f
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ea170
add rsp, 0x48
ret

Function at 0x140014050
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140250340]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140014095
mov edx, 0x2719
mov rcx, qword [rsp + 0x68]
call fcn.140064bf0
xor al, al
jmp 0x14001415d
movzx eax, byte [rsp + 0x60]
test eax, eax
jne 0x1400140c3
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
and eax, 1
test eax, eax
je 0x1400140c3
mov edx, 0x2726
mov rcx, qword [rsp + 0x68]
call fcn.140064bf0
xor al, al
jmp 0x14001415d
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x1400140d6
mov dword [rsp + 0x24], 1
jmp 0x1400140de
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x14001410d
mov byte [rsp + 0x20], 1
jmp 0x140014112
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.140013bd0
cmp dword [rsp + 0x28], 0
jl 0x14001415b
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x140014145
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
or eax, 2
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
jmp 0x140014157
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
and eax, 0xfffffffd
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov al, 1
jmp 0x14001415d
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ea170
add rsp, 0x48
ret
Function at 0x140014360
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4c8
mov rax, qword [0x140250340]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x2a0], 0
mov dword [rsp + 0x40], 0
jmp 0x1400143a4
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2a0]
cmp dword [rsp + 0x40], eax
jae 0x1400143cb
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4e0]
cmp qword [rsp + rax*8 + 0x2a8], rcx
jne 0x1400143c9
jmp 0x1400143cb
jmp 0x14001439a
mov eax, dword [rsp + 0x2a0]
cmp dword [rsp + 0x40], eax
jne 0x140014406
cmp dword [rsp + 0x2a0], 0x40
jae 0x140014406
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4e0]
mov qword [rsp + rax*8 + 0x2a8], rcx
mov eax, dword [rsp + 0x2a0]
inc eax
mov dword [rsp + 0x2a0], eax
xor eax, eax
test eax, eax
jne 0x140014390
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x44], 0
jmp 0x14001442b
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x44], eax
jae 0x140014452
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4e0]
cmp qword [rsp + rax*8 + 0x98], rcx
jne 0x140014450
jmp 0x140014452
jmp 0x140014421
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x44], eax
jne 0x14001448d
cmp dword [rsp + 0x90], 0x40
jae 0x14001448d
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4e0]
mov qword [rsp + rax*8 + 0x98], rcx
mov eax, dword [rsp + 0x90]
inc eax
mov dword [rsp + 0x90], eax
xor eax, eax
test eax, eax
jne 0x140014417
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x4e0]
inc rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x2a0]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400144e4
xor al, al
jmp 0x14001458a
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x80], 4
mov rax, qword [rsp + 0x4e8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x1007
mov r8d, 0xffff
xor edx, edx
mov rcx, qword [rsp + 0x4e0]
call fcn.140014dd0
test eax, eax
jne 0x140014588
cmp dword [rsp + 0x70], 0
je 0x14001457b
call fcn.140012620
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x4c], eax
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x4c]
lea rcx, [rsp + 0x58]
call fcn.1400103e0
mov rdi, qword [rsp + 0x4e8]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
jmp 0x140014588
mov rcx, qword [rsp + 0x4e8]
call fcn.1400125f0
mov al, 1
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1401ea170
add rsp, 0x4c8
pop rdi
pop rsi
ret