joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016ac10
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 sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x14016ac46
xor r15d, r15d
jmp 0x14016acb0
mov rbx, qword [rsp + 0x28]
mov r14, qword [rbx + 8]
mov edi, dword [rbx + 0x10]
test rdi, rdi
je 0x14016ac94
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x14016ac7e
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14016ac90
mov rcx, rax
mov qword [0x1402d9150], rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapAlloc
mov r15, rax
test rax, rax
jne 0x14016ac9a
ud2
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call sub.crypt32.dll_CertFreeCertificateContext
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 8], r15
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14016d670
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14016d6b2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14016d6ba
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14016d6cb
jmp 0x14016d6e2
xor r10d, r10d
jmp 0x14016d76d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14016d6e2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14016d6f9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14016d719
add r11, r8
jmp 0x14016d84a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14016d7e2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14016d790
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14016d800
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14016d812
jmp 0x14016d82c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14016d82c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14016d846
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14016dc90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x14016dd26
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x1401fd250]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x1401fd260]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
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.14016d670
test rdi, rdi
je 0x14016ddb5
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14016ddce
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x14016dec6
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x14016df48
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x14016ded3
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 0x14016dd90
cmp r9, 8
jae 0x14016dedc
jmp 0x14016df48
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14016d670
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 0x14016df48
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x14016df48
mov r8, rcx
cmp r9, 8
jb 0x14016df48
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 0x14016dee0
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14019bb60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rdi, rcx
mov ecx, dword [0x1401f51b0]
test ecx, ecx
je 0x14019bd33
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14019bb95
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x14019bd68
mov ecx, dword [0x1401f51b0]
test ecx, ecx
je 0x14019bd6e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14019bd8b
mov rsi, rax
test rax, rax
jne 0x14019bc2a
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x14019bbe7
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14019bdad
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x60
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14019bdad
mov rsi, rax
lea rax, [0x1401f5198]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401f51b0]
test ecx, ecx
je 0x14019bd9a
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
lea rax, [rsi + 8]
test rdi, rdi
je 0x14019bc4f
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x1402a2e70]
cmovne rcx, rdx
jmp 0x14019bc56
lea rcx, [0x1402a2e70]
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rax + 0x50]
mov qword [rsp + 0xc0], rcx
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0xa0], xmm3
movaps xmmword [rsp + 0x90], xmm2
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsi + 8], 1
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x40], xmm3
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x70], 0
je 0x14019bd68
mov rax, qword [rsp + 0x80]
cmp rax, 2
je 0x14019bd68
lea rcx, [rsp + 0x88]
test rax, rax
je 0x14019bd55
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x14019bd68
call fcn.14014d110
jmp 0x14019bd68
lea rcx, [0x1401f5198]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14019bb87
jmp 0x14019bb95
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x14019bd68
call fcn.140062fd0
add rsi, 0x10
jmp 0x14019bd8d
lea rcx, [0x1401f5198]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14019bbb4
xor esi, esi
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, [0x1401f5198]
call fcn.1401c6a80
mov ecx, eax
jmp 0x14019bc22
ud2
Function at 0x1401a15f0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov r8d, 0xb
mov rdx, rax
call fcn.140174310
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401a1657
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401a1794
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x800
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401a1794
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x800
mov qword [rsp + 0x48], 0
mov r14, qword [rsp + 0x50]
lea rbp, [rsp + 0x30]
lea r15, [rsp + 0x34]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
sub r12, r13
nop word cs:[rax + rax]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1401a16f0
mov r8d, dword [rsp + 0x30]
cmp r12, r8
jae 0x1401a16b0
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140089e50
mov rbx, qword [rsp + 0x38]
jmp 0x1401a1696
test eax, eax
jne 0x1401a1721
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1401a1776
movabs rax, 0xde00000002
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x40], 0
jne 0x1401a1738
jmp 0x1401a1749
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x40], 0
je 0x1401a1749
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0x58], 0
je 0x1401a1764
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1402d9150]
xor edx, edx
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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
jne 0x1401a1751
jmp 0x1401a1764
ud2
Function at 0x1401b9980
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r14d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov esi, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r14, 0x201
jae 0x1401b9a00
jmp 0x1401b99ef
jae 0x1401b9abe
cmp r14, 0x201
jae 0x1401b9a00
mov ebx, 0x200
lea r15, [rsp + 0x58]
mov r13, r14
jmp 0x1401b9a31
sub r14, r12
sub rdi, r12
cmp rdi, r14
jb 0x1401b9a95
mov rdi, qword [rsp + 0x30]
cmp rdi, rsi
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x50], r12
mov rbx, r12
mov r15, qword [rsp + 0x28]
mov r13, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r15
mov edx, r13d
call sub.kernel32.dll_GetSystemDirectoryW
mov ebp, eax
test eax, eax
jne 0x1401b9a56
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1401b9b08
mov r14d, ebp
cmp r13, r14
jne 0x1401b99e0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401b9b04
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
mov esi, 0xffffffff
cmovae r13, rax
mov r14, r13
cmp r14, 0x201
jb 0x1401b99ef
jmp 0x1401b9a00
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r14
call fcn.1401b5cb0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x1401b9a0f
cmp rbx, r14
jb 0x1401b9b04
test ebp, ebp
je 0x1401b9b2f
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401b9aee
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401b9b04
mov rcx, rax
mov qword [0x1402d9150], rax
lea rbx, [r14 + r14]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapAlloc
mov r12, rax
test rax, rax
jne 0x1401b9b37
ud2
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 8], rax
mov qword [rcx], 0
cmp qword [rsp + 0x30], 0
jne 0x1401b9b5d
jmp 0x1401b9b70
mov r12d, 2
xor ebx, ebx
mov rcx, r12
mov rdx, r15
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x38]
mov qword [rax], r12
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
cmp qword [rsp + 0x30], 0
je 0x1401b9b70
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401b9b90
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r12d, r12d
cmp r8, 0x201
jae 0x1401b9c10
jmp 0x1401b9bff
jae 0x1401b9cb6
cmp r8, 0x201
jae 0x1401b9c10
mov edi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x1401b9c3b
sub r8, r12
sub r14, r12
cmp r14, r8
jb 0x1401b9c95
cmp rbx, rsi
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rsp + 0x50], r12
mov r14, rbx
mov rdi, r12
mov r13, qword [rsp + 0x20]
mov rbp, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r13
mov edx, ebp
call sub.kernel32.dll_GetSystemDirectoryW
mov r15d, eax
test eax, eax
jne 0x1401b9c60
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1401b9d6a
mov r8d, r15d
cmp rbp, r8
jne 0x1401b9bf0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401b9d8f
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x1401b9bff
jmp 0x1401b9c10
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1401b5cb0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x48]
jmp 0x1401b9c1b
cmp rdi, r8
jb 0x1401b9d8f
lea r15, [rsp + 0x58]
mov rcx, r15
mov rdx, r13
call fcn.1401c8d80
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r15
call fcn.1401c74e0
mov rax, qword [rsp + 0x38]
cmp byte [rax], 0
mov rdi, qword [rsp + 0x28]
jne 0x1401b9d09
lea rdx, str.exeNULcmd.exemaximum_number_of_ProcThreadAttributes_exceeded
lea rcx, [rsp + 0x58]
mov r8d, 3
call fcn.1401c8830
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.1401be7c0
cmp qword [rsp + 0x60], 0
je 0x1401b9d38
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
xor eax, eax
mov qword [rdi], rax
test rbx, rbx
je 0x1401b9d55
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov eax, 1
mov qword [rdi], rax
test rbx, rbx
jne 0x1401b9d42
jmp 0x1401b9d55
ud2
Function at 0x1401ba090
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r12d, r12d
cmp r8, 0x201
jae 0x1401ba110
jmp 0x1401ba0ff
jae 0x1401ba1b6
cmp r8, 0x201
jae 0x1401ba110
mov edi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x1401ba13b
sub r8, r12
sub r14, r12
cmp r14, r8
jb 0x1401ba195
cmp rbx, rsi
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rsp + 0x50], r12
mov r14, rbx
mov rdi, r12
mov r13, qword [rsp + 0x20]
mov rbp, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r13
mov edx, ebp
call sub.kernel32.dll_GetWindowsDirectoryW
mov r15d, eax
test eax, eax
jne 0x1401ba160
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1401ba26a
mov r8d, r15d
cmp rbp, r8
jne 0x1401ba0f0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401ba28f
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x1401ba0ff
jmp 0x1401ba110
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1401b5cb0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x48]
jmp 0x1401ba11b
cmp rdi, r8
jb 0x1401ba28f
lea r15, [rsp + 0x58]
mov rcx, r15
mov rdx, r13
call fcn.1401c8d80
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r15
call fcn.1401c74e0
mov rax, qword [rsp + 0x38]
cmp byte [rax], 0
mov rdi, qword [rsp + 0x28]
jne 0x1401ba209
lea rdx, str.exeNULcmd.exemaximum_number_of_ProcThreadAttributes_exceeded
lea rcx, [rsp + 0x58]
mov r8d, 3
call fcn.1401c8830
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.1401be7c0
cmp qword [rsp + 0x60], 0
je 0x1401ba238
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
xor eax, eax
mov qword [rdi], rax
test rbx, rbx
je 0x1401ba255
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov eax, 1
mov qword [rdi], rax
test rbx, rbx
jne 0x1401ba242
jmp 0x1401ba255
ud2
Function at 0x1401be7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1401b97d0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1401be841
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1401c5830
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1401be83c
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1401be8b4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1401be8a2
mov rax, qword [rsp + 0x30]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1401be89b
test rcx, rcx
je 0x1401be89b
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1401be88a
cmp qword [r14 + 0x10], 0x11
jb 0x1401be879
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x1401be8a2
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.kernel32.dll_HeapFree
Function at 0x1401c0840
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1402d9120]
cmp rax, 3
jne 0x1401c09fb
cmp rbx, 0x17f
ja 0x1401c0a0d
lea r15, [rsp + 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x60], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x1401c08b8
xor edx, edx
nop
cmp byte [rsp + rdx + 0x60], 0
je 0x1401c0964
inc rdx
cmp rax, rdx
jne 0x1401c08a0
jmp 0x1401c09c2
lea rcx, [rsp + 0x67]
and rcx, 0xfffffffffffffff8
sub rcx, r15
je 0x1401c08ee
je 0x1401c08ee
xor edx, edx
nop word [rax + rax]
cmp byte [rsp + rdx + 0x60], 0
je 0x1401c0964
inc rdx
cmp rcx, rdx
jne 0x1401c08d0
lea rdx, [rbx - 0xf]
cmp rcx, rdx
jbe 0x1401c08f4
jmp 0x1401c093e
lea rdx, [rbx - 0xf]
xor ecx, ecx
movdqa xmm0, xmmword [0x1401fda10]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rsp + rcx + 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1401c093e
add rcx, 0x10
cmp rcx, rdx
jbe 0x1401c0910
sub rax, rcx
je 0x1401c09c2
lea r8, [rsp + rcx]
add r8, 0x60
xor edx, edx
nop dword [rax]
cmp byte [r8 + rdx], 0
je 0x1401c0961
inc rdx
cmp rax, rdx
jne 0x1401c0950
jmp 0x1401c09c2
add rdx, rcx
cmp rdx, rbx
jne 0x1401c09c2
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 + 0x60]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1401c09d6
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1401c09e9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401c09ec
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
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401b9710
cmp rbx, 0x17f
jbe 0x1401c087a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401c0a30