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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x198]
mov rdx, qword [rdx + 0x190]
cmp rcx, rdx
ja 0x14011e2ff
mov rax, qword [rdi + 0x180]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], rax
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
push 0x24448d48
sub byte [rax - 0x77], cl
and al, 0x70
lea r8, str.C:UsersFokus.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:UsersFokus.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
Function at 0x140129690
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x8f8
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x860], xmm9
movdqa xmmword [rbp + 0x850], xmm8
movaps xmmword [rbp + 0x840], xmm7
movdqa xmmword [rbp + 0x830], xmm6
mov qword [rbp + 0x828], 0xfffffffffffffffe
mov r15, rdx
mov qword [rbp + 0x6c0], rcx
mov rcx, qword [rdx + 0x130]
test rcx, rcx
mov qword [rbp + 0x4e8], r8
je 0x14012970b
mov rdx, r8
call fcn.140185fb0
mov r8, qword [rbp + 0x4e8]
test al, al
je 0x14012c37f
lea rax, [r15 + 0x20]
mov qword [rbp + 0x4f0], rax
lea rax, [r15 + 0xe0]
lea eax, [rdi + 0xe0]
mov word [rbp + 0x738], 1
mov qword [rbp + 0x728], 1
lea rax, [0x1401e8960]
mov qword [rbp + 0x730], rax
mov dword [rbp + 0x6d0], 2
movzx eax, byte [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x14012c3d7
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14012d1bf
mov rcx, rax
mov qword [0x14026d258], rax
mov r8d, 0x70
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14012d1bf
mov rsi, rax
movups xmm0, xmmword [rbp + 0x730]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rbp + 0x720]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x710]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x6d0]
movdqu xmm1, xmmword [rbp + 0x6e0]
movups xmm2, xmmword [rbp + 0x6f0]
movups xmm3, xmmword [rbp + 0x700]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rbp + 0x590], rax
mov rbx, qword [r15 + 0x98]
mov rdi, qword [r15 + 0xa8]
test rdi, rdi
je 0x14012c4ac
js 0x14012d271
movzx eax, byte [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x14012c487
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14012c49a
mov rcx, rax
mov qword [0x14026d258], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x14012c4b2
mov ecx, 1
mov rdx, rdi
call fcn.140194470
jmp 0x14012d37c
mov r14d, 1
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
movdqu xmm6, xmmword [r15 + 0xb4]
movups xmm0, xmmword [r15 + 0xc8]
movzx eax, byte [r15 + 0xd8]
mov byte [rbp + 0x6e0], al
jmp 0x14012c990
mov ecx, 8
mov edx, 0x70
call fcn.140194470
jmp 0x14012d37c
call fcn.14000e130
jmp 0x14012d37c
Function at 0x1401429e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x350
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2c0], 0xfffffffffffffffe
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140142a00
test al, 1
je 0x140142b01
test al, 2
jne 0x140142b1b
test al, 8
mov qword [rbp + 0x2b8], rcx
jne 0x140142a40
add rcx, 0x20
mov qword [rbp - 0x58], 4
lea rdx, [rbp - 0x58]
call fcn.140142d70
jmp 0x140142a65
test al, 0x10
je 0x140142a65
mov rcx, qword [rbp + 0x2b8]
mov rax, qword [rcx + 0x2e0]
test rax, rax
je 0x140142bbf
mov rcx, qword [rcx + 0x2e8]
call qword [rax + 0x10]
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401f5b08]
mov edx, 0x23
call fcn.1401949c0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401f5b48]
mov edx, 0x25
call fcn.1401949c0
ud2
lea rax, str.waker_missing
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
lea rax, [0x140219998]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
lea rdx, str.C:UsersFokus.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.34.0_src_runtime_taskcore.rs
lea rcx, [rbp - 0x58]
call fcn.140194800
ud2
Function at 0x140145100
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x350
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2c0], 0xfffffffffffffffe
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140145120
test al, 1
je 0x140145221
test al, 2
jne 0x14014523b
test al, 8
mov qword [rbp + 0x2b8], rcx
jne 0x140145160
add rcx, 0x20
mov qword [rbp - 0x58], 4
lea rdx, [rbp - 0x58]
call fcn.140142d70
jmp 0x140145185
test al, 0x10
je 0x140145185
mov rcx, qword [rbp + 0x2b8]
mov rax, qword [rcx + 0x2e0]
test rax, rax
je 0x1401452df
mov rcx, qword [rcx + 0x2e8]
call qword [rax + 0x10]
mov rdi, qword [rbp + 0x2b8]
lea rsi, [rdi + 0x20]
mov rcx, qword [rdi + 0x20]
mov rdx, rdi
call fcn.14017e230
cmp rax, 1
mov eax, 2
sbb rax, 0
mov qword [rbp + 0x2a0], rax
shl rax, 6
neg rax
lock xadd qword [rdi], rax
shr rax, 6
cmp rax, qword [rbp + 0x2a0]
jb 0x140145255
jne 0x140145215
mov rcx, rsi
call fcn.140141700
mov rax, qword [rbp + 0x2b8]
mov rax, qword [rax + 0x2e0]
test rax, rax
je 0x1401451fb
mov rcx, qword [rbp + 0x2b8]
mov rcx, qword [rcx + 0x2e8]
call qword [rax + 0x18]
mov rax, qword [rbp + 0x2b8]
mov r8, qword [rax - 8]
mov rcx, qword [0x14026d258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x350
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401f5b08]
mov edx, 0x23
call fcn.1401949c0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401f5b48]
mov edx, 0x25
call fcn.1401949c0
ud2
mov qword [rbp + 0x298], rax
lea rax, [rbp + 0x298]
mov qword [rbp + 0x278], rax
lea rax, [fcn.140011310]
mov qword [rbp + 0x280], rax
lea rcx, [rbp + 0x2a0]
mov qword [rbp + 0x288], rcx
mov qword [rbp + 0x290], rax
lea rax, str.current:___sub:___
mov qword [rbp + 0x248], rax
mov qword [rbp + 0x250], 2
mov qword [rbp + 0x268], 0
lea rax, [rbp + 0x278]
mov qword [rbp + 0x258], rax
mov qword [rbp + 0x260], 2
lea rdx, [0x1401f5b90]
lea rcx, [rbp + 0x248]
call fcn.140194800
ud2
lea rax, str.waker_missing
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
lea rax, [0x140219998]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
lea rdx, str.C:UsersFokus.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.34.0_src_runtime_taskcore.rs
lea rcx, [rbp - 0x58]
call fcn.140194800
ud2
Function at 0x140151f60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140011720
cmp rax, rcx
je 0x140151f85
cmp rdx, 4
jae 0x140151f88
xor eax, eax
xor r8d, r8d
jmp 0x140152020
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14019d700]
movdqa xmm3, xmmword [0x14019d710]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140151fb0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140152037
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140152020
ret
Function at 0x140152fb0
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 0x14015300b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14015300b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140153026
cmp eax, 0x42
jne 0x14015300b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1401530d6
cmp byte [r9 + r11], 0x5f
jne 0x1401530d6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14015313e
mov rcx, rsi
xor edx, edx
call fcn.14014e710
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.14014e710
test al, al
jne 0x1401531d1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140153062
lea rdx, [0x1401ef2c3]
mov r8d, 1
call fcn.140011b90
test al, al
jne 0x1401531d1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14015301a
xor r14d, r14d
lea rbx, [0x1401ef678]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140153094
cmp byte [rax + rcx], 0x45
je 0x1401531fa
sub r14, 1
jb 0x1401530b9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401530b9
mov r8d, 2
mov rdx, rbx
call fcn.140011b90
test al, al
jne 0x1401531d1
mov rcx, rsi
call fcn.14014ff70
test al, al
jne 0x1401531d1
mov rax, qword [rsi]
test rax, rax
jne 0x140153080
jmp 0x14015301a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140153198
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140153132
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14015311c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14015310b
add dl, 0xa9
jmp 0x14015311a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140153198
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140153198
movzx edx, bl
add rax, rdx
jae 0x1401530e0
jmp 0x140153198
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140153198
cmp rax, rcx
jae 0x140153195
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1401531d9
cmp qword [rsi + 0x20], 0
je 0x1401531f3
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.140152fb0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14015301c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401531e8
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1401ef638]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140011b90
test al, al
je 0x1401531e8
mov dil, 2
jmp 0x14015301a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1401531a3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14015301a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14015301a
Function at 0x1401554f0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x68], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x30], 4
mov dword [rbp + 0x18], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140155545
mov edx, dword [rcx + 0x28]
mov dword [rbp - 8], edx
mov qword [rbp], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x140155584
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x140155581
lea r9, [0x14021c730]
xor r10d, r10d
nop word cs:[rax + rax]
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x140155570
mov dword [rbp + 8], edx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
mov qword [rbp + 0x58], rbx
je 0x1401555f1
mov rdi, qword [rcx]
lea rsi, [rbx*8]
movzx eax, byte [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x1401555c8
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140155702
mov rcx, rax
mov qword [0x14026d258], rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140155702
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
jmp 0x1401555f9
xor eax, eax
mov r14d, 8
mov dword [rbp - 0x2c], eax
mov qword [rbp + 0x60], r14
mov qword [rbp - 0x28], r14
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
test eax, eax
je 0x140155685
shl rsi, 0x20
or rsi, 2
mov edi, 1
mov rbx, qword [rbp + 0x58]
mov r14, qword [rbp + 0x60]
test rbx, rbx
je 0x140155671
mov rcx, qword [0x14026d258]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rdi
mov rdx, rsi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp + 0x20], 1
mov qword [rbp + 0x28], 1
movaps xmm0, xmmword [rbp + 0x40]
movups xmmword [rbp + 0x30], xmm0
movzx eax, byte [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
mov rbx, qword [rbp + 0x58]
mov r14, qword [rbp + 0x60]
jne 0x1401556cd
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140155711
mov rcx, rax
mov qword [0x14026d258], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140155711
mov rsi, rax
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor edi, edi
test rbx, rbx
jne 0x14015565f
jmp 0x140155671
mov ecx, 8
mov rdx, rsi
call fcn.140194470
ud2
mov ecx, 8
mov edx, 0x20
call fcn.140194470
ud2
Function at 0x1401586d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401f2288]
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_NtWriteFile]
cmp eax, 0x103
jne 0x140158743
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14015877a
test eax, eax
js 0x140158754
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14015876d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1401f22f0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
lea eax, [rsp + 0x50]

