joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b5486
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, rdx
add rdx, 0x28
cmp qword [rax + 0x20], 0
je 0x1400b54d0
cmp qword [rax + 0x58], 0xffffffffffffffff
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov r10, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
je 0x1400b55cc
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x1400b55db
mov bl, byte [rax + 0x3a]
mov r10, qword [rax]
mov r9, qword [rax + 8]
mov r8, qword [rax + 0x28]
mov dil, byte [rax + 0x38]
xor r11d, r11d
test bl, bl
jne 0x1400b5601
mov esi, edi
xor sil, 1
mov byte [rax + 0x38], sil
test r8, r8
je 0x1400b5513
cmp r9, r8
jbe 0x1400b550d
cmp byte [r10 + r8], 0xbf
jg 0x1400b5513
jmp 0x1400b5613
jne 0x1400b5613
cmp r8, r9
je 0x1400b55e2
mov r15b, byte [r10 + r8]
movzx ebp, r15b
test bpl, bpl
jns 0x1400b5589
mov r14d, ebp
and r14d, 0x1f
movzx r12d, byte [r10 + r8 + 1]
and r12d, 0x3f
cmp bpl, 0xdf
jbe 0x1400b5576
movzx ebp, byte [r10 + r8 + 2]
shl r12d, 6
and ebp, 0x3f
or ebp, r12d
cmp r15b, 0xf0
jb 0x1400b5582
movzx r15d, byte [r10 + r8 + 3]
and r14d, 7
shl r14d, 0x12
shl ebp, 6
and r15d, 0x3f
or r15d, ebp
or r15d, r14d
mov ebp, r15d
jmp 0x1400b5589
shl r14d, 6
or r14d, r12d
mov ebp, r14d
jmp 0x1400b5589
shl r14d, 0xc
or ebp, r14d
test dil, dil
jne 0x1400b55f0
cmp ebp, 0x110000
je 0x1400b55e7
mov edi, 1
cmp ebp, 0x80
jb 0x1400b55bf
mov edi, 2
cmp ebp, 0x800
jb 0x1400b55bf
cmp ebp, 0x10000
mov edi, 4
sbb rdi, 0
add r8, rdi
mov qword [rdx], r8
mov edi, esi
jmp 0x1400b54e5
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
call fcn.1400b562c
jmp 0x1400b5604
test dil, dil
jne 0x1400b55f3
mov byte [rax + 0x3a], 1
xor r11d, r11d
jmp 0x1400b5601
mov r9, r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r9
mov r11d, 1
mov qword [rcx], r11
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, r10
mov rdx, r9
call fcn.140109740
ud2
Function at 0x1400be9cd
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rbx, rdx
mov rsi, rcx
lea rax, [r8 + 0xb]
lea r14, [rsp + 0x38]
mov qword [r14], rax
mov qword [r14 + 8], r8
mov word [r14 + 0x10], 0
mov dword [r14 + 0x18], 1
lea r12, [rsp + 0x58]
mov rcx, r12
mov rdx, r14
call fcn.1400c8058
lea r13, [rsp + 0x30]
mov dword [r13], 0x800
lea r15, [rsp + 0x34]
mov dword [r15], 0
mov ecx, 0x800
call fcn.1400674de
mov rdi, rdx
mov qword [r14], rax
mov qword [r14 + 8], rdx
mov qword [r14 + 0x10], 0
mov r12, qword [r12 + 8]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov rdx, r12
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400bea93
mov r8d, dword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
sub rax, rdx
cmp rax, r8
jae 0x1400bea4b
mov rcx, r14
call fcn.140108fdd
mov rdi, qword [rsp + 0x40]
jmp 0x1400bea4b
test eax, eax
jne 0x1400beab5
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1400beae0
movabs rax, 0xde00000002
jmp 0x1400beabd
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x38], 0
je 0x1400beaf4
mov rcx, qword [0x1401849b0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400beaf4
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
cmp qword [rsp + 0x58], 0
je 0x1400beb10
mov r8, qword [rsp + 0x60]
mov rcx, qword [0x1401849b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400c5c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400c5ceb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400c5ceb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400c5d06
cmp eax, 0x42
jne 0x1400c5ceb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400c5db6
cmp byte [r9 + r11], 0x5f
jne 0x1400c5db6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400c5e1e
mov rcx, rsi
xor edx, edx
call fcn.1400c1740
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1400c1740
test al, al
jne 0x1400c5eb1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400c5d42
lea rdx, [0x14014a57b]
mov r8d, 1
call fcn.1400319c0
test al, al
jne 0x1400c5eb1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400c5cfa
xor r14d, r14d
lea rbx, str.___JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400c5d74
cmp byte [rax + rcx], 0x45
je 0x1400c5ed3
sub r14, 1
jb 0x1400c5d99
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400c5d99
mov r8d, 2
mov rdx, rbx
call fcn.1400319c0
test al, al
jne 0x1400c5eb1
mov rcx, rsi
call fcn.1400c5ef0
test al, al
jne 0x1400c5eb1
mov rax, qword [rsi]
test rax, rax
jne 0x1400c5d60
jmp 0x1400c5cfa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400c5e78
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400c5e12
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400c5dfc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400c5deb
add dl, 0xa9
jmp 0x1400c5dfa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400c5e78
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400c5e78
movzx edx, bl
add rax, rdx
jae 0x1400c5dc0
jmp 0x1400c5e78
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400c5e78
cmp rax, rcx
jae 0x1400c5e75
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400c5ecb
cmp qword [rsi + 0x20], 0
je 0x1400c5edf
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400c5c90
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400c5cfc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400c5eb9
lea rax, [0x14014a911]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400319c0
test al, al
je 0x1400c5eb9
mov dil, 2
jmp 0x1400c5cfa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400c5cfa
mov dil, 1
xor r8d, r8d
jmp 0x1400c5e7a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400c5cfa
xor edi, edi
jmp 0x1400c5cfa
Function at 0x1400c85fb
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
mov dword [rsp + 0x88], 4
mov dword [rsp + 0xd0], 0x400010
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400c8660
mov edx, dword [rcx + 0x10]
mov dword [rsp + 0xb0], edx
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1400c869d
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x1400c8692
xor r9d, r9d
lea r10, [0x1401794f0]
xor r8d, r8d
movzx r11d, byte [rax + r9]
or r8d, dword [r10 + r11*4]
inc r9
cmp rdx, r9
jne 0x1400c867f
jmp 0x1400c8695
xor r8d, r8d
mov dword [rsp + 0xc0], r8d
mov r14, qword [rcx + 0x40]
test r14, r14
je 0x1400c86dd
xor edi, edi
mov rax, r14
shr rax, 0x3c
sete al
jne 0x1400c8867
mov rbx, qword [rcx + 0x38]
lea rsi, [r14*8]
mov dil, al
shl rdi, 3
test rsi, rsi
je 0x1400c86fd
mov rcx, rsi
mov rdx, rdi
call fcn.14002d260
jmp 0x1400c8700
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 8
mov qword [rsp + 0x60], 0
mov eax, 8
xor ecx, ecx
jmp 0x1400c8734
mov rax, rdi
test rax, rax
je 0x1400c886e
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
xor ecx, ecx
mov rdx, qword [rbx + rcx*8]
mov qword [rax + rcx*8], rdx
inc rcx
add rsi, 0xfffffffffffffff8
jne 0x1400c871e
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x8c], ecx
mov qword [rsp + 0x90], rax
lea rax, [0x140184850]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140184868]
cmp rax, 3
jne 0x1400c8826
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax + 8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1400c87bc
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov edi, 1
jmp 0x1400c87f7
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov ecx, 0x20
mov edx, 8
call fcn.14002d260
test rax, rax
je 0x1400c8876
mov rsi, rax
mov eax, 1
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rbx
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x1400c8813
mov r8, qword [rsp + 0x58]
mov rcx, qword [0x1401849b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
mov rdx, rsi
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0xd8]
mov qword [rcx], rax
lea r8, [rsp + 0xe0]
mov qword [r8], rcx
lea rax, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001flazy_static_1.4.0_srcinline_lazy.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140184868]
lea r9, [0x14014add8]
xor edx, edx
call fcn.14010f840
jmp 0x1400c8765
call fcn.14002d420
ud2
mov rcx, rsi
mov rdx, rdi
jmp 0x1400c8880
mov ecx, 0x20
mov edx, 8
call fcn.140108e10
ud2
Function at 0x1400c8fb1
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400c8fde
mov rdx, qword [rsp + 0x20]
jmp 0x1400c8fe6
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400cf5a9
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400cf5d5
xor eax, eax
jmp 0x1400cf5e2
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400d1b70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
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 + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400d1be9
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x1400d1c20
test eax, eax
js 0x1400d1bfa
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400d1c13
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, [0x14014f2d0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.Tried_to_shrink_to_a_larger_capacity
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x140031d20]
mov qword [rsp + 0x70], rax
lea rax, [0x14014d868]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400cfd20
mov rcx, rax
call fcn.1400cfe80
mov ecx, 7
int 0x29
ud2
Function at 0x1400d5040
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 0x1400d5070
test ecx, ecx
jne 0x1400d50c0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400d507c
test ecx, ecx
jne 0x1400d50c0
mov rcx, rdi
call fcn.1400d4f20
movzx eax, al
test bpl, bpl
jne 0x1400d50c7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400d50b3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400d5238]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400d50b3.2
xor eax, eax
test bpl, bpl
je 0x1400d508c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400d5219
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400d50fa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400d5179
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400d5140
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400d515b
inc rax
dec rdi
cmp rax, 1
jne 0x1400d5120
jmp 0x1400d5179
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400d515b
cmp ebx, 0x5c
je 0x1400d515b
inc rax
dec rdi
cmp rax, 1
jne 0x1400d5140
jmp 0x1400d5179
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400d5227
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400d51a3
mov al, 9
cmp rdx, 2
je 0x1400d51a7
cmp rdx, 1
jne 0x1400d51b7
cmp byte [r8], 0x2e
jne 0x1400d51b7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400d51b7
mov al, 0xa
jmp 0x1400d51b7
cmp byte [r8], 0x2e
jne 0x1400d51b7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400d50b3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400d50b3.2
mov ecx, 2
jmp case.0x1400d50b3.2
lea r8, str.library_std_srcpath.rs
call fcn.140109230
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140109230
ud2
Function at 0x1400dbb10
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1401849b8]
cmp rax, 3
jne 0x1400dbc0d
cmp rbx, 0x17f
ja 0x1400dbc1f
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140033770
cmp qword [rsp + 0x28], 0
je 0x1400dbb91
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400dbbfe
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400dbbe8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400dbbfb
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140110380
cmp rbx, 0x17f
jbe 0x1400dbb4a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x1401103e0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14002d540
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x140110440
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x1401104cf
mov rcx, qword [0x1401849b0]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14011049f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1401104b2
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x1401104cf
mov rcx, qword [0x1401849b0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400dc1d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
test dx, dx
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400dc220
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400dc28f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400dc234
cmp eax, 0x2739
jne 0x1400dc27c
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400dc276
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1400dc297
mov qword [rsi + 8], rdi
jmp 0x1400dc217
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]

Function at 0x1400dc2d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400dc345
movsxd r8, dword [rsp + 0x2c]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400dc060
jmp 0x1400dc35c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
Function at 0x1400e3790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1400e3660
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1400e37e3
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e385c
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400e3851
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1400e3849
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x18]
je 0x1400e3837
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x1400e3828
mov r8, qword [r8 - 8]
mov rcx, qword [0x1401849b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1401849b0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1400e3851
mov rcx, qword [0x1401849b0]
xor edx, edx
mov r8, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x1400e55f0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14002d260
test rax, rax
je 0x1400e56d7
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e5ad0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400e56c9
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rbp - 0x10], r14
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400e56a3
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x1400e5694
mov r8, qword [r8 - 8]
mov rcx, qword [0x1401849b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1401849b0]
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 edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 0x10
mov edx, 8
call fcn.140108e10
ud2