joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ce6d0
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 0x1800ce712
mov rdi, qword [rsp + 0x28]
je 0x1800ce77f
mov eax, edi
and eax, 3
xor r14d, r14d
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1800ce7f2
test rax, rax
je 0x1800ce7f2
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 0x1800ce768
cmp qword [rdi + 0x10], 0x11
jb 0x1800ce756
mov r14, qword [r14 - 8]
mov rcx, qword [0x1801fa958]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1801fa958]
xor r14d, r14d
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1800ce7f2
mov r15, qword [rdi + 8]
mov ebx, dword [rdi + 0x10]
test rbx, rbx
je 0x1800ce7d5
movzx eax, byte [0x1801fa9d0]
mov rcx, qword [0x1801fa958]
test rcx, rcx
jne 0x1800ce7b3
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800ce7c6
mov rcx, rax
mov qword [0x1801fa958], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x1800ce7db
mov ecx, 1
mov rdx, rbx
call fcn.180166060
ud2
mov r14d, 1
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.180158470
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 0x1800e49c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [rcx]
nop
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1800e49d0
test al, 1
je 0x1800e4a72
test al, 2
jne 0x1800e4a72
test al, 8
jne 0x1800e4a0b
lea rcx, [rsi + 0x20]
mov qword [rsp + 0x20], 4
lea rdx, [rsp + 0x20]
call fcn.1800e4830
jmp 0x1800e4a25
test al, 0x10
je 0x1800e4a25
mov rax, qword [rsi + 0x2e0]
test rax, rax
je 0x1800e4a72
mov rcx, qword [rsi + 0x2e8]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x20]
mov rdx, rsi
call fcn.180107510
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 0x1800e4a72
jne 0x1800e4a68
mov rcx, rsi
add rsp, 0x2c0
pop rsi
jmp fcn.1800e4a80
nop
add rsp, 0x2c0
pop rsi
ret
ud2