Function at 0x14015d760
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
lea ebp, [rsp + 0x80]
movaps xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
invalid
invalid
dec dword [rax - 0x77]
invalid
lea rcx, [rbp - 0x60]
call fcn.1401590b0
invalid
mov ecx, 0x8b48ffff
invalid
invalid
mov qword [rbp + 0x3e0], rax
loopne 0x14015d7a5
add byte [rax], al
test rax, rax
je 0x14015d8e7
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3d8], rax
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x400], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14015d820
jmp 0x14015d80f
lea rcx, [rbp - 0x60]
Function at 0x14016ac80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1401590b0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14016acf6
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.14016aba0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14016ad04
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14016ad24
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14016ad15
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140159290
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14016ad15
mov rcx, qword [0x14026d258]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.kernel32.dll_HeapFree]
Function at 0x14016d110
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 r14, rdx
mov rsi, rcx
movzx eax, byte [0x14026d308]
mov rcx, qword [0x14026d258]
test rcx, rcx
jne 0x14016d15c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14016d22a
mov rcx, rax
mov qword [0x14026d258], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14016d22a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14016d6c0]
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 0x14016d21c
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14016d1f5
cmp qword [rax + 0x10], 0x11
jae 0x14016d1de
mov r8, qword [rbp - 0x20]
jmp 0x14016d1e6
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14026d258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14026d258]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.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 qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140194470
ud2
Function at 0x14016dbf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140193860
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x1401639e0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x14016ddde
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14016dcb7
cmp dword [rbp + 0xff0], 0
jne 0x14016ddf3
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14016ddf3
cmp ebx, 0x1000
ja 0x14016de37
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14016de23
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14016dde6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14016dd60
cmp dword [rbp + 0xff0], 0
jne 0x14016ddec
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14016dd00
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x14016dcb7
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x14016ddf3
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.140194bd0
jmp 0x14016de4b
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.140194940
ud2
Function at 0x14016dea0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14016dee3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14015e490]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140194800
ud2

Function at 0x1401739f0
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 0x140173a1b
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 [0x14026d260]
cmp rax, 3
jne 0x140173ba1
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 0x140173a91
cmp word [rbx], 0
je 0x140173b0c
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 0x140173b21
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140173aac
mov r14d, eax
cmp eax, 0x2726
jne 0x140173b90
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 0x140173b87
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140173a69
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x140173b90
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 + 0x34], r9w
mov word [rsp + 0x36], cx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140173b60
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140173a10
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 0x140173a10
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x140173a09
call fcn.14019b8d0
jmp 0x140173a2c