joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073150
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, qword [rcx]
mov qword [rbp - 8], rcx
mov r14, qword [rcx + 0x10]
mov r15d, 4
test r14, r14
mov qword [rbp - 0x18], rbx
je 0x1400731c2
mov rax, r14
shr rax, 0x3d
jne 0x1400732e7
lea rdi, [r14*4]
test rdi, rdi
je 0x1400731c2
movzx eax, byte [0x1401c6201]
mov edx, 4
mov rcx, rdi
call fcn.140003a20
test rax, rax
je 0x1400732ee
mov r15, rax
jmp 0x1400731c4
xor edi, edi
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rsi + 0x30]
movzx ecx, byte [rsi + 0x158]
shr r8, cl
test r8, r8
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r15
je 0x140073245
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x18]
and ecx, 0x3f
xor eax, eax
jmp 0x140073208
inc rax
cmp rax, r8
je 0x140073245
mov r9, rax
shl r9, cl
cmp rax, r14
je 0x1400732bf
mov edx, dword [r15 + rax*4]
cmp edx, r9d
je 0x140073200
mov r10d, edx
mov edx, edx
shr rdx, cl
cmp rdx, r14
jae 0x1400732ab
mov edx, dword [r15 + rdx*4]
cmp edx, r9d
jne 0x140073220
cmp rax, r14
jae 0x1400732d3
mov dword [rbx + rax*4], r10d
jmp 0x140073200
mov rdx, qword [rbp - 8]
lea r8, [rdx + 0x18]
mov rcx, rsi
call fcn.14001f550
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140073271
shl rdx, 2
mov r8d, 4
mov rcx, qword [rbp - 0x10]
call fcn.140003a30
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp - 0x18]
je 0x14007329d
shl rdx, 2
mov r8d, 4
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140003a30
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea r8, [0x140128d40]
mov rcx, rdx
mov rdx, r14
call fcn.14011b890
jmp 0x1400732fb
lea r8, [0x140128d28]
mov rcx, r14
mov rdx, r14
call fcn.14011b890
jmp 0x1400732fb
lea r8, [0x140128d58]
mov rcx, rax
mov rdx, r14
call fcn.14011b890
jmp 0x1400732fb
call fcn.14010d2d0
jmp 0x1400732fb
mov ecx, 4
mov rdx, rdi
call fcn.14011b4f0
ud2
Function at 0x14007e150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp edx, 0x1ff
jg 0x14007e1f1
dec edx
cmp edx, 0x3f
ja case.0x14007e17f.64
lea rax, [0x14012a7d0]
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
movzx eax, byte [rcx]
test rax, rax
je 0x14007e1c1
lea ecx, [rax - 1]
mov edx, 1
xor r9d, r9d
shld r9, rdx, cl
mov r10d, ecx
shr r10b, 7
movzx r10d, r10b
xor r11d, r11d
shl rdx, cl
test cl, 0x40
cmovne r9, rdx
cmovne rdx, r11
shl r10, 4
or qword [r8 + r10], rdx
or qword [r8 + r10 + 8], r9
mov r10d, eax
shr r10d, 7
mov edx, 1
xor r9d, r9d
mov ecx, eax
shld r9, rdx, cl
shl rdx, cl
xor ecx, ecx
test al, 0x40
cmovne r9, rdx
cmovne rdx, rcx
shl r10, 4
add r8, r10
jmp 0x14007e311
cmp edx, 0x1fff
jle 0x14007e211
cmp edx, 0x7fff
jle case.0x14007e17f.64
cmp edx, 0x8000
je case.0x14007e17f.64
cmp edx, 0x20000
jmp case.0x14007e17f.64
cmp edx, 0x7ff
xor edx, edx
mov r9d, 1
lea r10, [0x14012a2d8]
xor r11d, r11d
jmp 0x14007e26d
xor esi, esi
mov ecx, eax
shld rsi, r9, cl
shr cl, 7
movzx edi, cl
mov ebx, 1
mov ecx, eax
shl rbx, cl
test al, 0x40
cmovne rsi, rbx
cmovne rbx, rdx
shl rdi, 4
or qword [r8 + rdi], rbx
or qword [r8 + rdi + 8], rsi
movzx eax, ax
cmp eax, 0xff
jae case.0x14007e17f.1
mov ecx, r11d
movzx esi, r11w
cmp esi, 0x100
mov edi, 0xff
cmovae edi, esi
mov r11d, edi
inc r11d
mov ebx, ecx
nop word [rax + rax]
cmp di, bx
je 0x14007e2c0
mov eax, ebx
lea ebx, [rax + 1]
cmp byte [rsi + r10], 0
sete bpl
movzx r14d, bl
cmp byte [r14 + r10], 0
setne r14b
xor r14b, bpl
jne 0x14007e290
mov r11d, ebx
jmp 0x14007e2cc
mov ax, 0xff
cmp esi, 0x100
jae 0x14007e323
test cl, cl
je 0x14007e230
dec cl
xor esi, esi
shld rsi, r9, cl
mov ebx, ecx
shr bl, 7
movzx edi, bl
mov ebx, 1
shl rbx, cl
test cl, 0x40
cmovne rsi, rbx
cmovne rbx, rdx
shl rdi, 4
or qword [r8 + rdi], rbx
or qword [r8 + rdi + 8], rsi
jmp 0x14007e230
mov edx, 0x3600
xor r9d, r9d
or qword [r8], rdx
or qword [r8 + 8], r9
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, str.assertion_failed:_b2___256
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_regex_automata_0.4.4_srcutillook.rs
mov edx, 0x1b
call fcn.14011b7f0
ud2
Function at 0x1400dc930
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, r8
mov rsi, rcx
mov r14, r8
sub r14, rdx
shr r14, 3
sub rbx, rdx
je 0x1400dc991
movabs rax, 0x7ffffffffffffff9
cmp rbx, rax
jae 0x1400dcad4
mov rdi, rdx
movzx eax, byte [0x1401c6201]
mov edx, 4
mov rcx, rbx
call fcn.140003a20
test rax, rax
je 0x1400dcadb
cmp rbx, 0x80
jae 0x1400dc99d
xor ecx, ecx
jmp 0x1400dca3a
xor ecx, ecx
mov eax, 4
jmp 0x1400dcabc
lea rdx, [rax + r14*8]
add rdx, 0xfffffffffffffff8
xor ecx, ecx
cmp rdx, rax
jb 0x1400dca3a
lea rdx, [rax + r14*8]
add rdx, 0xfffffffffffffffc
mov r8, rax
add r8, 4
cmp rdx, r8
jb 0x1400dca3a
lea rdx, [r14 - 1]
shr rdx, 0x3d
jne 0x1400dca3a
mov rcx, r14
and rcx, 0xfffffffffffffffe
xor edx, edx
movdqa xmm0, xmmword [0x140124260]
nop
movdqu xmm1, xmmword [rdi + rdx*8]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rdx*8], xmm2
add rdx, 2
cmp rcx, rdx
jne 0x1400dc9e0
cmp r14, rcx
je 0x1400dcab9
mov rdx, rcx
or rdx, 1
test bl, 8
je 0x1400dca69
mov r8d, dword [rdi + rcx*8]
mov r9d, dword [rdi + rcx*8 + 4]
cmp r8d, r9d
mov r10d, r9d
cmovb r10d, r8d
cmova r9d, r8d
mov dword [rax + rcx*8], r10d
mov dword [rax + rcx*8 + 4], r9d
mov rcx, rdx
cmp r14, rdx
je 0x1400dcab9
nop
mov edx, dword [rdi + rcx*8]
mov r8d, dword [rdi + rcx*8 + 4]
cmp edx, r8d
mov r9d, r8d
cmovb r9d, edx
cmova r8d, edx
mov dword [rax + rcx*8], r9d
mov dword [rax + rcx*8 + 4], r8d
mov edx, dword [rdi + rcx*8 + 8]
mov r8d, dword [rdi + rcx*8 + 0xc]
cmp edx, r8d
mov r9d, r8d
cmovb r9d, edx
cmova r8d, edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
add rcx, 2
cmp r14, rcx
jne 0x1400dca70
mov rcx, r14
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rcx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14010d2d0
ud2
mov ecx, 4
mov rdx, rbx
call fcn.14011b4f0
ud2
Function at 0x1400e1040
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
movzx eax, byte [0x1401c6201]
mov ecx, 0x1818
mov edx, 4
call fcn.140003a20
test rax, rax
je 0x1400e115e
xor ecx, ecx
lea rdx, [0x14015d210]
movdqa xmm0, xmmword [0x140124260]
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rcx + rdx]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx], xmm2
add rcx, 0x10
cmp rcx, 0x1810
jne 0x1400e1090
movabs rcx, 0xe01ef000e0100
mov qword [rax + 0x1810], rcx
mov rcx, rax
add rcx, 0x1818
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x303
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x38]
lea rdx, [rbp - 0x20]
call fcn.1400d9d10
mov rax, qword [rbp - 0x28]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x38]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.1400e7600
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x68
pop rsi
pop rbp
ret
mov ecx, 4
mov edx, 0x1818
call fcn.14011b4f0
ud2

