joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800aede0
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rax, qword [rdx + 0x198]
cmp rax, qword [rdx + 0x190]
ja 0x1800af09c
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x180]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x70], rax
lea rcx, [rdx + 0x1c0]
lea rdx, [rsp + 0x68]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x1800aef53
cmp eax, 0x80090318
je 0x1800aefd5
test eax, eax
jne 0x1800aeff3
mov rax, qword [rsp + 0x40]
mov r14, qword [rdi + 0x180]
sub rax, r14
mov ebx, dword [rsp + 0x38]
mov rcx, rax
mov qword [rdi + 0x170], 0
add rcx, rbx
jb 0x1800af09c
cmp rcx, qword [rdi + 0x190]
ja 0x1800af09c
add r14, rax
xor r15d, r15d
cmp qword [rdi + 0x168], rbx
jb 0x1800af07f
xor r12d, r12d
mov rcx, qword [rdi + 0x160]
add rcx, r12
mov rdx, r14
mov r8, rbx
call fcn.1800f8be0
add r12, rbx
cmp dword [rsp + 0x5c], 5
mov qword [rdi + 0x170], r12
cmove r15d, dword [rsp + 0x58]
mov qword [rdi + 0x178], 0
mov rax, qword [rdi + 0x198]
mov rdx, rax
sub rdx, r15
jb 0x1800af09c
test r15, r15
je 0x1800af021
mov rcx, qword [rdi + 0x190]
mov rbx, rcx
sub rbx, rdx
jb 0x1800af09c
mov qword [rdi + 0x190], 0
cmp rax, r15
jne 0x1800af003
cmp rcx, rdx
jne 0x1800af01a
jmp 0x1800af021
cmp eax, 0x90317
je 0x1800aefed
cmp eax, 0x90321
jne 0x1800aeff3
xor r14d, r14d
cmp dword [rsp + 0x5c], 5
mov dword [rdi + 0x140], 0x10000
cmove r14d, dword [rsp + 0x58]
mov byte [rdi + 0x144], 0
mov rax, qword [rdi + 0x198]
mov rdx, rax
sub rdx, r14
jb 0x1800af09c
test r14, r14
je 0x1800af057
mov rcx, qword [rdi + 0x190]
mov rbx, rcx
sub rbx, rdx
jb 0x1800af09c
mov qword [rdi + 0x190], 0
cmp rax, r14
jne 0x1800af039
cmp rcx, rdx
jne 0x1800af050
jmp 0x1800af057
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
mov qword [rdi + 0x1f8], rax
jmp 0x1800af069
mov byte [rsi + 1], 1
jmp 0x1800af06d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1800af06f
cmp rcx, rdx
je 0x1800af021
mov rcx, qword [rdi + 0x180]
add rdx, rcx
mov r8, rbx
call fcn.1800f8be0
mov qword [rdi + 0x190], rbx
xor eax, eax
test r15d, r15d
sete al
mov qword [rdi + 0x198], r15
mov qword [rdi + 0x1f8], rax
jmp 0x1800af069
cmp rcx, rdx
je 0x1800af057
mov rcx, qword [rdi + 0x180]
add rdx, rcx
mov r8, rbx
call fcn.1800f8be0
mov qword [rdi + 0x190], rbx
mov qword [rdi + 0x198], r14
mov qword [rdi + 0x1f8], 0
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x160]
xor edx, edx
mov r8, rbx
call fcn.1801085a0
mov r12, qword [rdi + 0x170]
jmp 0x1800aeecd
ud2
Function at 0x1800b0530
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rax, qword [rdx + 0x98]
cmp rax, qword [rdx + 0x90]
ja 0x1800b07d1
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x80]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x70], rax
lea rcx, [rdx + 0xc0]
lea rdx, [rsp + 0x68]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x1800b0694
cmp eax, 0x80090318
je 0x1800b0710
test eax, eax
jne 0x1800b072e
mov rax, qword [rsp + 0x40]
mov r14, qword [rdi + 0x80]
sub rax, r14
mov ebx, dword [rsp + 0x38]
mov rcx, rax
mov qword [rdi + 0x70], 0
add rcx, rbx
jb 0x1800b07d1
cmp rcx, qword [rdi + 0x90]
ja 0x1800b07d1
add r14, rax
xor r15d, r15d
cmp qword [rdi + 0x68], rbx
jb 0x1800b07ba
xor r12d, r12d
mov rcx, qword [rdi + 0x60]
add rcx, r12
mov rdx, r14
mov r8, rbx
call fcn.1800f8be0
add r12, rbx
cmp dword [rsp + 0x5c], 5
mov qword [rdi + 0x70], r12
cmove r15d, dword [rsp + 0x58]
mov qword [rdi + 0x78], 0
mov rax, qword [rdi + 0x98]
mov rdx, rax
sub rdx, r15
jb 0x1800b07d1
test r15, r15
je 0x1800b075c
mov rcx, qword [rdi + 0x90]
mov rbx, rcx
sub rbx, rdx
jb 0x1800b07d1
mov qword [rdi + 0x90], 0
cmp rax, r15
jne 0x1800b073e
cmp rcx, rdx
jne 0x1800b0755
jmp 0x1800b075c
cmp eax, 0x90317
je 0x1800b0728
cmp eax, 0x90321
jne 0x1800b072e
xor r14d, r14d
cmp dword [rsp + 0x5c], 5
mov dword [rdi + 0x40], 0x10000
cmove r14d, dword [rsp + 0x58]
mov byte [rdi + 0x44], 0
mov rax, qword [rdi + 0x98]
mov rdx, rax
sub rdx, r14
jb 0x1800b07d1
test r14, r14
je 0x1800b0792
mov rcx, qword [rdi + 0x90]
mov rbx, rcx
sub rbx, rdx
jb 0x1800b07d1
mov qword [rdi + 0x90], 0
cmp rax, r14
jne 0x1800b0774
cmp rcx, rdx
jne 0x1800b078b
jmp 0x1800b0792
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
mov qword [rdi + 0xf8], rax
jmp 0x1800b07a4
mov byte [rsi + 1], 1
jmp 0x1800b07a8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1800b07aa
cmp rcx, rdx
je 0x1800b075c
mov rcx, qword [rdi + 0x80]
add rdx, rcx
mov r8, rbx
call fcn.1800f8be0
mov qword [rdi + 0x90], rbx
xor eax, eax
test r15d, r15d
sete al
mov qword [rdi + 0x98], r15
mov qword [rdi + 0xf8], rax
jmp 0x1800b07a4
cmp rcx, rdx
je 0x1800b0792
mov rcx, qword [rdi + 0x80]
add rdx, rcx
mov r8, rbx
call fcn.1800f8be0
mov qword [rdi + 0x90], rbx
mov qword [rdi + 0x98], r14
mov qword [rdi + 0xf8], 0
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x60]
xor edx, edx
mov r8, rbx
call fcn.1801085a0
mov r12, qword [rdi + 0x70]
jmp 0x1800b0617
ud2
Function at 0x1800b0ac0
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rdx + 0xc0]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov rdi, rax
shl rdi, 0x20
or rdi, 2
test eax, eax
jne 0x1800b0b02
mov rdi, qword [rsp + 0x28]
je 0x1800b0b6f
mov eax, edi
and eax, 3
xor r14d, r14d
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1800b0be2
test rax, rax
je 0x1800b0be2
lea rbx, [rdi - 1]
mov r14, qword [rdi - 1]
mov rdi, qword [rdi + 7]
mov rcx, r14
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1800b0b58
cmp qword [rdi + 0x10], 0x11
jb 0x1800b0b46
mov r14, qword [r14 - 8]
mov rcx, qword [0x18016cb80]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x18016cb80]
xor r14d, r14d
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1800b0be2
mov r15, qword [rdi + 8]
mov ebx, dword [rdi + 0x10]
test rbx, rbx
je 0x1800b0bc5
movzx eax, byte [0x18016cbc0]
mov rcx, qword [0x18016cb80]
test rcx, rcx
jne 0x1800b0ba3
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800b0bb6
mov rcx, rax
mov qword [0x18016cb80], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x1800b0bcb
mov ecx, 1
mov rdx, rbx
call fcn.180106200
ud2
mov r14d, 1
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.1800f8be0
mov rcx, rdi
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rbx
mov qword [rsi + 8], r14
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1800c70b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1800c70d0
test al, 1
je 0x1800c7232
test al, 2
jne 0x1800c7232
test al, 8
jne 0x1800c711c
mov rdi, qword [rsi + 0x28]
mov eax, dword [0x18016cbc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc0], 0
je 0x1800c713c
lea rax, [rax + 0xc8]
jmp 0x1800c714a
test al, 0x10
je 0x1800c719f
mov rax, qword [rsi + 0x2e0]
test rax, rax
je 0x1800c7232
mov rcx, qword [rsi + 0x2e8]
call qword [rax + 0x10]
jmp 0x1800c719f
call fcn.1800e0e20
test rax, rax
je 0x1800c722a
movups xmm6, xmmword [rax + 0x20]
mov qword [rax + 0x20], 1
mov qword [rax + 0x28], rdi
lea rcx, [rsi + 0x30]
call fcn.1800c6f50
mov qword [rsi + 0x30], 4
mov eax, dword [0x18016cbc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc0], 0
je 0x1800c7191
lea rax, [rax + 0xc8]
jmp 0x1800c719b
call fcn.1800e0e20
test rax, rax
je 0x1800c719f
movups xmmword [rax + 0x20], xmm6
mov rcx, qword [rsi + 0x20]
mov rdx, rsi
call fcn.1800e8370
cmp rax, 1
mov eax, 2
sbb rax, 0
mov rcx, rax
shl rcx, 6
neg rcx
lock xadd qword [rsi], rcx
shr rcx, 6
cmp rcx, rax
jb 0x1800c7232
jne 0x1800c721e
mov rcx, qword [rsi + 0x20]
lock dec qword [rcx]
jne 0x1800c71e1
call fcn.18005bb50
lea rcx, [rsi + 0x30]
call fcn.1800c6f50
mov rax, qword [rsi + 0x2e0]
test rax, rax
je 0x1800c7200
mov rcx, qword [rsi + 0x2e8]
call qword [rax + 0x18]
mov rcx, qword [0x18016cb80]
xor edx, edx
mov r8, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.kernel32.dll_HeapFree]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
xorps xmm6, xmm6
jmp 0x1800c715a
ud2
Function at 0x1800c8200
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1800c8220
test al, 1
je 0x1800c8382
test al, 2
jne 0x1800c8382
test al, 8
jne 0x1800c826c
mov rdi, qword [rsi + 0x28]
mov eax, dword [0x18016cbc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc0], 0
je 0x1800c828c
lea rax, [rax + 0xc8]
jmp 0x1800c829a
test al, 0x10
je 0x1800c82ef
mov rax, qword [rsi + 0x2e0]
test rax, rax
je 0x1800c8382
mov rcx, qword [rsi + 0x2e8]
call qword [rax + 0x10]
jmp 0x1800c82ef
call fcn.1800e0e20
test rax, rax
je 0x1800c837a
movups xmm6, xmmword [rax + 0x20]
mov qword [rax + 0x20], 1
mov qword [rax + 0x28], rdi
lea rcx, [rsi + 0x30]
call fcn.1800c6f50
mov qword [rsi + 0x30], 4
mov eax, dword [0x18016cbc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc0], 0
je 0x1800c82e1
lea rax, [rax + 0xc8]
jmp 0x1800c82eb
call fcn.1800e0e20
test rax, rax
je 0x1800c82ef
movups xmmword [rax + 0x20], xmm6
mov rcx, qword [rsi + 0x20]
mov rdx, rsi
call fcn.1800e7730
cmp rax, 1
mov eax, 2
sbb rax, 0
mov rcx, rax
shl rcx, 6
neg rcx
lock xadd qword [rsi], rcx
shr rcx, 6
cmp rcx, rax
jb 0x1800c8382
jne 0x1800c836e
mov rcx, qword [rsi + 0x20]
lock dec qword [rcx]
jne 0x1800c8331
call fcn.18005bab0
lea rcx, [rsi + 0x30]
call fcn.1800c6f50
mov rax, qword [rsi + 0x2e0]
test rax, rax
je 0x1800c8350
mov rcx, qword [rsi + 0x2e8]
call qword [rax + 0x18]
mov rcx, qword [0x18016cb80]
xor edx, edx
mov r8, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.kernel32.dll_HeapFree]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
xorps xmm6, xmm6
jmp 0x1800c82aa
ud2
Function at 0x1800cbc50
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1800cbcb7
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1800cbcfe
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x1800cbcf3
xor r9d, r9d
lea r10, [0x18015fc64]
xor r8d, r8d
nop word cs:[rax + rax]
movzx r11d, byte [rax + r9]
or r8d, dword [r10 + r11*4]
inc r9
cmp rdx, r9
jne 0x1800cbce0
jmp 0x1800cbcf6
xor r8d, r8d
mov dword [rsp + 0x98], r8d
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1800cbd85
js 0x1800cbe94
mov rbx, qword [rcx]
lea r14, [rsi*8]
movzx eax, byte [0x18016cbc0]
mov rcx, qword [0x18016cb80]
test rcx, rcx
jne 0x1800cbd44
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800cbe7e
mov rcx, rax
mov qword [0x18016cb80], rax
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800cbe7e
mov rdi, rax
lea r8, [rbx + rsi*8]
sub r8, rbx
add r8, 0xfffffffffffffff8
mov r14, r8
shr r14, 3
and r8, 0xfffffffffffffff8
add r8, 8
mov rcx, rax
mov rdx, rbx
call fcn.1800f8be0
inc r14d
jmp 0x1800cbd8d
xor r14d, r14d
mov edi, 8
mov dword [rsp + 0x64], r14d
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
lea rdx, [0x180139585]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1800cbe1a
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
test rsi, rsi
je 0x1800cbdff
mov rcx, qword [0x18016cb80]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, r14
mov rdx, rbx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
movaps xmm6, xmmword [rsp + 0x50]
movzx eax, byte [0x18016cbc0]
mov rcx, qword [0x18016cb80]
test rcx, rcx
jne 0x1800cbe47
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800cbe98
mov rcx, rax
mov qword [0x18016cb80], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800cbe98
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm6
xor r14d, r14d
test rsi, rsi
jne 0x1800cbded
jmp 0x1800cbdff
shr rsi, 0x39
not esi
and esi, 8
mov rcx, rsi
mov rdx, r14
call fcn.180106200
ud2
ud2
mov ecx, 8
mov edx, 0x20
call fcn.180106200
ud2
Function at 0x1800d3810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1800d3840
test ecx, ecx
jne 0x1800d3890
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1800d384c
test ecx, ecx
jne 0x1800d3890
mov rcx, rdi
call fcn.1800d3700
movzx ecx, al
test bpl, bpl
jne 0x1800d3897
lea rdx, [rdi + 0x10]
xor eax, eax
cmp byte [rdi + 0x10], 6
cmove rdx, rax
je case.0x1800d3883.2
movzx r8d, byte [rdx]
mov eax, 6
lea r9, [0x1800d39ec]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rax, qword [rdx + 0x10]
add rax, 4
jmp case.0x1800d3883.2
xor ecx, ecx
test bpl, bpl
je 0x1800d385c
xor eax, eax
add rcx, rax
movzx r10d, bl
lea r9, [rcx + r10]
mov rax, qword [rdi + 8]
cmp rax, r9
jb 0x1800d39e7
mov r11, qword [rdi]
lea rdx, [r11 + r9]
cmp rax, r9
jne 0x1800d38ca
movzx r8d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1800d3949
movzx r8d, byte [rdi + 0x10]
add rcx, r10
sub rcx, rax
inc rcx
lea rdi, [rax + r11]
dec rdi
xor r10d, r10d
cmp r8b, 3
jae 0x1800d3910
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1800d392b
inc rcx
dec rdi
cmp rcx, 1
jne 0x1800d38f0
jmp 0x1800d3949
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1800d392b
cmp ebx, 0x5c
je 0x1800d392b
inc rcx
dec rdi
cmp rcx, 1
jne 0x1800d3910
jmp 0x1800d3949
neg rcx
add r9, rcx
inc r9
cmp rax, r9
jb 0x1800d39e7
add r11, r9
mov r10d, 1
mov rdx, r11
sub rax, r9
je 0x1800d3972
mov cl, 9
cmp rax, 2
je 0x1800d3976
cmp rax, 1
jne 0x1800d3985
cmp byte [rdx], 0x2e
jne 0x1800d3985
xor ecx, ecx
cmp r8b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x1800d3985
mov cl, 0xa
jmp 0x1800d3985
cmp byte [rdx], 0x2e
jne 0x1800d3985
cmp byte [rdx + 1], 0x2e
sete cl
xor cl, 9
add r10, rax
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rax, r8
add rax, 8
jmp case.0x1800d3883.2
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rax, r8
add rax, 2
jmp case.0x1800d3883.2
mov eax, 2
jmp case.0x1800d3883.2
ud2
Function at 0x1800d3cf0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x18013a2b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1800d3d5c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1800d3d6b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1800d3da3
cmp eax, 0x103
je 0x1800d3dad
test eax, eax
js 0x1800d3d88
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1800d3da3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1800d0830
mov rcx, rax
call fcn.1800d0910
mov ecx, 7
int 0x29
ud2
Function at 0x1800d5a20
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x18016cb88]
cmp rax, 3
jne 0x1800d5bbe
cmp rbx, 0x17f
ja 0x1800d5bd0
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.1800f8be0
mov byte [rsp + rbx + 0x68], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x1800d5a98
xor edx, edx
nop dword [rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x1800d5b24
inc rdx
cmp rax, rdx
jne 0x1800d5a80
jmp 0x1800d5b87
xor ecx, ecx
mov dl, 1
test dl, dl
jne 0x1800d5ac8
jne 0x1800d5ac8
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x1800d5b24
inc rdx
jne 0x1800d5ab0
xor edx, edx
test dl, dl
jne 0x1800d5b1a
lea rdx, [rbx - 0xf]
jmp 0x1800d5ace
lea rdx, [rbx - 0xf]
xor ecx, ecx
movdqa xmm0, xmmword [0x1801117d0]
movabs r8, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rcx + 0x68]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1800d5b1a
add rcx, 0x10
cmp rcx, rdx
jbe 0x1800d5ae0
jmp 0x1800d5b1a
cmp byte [rsp + rcx + 0x68], 0
je 0x1800d5b21
inc rcx
cmp rax, rcx
jne 0x1800d5b10
jmp 0x1800d5b87
mov rdx, rcx
cmp rdx, rbx
jne 0x1800d5b87
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1800d5ba6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1800d5b99
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x1800d5b99
call fcn.18010ce20
cmp rbx, 0x17f
jbe 0x1800d5a58
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.18010ce80
Function at 0x1800d6150
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x18016cbc0]
mov rcx, qword [0x18016cb80]
test rcx, rcx
jne 0x1800d618e
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d6242
mov rcx, rax
mov qword [0x18016cb80], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d6242
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1800d6260]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800d6235
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1800d620f
cmp qword [rbx + 0x10], 0x11
jb 0x1800d61fd
mov rdi, qword [rdi - 8]
mov rcx, qword [0x18016cb80]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x18016cb80]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.180106200
ud2

Function at 0x1800d62e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1800d630f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1800d3ce0
ud2
Function at 0x1800d6a40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1800d6a6b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x18016cb88]
cmp rax, 3
jne 0x1800d6bed
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800d6ae0
cmp word [rbx], 0
je 0x1800d6b58
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1800d6b6d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1800d6afb
mov r14d, eax
cmp eax, 0x2726
jne 0x1800d6bdc
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1800d6bd3
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1800d6ab8
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1800d6bdc
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x30], r9w
mov word [rsp + 0x32], cx
mov dword [rsp + 0x34], eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1800d6bac
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1800d6a60
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1800d6a60
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x1800d6a59
call fcn.18010ce20
jmp 0x1800d6a7c