Function at 0x1800e5470
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [rcx]
nop
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x1800e5480
test al, 1
je 0x1800e5522
test al, 2
jne 0x1800e5522
test al, 8
jne 0x1800e54bb
lea rcx, [rsi + 0x20]
mov qword [rsp + 0x20], 4
lea rdx, [rsp + 0x20]
call fcn.1800e4830
jmp 0x1800e54d5
test al, 0x10
je 0x1800e54d5
mov rax, qword [rsi + 0x2e0]
test rax, rax
je 0x1800e5522
mov rcx, qword [rsi + 0x2e8]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x20]
mov rdx, rsi
call fcn.180106610
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 0x1800e5522
jne 0x1800e5518
mov rcx, rsi
add rsp, 0x2c0
pop rsi
jmp fcn.1800e5530
nop
add rsp, 0x2c0
pop rsi
ret
ud2
Function at 0x1800ecee0
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 0x1800ecf47
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1800ecf8e
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x1800ecf83
xor r9d, r9d
lea r10, [0x1801e7024]
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 0x1800ecf70
jmp 0x1800ecf86
xor r8d, r8d
mov dword [rsp + 0x98], r8d
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1800ed015
js 0x1800ed124
mov rbx, qword [rcx]
lea r14, [rsi*8]
movzx eax, byte [0x1801fa9d0]
mov rcx, qword [0x1801fa958]
test rcx, rcx
jne 0x1800ecfd4
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800ed10e
mov rcx, rax
mov qword [0x1801fa958], rax
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800ed10e
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.180158470
inc r14d
jmp 0x1800ed01d
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, [0x1801bfc9d]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1800ed0aa
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
test rsi, rsi
je 0x1800ed08f
mov rcx, qword [0x1801fa958]
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 [0x1801fa9d0]
mov rcx, qword [0x1801fa958]
test rcx, rcx
jne 0x1800ed0d7
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800ed128
mov rcx, rax
mov qword [0x1801fa958], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800ed128
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm6
xor r14d, r14d
test rsi, rsi
jne 0x1800ed07d
jmp 0x1800ed08f
shr rsi, 0x39
not esi
and esi, 8
mov rcx, rsi
mov rdx, r14
call fcn.180166060
ud2
ud2
mov ecx, 8
mov edx, 0x20
call fcn.180166060
ud2
Function at 0x1800f6190
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 0x1800f61c0
test ecx, ecx
jne 0x1800f6210
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1800f61cc
test ecx, ecx
jne 0x1800f6210
mov rcx, rdi
call fcn.1800f6080
movzx ecx, al
test bpl, bpl
jne 0x1800f6217
lea rdx, [rdi + 0x10]
xor eax, eax
cmp byte [rdi + 0x10], 6
cmove rdx, rax
je case.0x1800f6203.2
movzx r8d, byte [rdx]
mov eax, 6
lea r9, [0x1800f636c]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rax, qword [rdx + 0x10]
add rax, 4
jmp case.0x1800f6203.2
xor ecx, ecx
test bpl, bpl
je 0x1800f61dc
xor eax, eax
add rcx, rax
movzx r10d, bl
lea r9, [rcx + r10]
mov rax, qword [rdi + 8]
cmp rax, r9
jb 0x1800f6367
mov r11, qword [rdi]
lea rdx, [r11 + r9]
cmp rax, r9
jne 0x1800f624a
movzx r8d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1800f62c9
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 0x1800f6290
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1800f62ab
inc rcx
dec rdi
cmp rcx, 1
jne 0x1800f6270
jmp 0x1800f62c9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1800f62ab
cmp ebx, 0x5c
je 0x1800f62ab
inc rcx
dec rdi
cmp rcx, 1
jne 0x1800f6290
jmp 0x1800f62c9
neg rcx
add r9, rcx
inc r9
cmp rax, r9
jb 0x1800f6367
add r11, r9
mov r10d, 1
mov rdx, r11
sub rax, r9
je 0x1800f62f2
mov cl, 9
cmp rax, 2
je 0x1800f62f6
cmp rax, 1
jne 0x1800f6305
cmp byte [rdx], 0x2e
jne 0x1800f6305
xor ecx, ecx
cmp r8b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x1800f6305
mov cl, 0xa
jmp 0x1800f6305
cmp byte [rdx], 0x2e
jne 0x1800f6305
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.0x1800f6203.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.0x1800f6203.2
mov eax, 2
jmp case.0x1800f6203.2
ud2
Function at 0x1800f6670
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1801c09f8]
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 0x1800f66dc
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1800f66eb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1800f6723
cmp eax, 0x103
je 0x1800f672d
test eax, eax
js 0x1800f6708
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1800f6723
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.1800f31b0
mov rcx, rax
call fcn.1800f3290
mov ecx, 7
int 0x29
ud2
Function at 0x1800f83a0
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 [0x1801fa960]
cmp rax, 3
jne 0x1800f853e
cmp rbx, 0x17f
ja 0x1800f8550
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.180158470
mov byte [rsp + rbx + 0x68], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x1800f8418
xor edx, edx
nop dword [rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x1800f84a4
inc rdx
cmp rax, rdx
jne 0x1800f8400
jmp 0x1800f8507
xor ecx, ecx
mov dl, 1
test dl, dl
jne 0x1800f8448
jne 0x1800f8448
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x1800f84a4
inc rdx
jne 0x1800f8430
xor edx, edx
test dl, dl
jne 0x1800f849a
lea rdx, [rbx - 0xf]
jmp 0x1800f844e
lea rdx, [rbx - 0xf]
xor ecx, ecx
movdqa xmm0, xmmword [0x1801717b0]
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 0x1800f849a
add rcx, 0x10
cmp rcx, rdx
jbe 0x1800f8460
jmp 0x1800f849a
cmp byte [rsp + rcx + 0x68], 0
je 0x1800f84a1
inc rcx
cmp rax, rcx
jne 0x1800f8490
jmp 0x1800f8507
mov rdx, rcx
cmp rdx, rbx
jne 0x1800f8507
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 0x1800f8526
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 0x1800f8519
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 0x1800f8519
call fcn.18016c750
cmp rbx, 0x17f
jbe 0x1800f83d8
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.18016c7b0
Function at 0x1800f8ad0
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 [0x1801fa9d0]
mov rcx, qword [0x1801fa958]
test rcx, rcx
jne 0x1800f8b0e
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800f8bc2
mov rcx, rax
mov qword [0x1801fa958], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800f8bc2
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1800f8be0]
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 0x1800f8bb5
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1800f8b8f
cmp qword [rbx + 0x10], 0x11
jb 0x1800f8b7d
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1801fa958]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1801fa958]
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.180166060
ud2

