joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010dc40
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 0x14010dc9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14010dc9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14010dcb6
cmp eax, 0x42
jne 0x14010dc9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14010dd66
cmp byte [r9 + r11], 0x5f
jne 0x14010dd66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14010ddce
mov rcx, rsi
xor edx, edx
call fcn.140109360
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.140109360
test al, al
jne 0x14010de61
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14010dcf2
lea rdx, [0x1402cd152]
mov r8d, 1
call fcn.14005f820
test al, al
jne 0x14010de61
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14010dcaa
xor r14d, r14d
lea rbx, [0x1402cd508]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14010dd24
cmp byte [rax + rcx], 0x45
je 0x14010de83
sub r14, 1
jb 0x14010dd49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14010dd49
mov r8d, 2
mov rdx, rbx
call fcn.14005f820
test al, al
jne 0x14010de61
mov rcx, rsi
call fcn.14010ac70
test al, al
jne 0x14010de61
mov rax, qword [rsi]
test rax, rax
jne 0x14010dd10
jmp 0x14010dcaa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14010de28
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14010ddc2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14010ddac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14010dd9b
add dl, 0xa9
jmp 0x14010ddaa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14010de28
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14010de28
movzx edx, bl
add rax, rdx
jae 0x14010dd70
jmp 0x14010de28
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14010de28
cmp rax, rcx
jae 0x14010de25
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14010de7b
cmp qword [rsi + 0x20], 0
je 0x14010de74
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.14010dc40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14010dcac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14010de69
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1402cd4c8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14005f820
test al, al
je 0x14010de69
mov dil, 2
jmp 0x14010dcaa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14010dcaa
mov dil, 1
xor r8d, r8d
jmp 0x14010de2a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14010dcaa
Function at 0x140110db9
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 0x140110e0e
mov edx, dword [rcx + 0x28]
mov dword [rbp - 8], edx
mov qword [rbp], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x140110e47
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x140110e40
xor r9d, r9d
lea r10, [0x140300560]
xor r8d, r8d
movzx r11d, byte [rax + r9]
or r8d, dword [r10 + r11*4]
inc r9
cmp rdx, r9
jne 0x140110e2d
jmp 0x140110e43
xor r8d, r8d
mov dword [rbp + 8], r8d
mov r14, qword [rcx + 0x10]
test r14, r14
mov qword [rbp + 0x60], r14
je 0x140110ea3
xor esi, esi
mov rax, r14
shr rax, 0x3c
sete al
jne 0x140110f58
mov rbx, qword [rcx]
lea rdi, [r14*8]
mov sil, al
shl rsi, 3
mov rcx, rsi
mov rdx, rdi
call fcn.14006b2fb
test rax, rax
je 0x140110f5f
xor edx, edx
mov rcx, qword [rbx + rdx*8]
mov qword [rax + rdx*8], rcx
inc rdx
cmp r14, rdx
jne 0x140110e8e
mov edx, r14d
jmp 0x140110ea8
xor edx, edx
push 8
pop rax
lea rcx, [rbp - 0x30]
mov dword [rcx + 4], edx
mov qword [rbp + 0x58], rax
mov qword [rcx + 8], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
and qword [rsp + 0x40], 0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
push 2
pop r8
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
test eax, eax
je 0x140110f00
shl rsi, 0x20
or rsi, 2
push 1
pop rdi
mov rdx, qword [rbp + 0x60]
jmp 0x140110f3b
movaps xmm0, xmmword [rbp + 0x40]
push 1
pop rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
movups xmmword [rbp + 0x30], xmm0
push 8
pop rcx
push 0x20
pop rdx
call fcn.14006b2fb
test rax, rax
mov rdx, qword [rbp + 0x60]
je 0x140110f6c
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
mov rcx, qword [rbp + 0x58]
call fcn.14015147a
mov rax, rdi
mov rdx, rsi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.14005b2d0
ud2
mov rcx, rsi
mov rdx, rdi
call fcn.140281350
ud2
push 8
pop rcx
push 0x20
pop rdx
call fcn.140281350
ud2

