joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f270
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rdi, rcx
mov qword [rbp + 0x20], 0xffffffff80000001
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRunfs1_
mov qword [rbp + 0x28], rax
lea rax, [0x1401cc13d]
mov qword [rbp + 0x30], rax
mov word [rbp + 0x38], 0
mov dword [rbp + 0x40], 1
lea rcx, [rbp - 8]
lea rsi, [rbp + 0x28]
mov rdx, rsi
call fcn.140008130
mov qword [rbp + 0x28], 0
mov dword [rbp - 0x20], 0
mov rdx, qword [rbp]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov qword [rbp + 0x48], rdx
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test eax, eax
je 0x14000f45c
mov rsi, rbx
shl rsi, 0x20
or rsi, 2
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x14000f349
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x48]
call fcn.14001d100
test ebx, ebx
jne 0x14000f472
mov qword [rbp + 0x18], rsi
mov rax, qword [section..data]
cmp rax, 2
je 0x14000f371
lea rcx, [section..data]
mov rdx, rcx
call fcn.1401bffe0
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp + 0x28]
call fcn.1401935b0
cmp qword [rbp + 0x28], 0
jne 0x14000f4a0
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x38]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rcx
mov rdi, qword [0x1402c4010]
mov rbx, qword [0x1402c4018]
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x30]
call fcn.14018b2b0
add rbx, rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x38], 0
mov dword [rbp + 0x40], 1
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x28]
call fcn.140008130
movzx r9d, byte [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov rdi, qword [rbp]
mov eax, dword [rbp + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov qword [rbp + 0x48], rdx
xor r8d, r8d
call sub.advapi32.dll_RegSetValueExW
mov esi, eax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14000f422
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x48]
call fcn.14001d100
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x14000f439
mov r8d, 1
mov rcx, rdi
call fcn.14001d100
test esi, esi
jne 0x14000f4ba
lea rcx, [rbp + 0x18]
call fcn.14018b3d0
lea rcx, [rbp + 0x20]
call fcn.14018b3d0
nop
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rbp + 0x28]
mov rdx, qword [rbp - 8]
test rdx, rdx
jne 0x14000f337
jmp 0x14000f349
mov qword [rbp + 0x28], rsi
lea rax, [0x1401cc140]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401cc13d]
lea r9, fcn.14000a030
lea r8, [rbp + 0x28]
mov edx, 3
call fcn.1401ca700
jmp 0x14000f4ee
lea rcx, [0x1401cc0a6]
lea r8, [0x1401cc158]
mov edx, 0x2b
call fcn.1401ca2f0
jmp 0x14000f4ee
shl rsi, 0x20
or rsi, 2
mov qword [rbp + 0x28], rsi
lea rax, [0x1401cc178]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401cc170]
lea r9, fcn.14000a030
lea r8, [rbp + 0x28]
mov edx, 3
call fcn.1401ca700
ud2
Function at 0x14001d160
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14001d1ab
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14001d1d8
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140195790
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140026580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x958
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x8c0], xmm8
movaps xmmword [rbp + 0x8b0], xmm7
movaps xmmword [rbp + 0x8a0], xmm6
mov qword [rbp + 0x898], 0xfffffffffffffffe
mov rsi, r8
mov rbx, rdx
mov qword [rbp + 0x828], rcx
mov rcx, qword [rdx + 0x130]
test rcx, rcx
je 0x1400265e5
mov rdx, rsi
call fcn.140151740
test al, al
je 0x140028752
lea rax, [rbx + 0x118]
mov qword [rbp + 0x360], rax
lea rax, [rbx + 0x20]
mov qword [rbp + 0x578], rax
lea rax, [rbx + 0x88]
mov qword [rbp + 0x858], rax
lea rax, [rbx + 0xf8]
mov qword [rbp + 0x818], rax
lea rax, [rbx + 0xfb]
mov qword [rbp + 0x4d8], rax
lea rdi, [rbp + 0x71a]
xorps xmm6, xmm6
movaps xmm7, xmmword [0x1401cd780]
lea rax, [rbx + 0x28]
mov qword [rbp + 0x570], rax
lea rax, [rbx + 0x40]
mov qword [rbp + 0x368], rax
lea rax, [rbx + 0x58]
mov qword [rbp + 0x370], rax
lea rax, [rbx + 0xc8]
mov qword [rbp + 0x700], rax
lea rax, [rbx + 0xe0]
mov qword [rbp + 0x378], rax
lea r12, [rbp + 0x3e0]
lea r15, [rbp + 0x130]
lea rax, method..virtual_24
mov qword [rbp + 0x588], rax
mov qword [rbp + 0x848], rbx
mov qword [rbp + 0x4c0], rsi
mov word [rbp + 0x778], 1
mov qword [rbp + 0x768], 1
lea rax, method..virtual_24
mov qword [rbp + 0x770], rax
movabs rax, 0x8000000000000000
mov qword [rbp + 0x710], rax
movzx eax, byte [0x1402c7041]
mov ecx, 0x70
mov edx, 8
call fcn.14001d0f0
test rax, rax
je 0x140029439
mov rsi, rax
movups xmm0, xmmword [rbp + 0x770]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rbp + 0x760]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x750]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x710]
movups xmm1, xmmword [rbp + 0x720]
movups xmm2, xmmword [rbp + 0x730]
movups xmm3, xmmword [rbp + 0x740]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rbp + 0x130], rax
lea rdx, [rbx + 0x88]
lea rcx, [rbp + 0x710]
call fcn.1401b1b60
movups xmm6, xmmword [rbx + 0xb4]
movups xmm0, xmmword [rbx + 0xc8]
movzx eax, byte [rbx + 0xd8]
mov byte [rbp + 0x3f0], al
movaps xmmword [rbp + 0x3e0], xmm0
movzx r14d, word [rbx + 0xb0]
movzx r15d, word [rbx + 0xb2]
mov ecx, dword [rbx + 0xc4]
mov r12d, dword [rbx + 0xa0]
mov r13d, dword [rbx + 0xa4]
mov edi, dword [rbx + 0xa8]
mov ebx, dword [rbx + 0xac]
mov rax, qword [rbp + 0x720]
mov qword [rbp + 0x5a0], rax
movups xmm0, xmmword [rbp + 0x710]
movaps xmmword [rbp + 0x590], xmm0
mov rdx, qword [rsi]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x1400288ad
test rdx, rdx
je 0x1400288ad
mov dword [rbp + 0x858], ecx
mov rcx, qword [rsi + 8]
mov r8d, 1
call fcn.14001d100
mov ecx, dword [rbp + 0x858]
mov rax, qword [rbp + 0x5a0]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbp + 0x590]
movups xmmword [rsi], xmm0
mov dword [rsi + 0x18], r12d
mov dword [rsi + 0x1c], r13d
mov dword [rsi + 0x20], edi
mov dword [rsi + 0x24], ebx
mov word [rsi + 0x28], r14w
mov word [rsi + 0x2a], r15w
jmp 0x140028e69
mov ecx, 8
mov edx, 0x70
call fcn.1401c9fd0
jmp 0x1400294e3
Function at 0x140037790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov qword [rbp - 0x30], rcx
add r9, r8
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r9
mov word [rbp - 0x18], 0
mov dword [rbp - 0x10], 1
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x28]
call fcn.140008130
mov dword [rbp - 4], 0x800
mov dword [rbp - 8], 0
movzx eax, byte [0x1402c7041]
mov ecx, 0x800
mov edx, 1
call fcn.14001d0f0
test rax, rax
je 0x14003792e
mov rbx, rax
mov qword [rbp - 0x28], 0x800
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
mov rdi, qword [rbp - 0x48]
lea r12, [rbp - 4]
lea r15, [rbp - 8]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
sub r13, rax
nop word cs:[rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x14003788b
mov r8d, dword [rbp - 4]
cmp r13, r8
jae 0x140037850
lea rcx, [rbp - 0x28]
mov rdx, qword [rbp - 0x38]
call fcn.1401bfef0
mov rbx, qword [rbp - 0x20]
jmp 0x140037836
test eax, eax
jne 0x1400378aa
mov eax, dword [rbp - 4]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 8]
cmp eax, 0xb
jbe 0x14003790d
movabs rax, 0xde00000002
jmp 0x1400378b2
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x30]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400378de
mov r8d, 1
mov rcx, rbx
call fcn.14001d100
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x1400378f8
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14001d100
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x18], al
mov rdx, qword [rbp - 0x50]
test rdx, rdx
jne 0x1400378e7
jmp 0x1400378f8
mov ecx, 1
mov edx, 0x800
call fcn.1401c9fd0
ud2
Function at 0x14008e480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
cmp dword [rcx], 2
jne 0x14008e516
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdet]
pshufd xmm2, xmm0, 0xee
pxor xmm2, xmmword [0x1401cb8f0]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rsi, qword [rdx]
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.140009800
test rdi, rdi
je 0x14008e5a5
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14008e5be
mov rcx, qword [rdx]
mov r8, qword [rcx]
xor edx, edx
test r8, r8
setne dl
movabs rax, 0xcbf29ce484222325
xor rax, rdx
movabs rdx, 0x1efac7090aef4a21
imul rax, rdx
test r8, r8
je 0x14008e6b6
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x14008e738
mov rcx, qword [rcx + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x14008e6c3
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x14008e580
cmp r9, 8
jae 0x14008e6cc
jmp 0x14008e738
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.140009800
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x14008e738
movzx ecx, byte [rcx + 8]
xor rax, rcx
imul rax, rdx
jmp 0x14008e738
mov r8, rcx
cmp r9, 8
jb 0x14008e738
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x14008e6d0
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400b5680
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
call fcn.14018c080
cmp qword [rax], 0
je 0x1400b569e
add rax, 8
jmp 0x1400b56a8
mov rcx, rax
xor edx, edx
call fcn.1400a3a60
mov r11, qword [rax]
mov rcx, qword [rax + 8]
lea r9, [r11 + 1]
movabs rdx, 0x736f6d6570736575
xor rdx, r11
movabs r8, 0x646f72616e646f6d
xor r8, rcx
add rdx, r8
rol r8, 0xd
mov qword [rax], r9
xor r8, rdx
rol rdx, 0x20
movabs r9, 0x6c7967656e657261
mov r10, r8
rol r10, 0x11
xor r9, r11
mov r11d, 1
movabs rsi, 0x7465646279746573
movabs rdi, 0x800000000000000
nop dword [rax]
mov r12, rcx
xor r12, r11
xor r12, rsi
lea rbx, [r12 + r9]
rol r12, 0x10
xor r12, rbx
lea r14, [r12 + rdx]
rol r12, 0x15
add rbx, r8
mov r15, rbx
xor r15, r10
rol rbx, 0x20
mov rax, r14
xor rax, r11
add rax, r15
rol r15, 0xd
xor r14, rdi
xor r15, rax
rol rax, 0x20
xor r14, r12
add rbx, r14
rol r14, 0x10
xor r14, rbx
add rax, r14
rol r14, 0x15
add rbx, r15
rol r15, 0x11
xor r14, rax
xor r15, rbx
rol rbx, 0x20
xor rax, rdi
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
xor rbx, 0xff
add rbx, r14
rol r14, 0x10
xor r14, rbx
add rax, r14
rol r14, 0x15
add rbx, r15
rol r15, 0x11
xor r15, rbx
rol rbx, 0x20
xor r14, rax
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
add rbx, r14
rol r14, 0x10
xor r14, rbx
add rax, r14
rol r14, 0x15
add rbx, r15
rol r15, 0x11
xor r15, rbx
rol rbx, 0x20
xor r14, rax
add rax, r15
rol r15, 0xd
add rbx, r14
rol r14, 0x10
xor r14, rbx
rol r14, 0x15
xor r15, rax
add rbx, r15
rol r15, 0x11
mov rax, rbx
rol rax, 0x20
xor rax, r15
xor rax, r14
inc r11
xor rax, rbx
je 0x1400b5710
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400e73c0
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400e73f4
mov rdx, qword [rsp + 0x20]
mov al, cl
add rsp, 0x28
ret
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x140145500
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140145510
test al, 1
je 0x14014552f
test al, 2
jne 0x140145547
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14021e570]
mov edx, 0x23
call fcn.1401ca2f0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14021e5b0]
mov edx, 0x25
call fcn.1401ca2f0
int3
Function at 0x140149a60
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140149a78
add rcx, 0x18
add rsp, 0x28
jmp 0x14016abb0
lea rcx, [0x14021ee30]
lea r8, [0x14021eec8]
mov edx, 0x2b
call fcn.1401ca2f0
int3
jmp 0x140195550
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140195588
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140149f20
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140166c80
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166cb8
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140149f30
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140166cd0
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166d05
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140149f40
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140166c30
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166c65
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x1401657f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140165810
test al, 1
je 0x1401658d9
test al, 2
jne 0x1401658f1
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.140144de0
test rax, rax
je 0x14016586e
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x20], rdx
call qword [rdx]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x14016586e
mov r8, qword [rax + 0x10]
call fcn.14001d100
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x140165909
jne 0x1401658cf
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
lea rcx, [rax + 0x28]
call fcn.1401631d0
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1401658bb
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x20]
call fcn.14001d100
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14021e570]
mov edx, 0x23
call fcn.1401ca2f0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14021e5b0]
mov edx, 0x25
call fcn.1401ca2f0
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1401beb80]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x14021e5f8]
lea rcx, [rbp - 0x58]
call fcn.1401ca220
int3

Function at 0x1401669d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140166bb0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x140166bda
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x140166bf0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140166c1a
xor eax, eax
add rsp, 0x28
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x140166c30
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140166c30
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166c65
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140166c80
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140166c80
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166cb8
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140166cd0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140166cd0
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166d05
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140166d20
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rsi, qword [rcx]
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140166e47
mov r9d, dword [rdi + 8]
xor ecx, ecx
mov r8d, 0
cmp r9d, 0x3b9aca00
je 0x140166da8
mov eax, 0x3e8
mul qword [rdi]
mov r8d, r9d
imul r9, r8, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor r8d, r8d
neg rdx
sbb r8d, r8d
or r8d, r9d
mov r9d, dword [rdi + 0x18]
cmp r9d, 0x3b9aca00
je 0x140166de9
mov eax, 0x3e8
mul qword [rdi + 0x10]
mov ecx, r9d
imul r9, rcx, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor ecx, ecx
neg rdx
sbb ecx, ecx
or ecx, r9d
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x48]
mov rcx, rsi
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x140166e47
xor eax, eax
jmp 0x140166e54
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x58
pop rdi
pop rsi
ret