Function at 0x1800f8c60
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 0x1800f8c8f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1800f6660
ud2
Function at 0x1800f93c0
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 0x1800f93eb
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 [0x1801fa960]
cmp rax, 3
jne 0x1800f9570
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 qword [sym.imp.ws2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800f9461
cmp word [rbx], 0
je 0x1800f94db
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 0x1800f94f0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1800f947c
mov r14d, eax
cmp eax, 0x2726
jne 0x1800f955f
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1800f9556
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1800f9439
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1800f955f
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 0x1800f952f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1800f93e0
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 0x1800f93e0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x1800f93d9
call fcn.18016c750
jmp 0x1800f93fc
Function at 0x1800febf0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x1800fed4c
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
test rbp, rbp
je 0x1800fed21
shl rbp, 3
mov esi, 8
xor r15d, r15d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x78]
xor r12d, r12d
jmp 0x1800fec9c
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
je 0x1800fed21
mov r13, qword [rdi + r15]
mov rcx, r13
call fcn.18015b848
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov rcx, rbx
mov rdx, r14
call fcn.1800fd0f0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x30]
jne 0x1800fec70
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.1800feee0
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1800fec70
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LocalFree]
test rax, rax
jne 0x1800fed34
call sub.kernel32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x1800fed5a
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1800ff830
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
je 0x1800ff8c9
mov rbx, qword [rsi]
lea r14, [rbx + 0x10]
movdqa xmm0, xmmword [rbx]
pmovmskb eax, xmm0
not eax
mov r15, qword [sym.imp.pdh.dll_PdhRemoveCounter]
jmp 0x1800ff891
lea ebp, [rax - 1]
and ebp, eax
tzcnt eax, eax
shl rax, 5
mov rcx, rbx
sub rcx, rax
mov rcx, qword [rcx - 8]
call r15
mov eax, ebp
dec rdi
je 0x1800ff8c9
test ax, ax
jne 0x1800ff870
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rbx, 0xfffffffffffffe00
add r14, 0x10
cmp ax, 0xffff
je 0x1800ff8a0
mov ecx, 0xfffffffe
sub ecx, eax
not eax
mov ebp, eax
and ebp, ecx
jmp 0x1800ff875
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1800ff8e1
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1800ff8fc
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x1800ff90f
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1800ff8ef
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x18010a290
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18010a49d
mov r14, qword [rsp + 0x20]
mov rcx, qword [0x1801fa970]
test rcx, rcx
jne 0x18010a300
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18010a49d
mov rcx, qword [rsp + 0x20]
mov qword [0x1801fa970], rcx
test rcx, rcx
je 0x18010a4a2
mov rax, r14
or rax, rcx
shr rax, 0x20
je 0x18010a316
mov rax, r14
xor edx, edx
div rcx
jmp 0x18010a31d
mov eax, r14d
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18010a341
xor edx, edx
div rcx
mov r8, rax
jmp 0x18010a348
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rcx, r8
shr rcx, 9
movabs r14, 0x44b82fa09b5a53
mov rax, rcx
mul r14
mov r9, rdx
shr r9, 0xb
add r9, rbx
jb 0x18010a39a
mov rax, rcx
mul r14
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
add r8d, edi
cmp r8d, 0x3b9aca00
jb 0x18010a464
inc r9
jne 0x18010a494
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18010a49d
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x1801fa970]
test rcx, rcx
jne 0x18010a3f8
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18010a49d
mov rcx, qword [rsp + 0x20]
mov qword [0x1801fa970], rcx
test rcx, rcx
je 0x18010a4a2
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x18010a40e
mov rax, rdi
xor edx, edx
div rcx
jmp 0x18010a414
mov eax, edi
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18010a438
xor edx, edx
div rcx
mov r8, rax
jmp 0x18010a43f
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
mul r14
mov r9, rdx
shr r9, 0xb
imul eax, r9d, 0x3b9aca00
sub r8d, eax
add r9, 0x38640900
mov eax, r8d
shr eax, 9
imul rax, rax, 0x44b83
shr rax, 0x27
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
mov rdx, r9
call fcn.180109aa0
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
add r8d, 0xc4653600
jmp 0x18010a464
call sub.kernel32.dll_GetLastError
ud2
Function at 0x18011cad0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x18011cb05
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x18011cb0a
call fcn.1800f8c60
mov ecx, dword [0x1801fa9d4]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0xa0], 1
mov qword [rcx + 0xa8], rax
mov qword [rcx + 0xb0], rdx
add rsp, 0x38
ret
Function at 0x18012ce40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x18012cf1d
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x18012cf2e
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012cd40