Function at 0x140111743
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and 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 0x14011176d
mov rdx, qword [rsp + 0x20]
jmp 0x140111775
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x140116dad
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 qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140116dda
xor eax, eax
jmp 0x140116ddf
call fcn.1400958d8
nop
add rsp, 0x38
ret
Function at 0x140119930
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1402d43c0]
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 0x1401199a3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1401199da
test eax, eax
js 0x1401199b4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401199cd
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, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1402d4420]
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.140117970
mov rcx, rax
call fcn.140117ab0
mov ecx, 7
int 0x29
ud2
Function at 0x14011ceb0
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 0x14011cee0
test ecx, ecx
jne 0x14011cf30
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14011ceec
test ecx, ecx
jne 0x14011cf30
mov rcx, rdi
call fcn.14011cd90
movzx eax, al
test bpl, bpl
jne 0x14011cf37
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14011cf23.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14011d0a8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14011cf23.2
xor eax, eax
test bpl, bpl
je 0x14011cefc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14011d089
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14011cf6a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14011cfe9
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 0x14011cfb0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14011cfcb
inc rax
dec rdi
cmp rax, 1
jne 0x14011cf90
jmp 0x14011cfe9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14011cfcb
cmp ebx, 0x5c
je 0x14011cfcb
inc rax
dec rdi
cmp rax, 1
jne 0x14011cfb0
jmp 0x14011cfe9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14011d097
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14011d013
mov al, 9
cmp rdx, 2
je 0x14011d017
cmp rdx, 1
jne 0x14011d027
cmp byte [r8], 0x2e
jne 0x14011d027
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14011d027
mov al, 0xa
jmp 0x14011d027
cmp byte [r8], 0x2e
jne 0x14011d027
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
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.0x14011cf23.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.0x14011cf23.2
mov ecx, 2
jmp case.0x14011cf23.2
lea r8, str.library_std_srcpath.rs
call fcn.140281760
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140281760
ud2
Function at 0x140121250
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1402d43c0]
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 0x1401212bc
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1401212cb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140121303
cmp eax, 0x103
je 0x14012130d
test eax, eax
js 0x1401212e8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140121303
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, [0x1402d4420]
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.140117970
mov rcx, rax
call fcn.140117ab0
mov ecx, 7
int 0x29
ud2
Function at 0x140122000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14012205c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x140122150
test r15w, r15w
je 0x14012205c
cmp r15w, 0x2e
jne 0x140122150
test r12w, r12w
jne 0x140122150
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x140122135
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x1401220b1
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x140122135
cmp word [rsp + 0xac], 0x2e
jne 0x1401220da
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1401220a0
cmp ax, 0x2e
jne 0x1401220da
cmp word [rsp + 0xb0], 0
je 0x1401220a0
lock inc qword [r14]
jle 0x140122239
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x14012217b
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x1401221c7
mov qword [rsi], 0
jmp 0x140122227
lock inc qword [r14]
jle 0x140122239
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1401221da
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2

Function at 0x140123210
Capabilities:
Create directory

Disassembly:
test cl, cl
je 0x14012321f
mov rcx, rdx
mov rdx, r8
jmp fcn.1401232e0
mov rcx, rdx
mov rdx, r8
jmp fcn.140123230
Function at 0x140123230
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14011a590
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1401232d5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140121370
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1401232d5
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x1401232b0
test rsi, rsi
je 0x1401232ac
mov edx, 2
mov rcx, rdi
call fcn.14005d7f0
xor esi, esi
jmp 0x1401232d5
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1401232d2
mov edx, 2
mov rcx, rdi
call fcn.14005d7f0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14012ee40
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.14011a590
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14012eeb6
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.14012eff0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14012eec4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012eee4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14012eed5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.14011a780
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 0x14012eed5
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.14005d7f0
Function at 0x140130c70
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 [0x14036f2c8]
mov ecx, 0x10
mov edx, 8
call fcn.14005d760
test rax, rax
je 0x140130d47
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401311e0]
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 0x140130d39
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
je 0x140130d16
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14005d7f0
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.14005d7f0
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.140281350
ud2
Function at 0x1401316d0
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.14027fdb0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r14
lea r15, [0x1401277d0]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1401318c1
mov r12, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfe8], 0
je 0x140131797
cmp dword [rbp + 0xfec], 0
jne 0x1401318d6
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x1401318d6
cmp eax, 0x1000
ja 0x140131921
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x140131906
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x1401318c9
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfe8], 0
je 0x140131840
cmp dword [rbp + 0xfec], 0
jne 0x1401318cf
mov eax, dword [rbp + 0xff0]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x1401317e0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x140131797
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1401318d6
call qword [sym.imp.kernel32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
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, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.140281ae0
jmp 0x14013193c
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.1402817e0
ud2
Function at 0x1401319d0
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 0x140131a13
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.14011e320]
mov qword [rbp - 0x28], rax
lea rax, [0x1402d48d8]
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.1402816a0
ud2

Function at 0x1401337e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401338e7
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140133818
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401338d0
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401338b2
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14013386e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14013388b
jmp 0x140133880
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140133886
cmp eax, 0x6d
jne 0x1401338a2
mov byte [rsi + 1], 0
jmp 0x140133896
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140133898
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140285360
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140133825
mov r8d, 0x10
mov rcx, rbx
call fcn.140285360
mov rax, qword [rbx + 8]
jmp 0x140133818
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140285780
ud2