Function at 0x1400e12d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
movzx eax, byte [0x1401c6201]
mov ecx, 0x200
mov edx, 4
call fcn.140003a20
test rax, rax
je 0x1400e13dd
xor ecx, ecx
lea rdx, [0x14015ea78]
movdqa xmm0, xmmword [0x140124260]
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rcx + rdx]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx], xmm2
add rcx, 0x10
cmp rcx, 0x200
jne 0x1400e1320
mov rcx, rax
add rcx, 0x200
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x40
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x38]
lea rdx, [rbp - 0x20]
call fcn.1400d9d10
mov rax, qword [rbp - 0x28]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x38]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.1400e7600
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x68
pop rsi
pop rbp
ret
mov ecx, 4
mov edx, 0x200
call fcn.14011b4f0
ud2
Function at 0x1400eef90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400ef020
jmp 0x1400ef00f
jae 0x1400ef0e0
cmp r8, 0x201
jae 0x1400ef020
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400ef078
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400ef04f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14011a650
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400ef0a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ef148
mov r8d, r14d
cmp r15, r8
jne 0x1400ef000
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400ef16b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400ef00f
jmp 0x1400ef020
cmp rsi, r8
jb 0x1400ef185
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400f2c60
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400ef131
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140003a30
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400ef119
jmp 0x1400ef131
lea rcx, [0x14019ec90]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14011b7f0
jmp 0x1400ef19a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14011bc80
ud2
Function at 0x1400ef2f0
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]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140103f50
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x1400ef476
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1400ef3b0
jmp 0x1400ef39f
jae 0x1400ef488
cmp r8, 0x201
jae 0x1400ef3b0
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x1400ef408
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1400ef3df
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14011a650
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1400ef437
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ef55b
mov r8d, esi
cmp r12, r8
jne 0x1400ef390
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400ef585
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400ef39f
jmp 0x1400ef3b0
lea rcx, [rbp - 0x58]
call fcn.1400e9240
mov byte [rsi + 0x18], 2
jmp 0x1400ef51a
cmp r15, r8
jb 0x1400ef59f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.1400f2c60
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x1400ef4d9
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140003a30
cmp byte [rbp + 0x3d8], 2
jne 0x1400ef531
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400e9240
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x1400ef51a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140003a30
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x1400ef505
jmp 0x1400ef51a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x1400ef4c1
jmp 0x1400ef4d9
lea rcx, [0x14019ec90]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14011b7f0
jmp 0x1400ef5b4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14011bc80
ud2
Function at 0x1400f64e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140114900
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400fcdb0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call case.0x1400f4458.248
cmp qword [rbp + 0xfe8], 0
jne 0x1400f66b7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400f6683
cmp r12, 0x1000
ja 0x1400f66d9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x1400f6657
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400f6600
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400f665d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400f6640
jbe 0x1400f65b0
jmp 0x1400f66c5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400f6565
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400e9240
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.1400e9240
jmp 0x1400f6683
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14011bd00
jmp 0x1400f66ed
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14011bc80
ud2
Function at 0x1400fd270
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400fd3c5
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400fd2a8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400fd388
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400fd3a7
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400fd309
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400fd33b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400fd33f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400fd343
cmp eax, 0x6d
jne 0x1400fd36e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400fd348
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400fd374
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400e9240
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400fd37e
cmp rax, 1
je 0x1400fd2f2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1400fd2fc
mov r8d, 0x10
mov rcx, rbx
call fcn.14011a710
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1400fd2b5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14011a710
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400fd2b5
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14011a600
ud2
Function at 0x1401020e0
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.140103f50
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]

Function at 0x140103050
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140103088
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1401030a0
nop
add rsp, 0x38
ret

Function at 0x1401030a0
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 0x1401030e3
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, [0x1400f09a0]
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.14011b740
ud2

Function at 0x140103740
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
Function at 0x140113090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14011310a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140113100
cmp r11, r10
ja 0x1401131a3
cmp r10, rdx
ja 0x1401131b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140113102
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401130e0
jmp 0x140113177
ja 0x14011310a
mov r11, r10
cmp rax, r8
jne 0x1401130b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14011317b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140113150
mov r8, r10
sub ecx, r9d
jns 0x14011316e
jmp 0x14011317d
cmp r10, rdx
je 0x140113189
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14011317d
xor al, 1
cmp r8, rdx
jne 0x140113130
jmp 0x14011317d
xor eax, eax
jmp 0x14011317d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401a3e29]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14011b7f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14011bd00
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14011bc80
ud2

Function at 0x140114e04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140114e4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140114e4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140114e4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140114e4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140114e4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140114e50
xor al, al
add rsp, 0x28
ret