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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r11, qword [rdx + 0x20]
mov r10, qword [rdx + 0x28]
lea rcx, [r10 + 1]
mov qword [rdx + 0x28], rcx
mov al, 1
cmp rcx, r11
jae 0x140001962
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + rcx]
mov al, 1
cmp edi, 0x2b
je 0x140001957
cmp edi, 0x2d
jne 0x140001962
xor eax, eax
add r10, 2
mov qword [rdx + 0x28], r10
mov rcx, r10
cmp rcx, r11
jae 0x140001b0a
mov rdi, qword [rdx + 0x18]
movzx r10d, byte [rdi + rcx]
lea rbx, [rcx + 1]
mov qword [rdx + 0x28], rbx
add r10b, 0xd0
cmp r10b, 0xa
jae 0x140001b15
movzx r10d, r10b
cmp rbx, r11
jae 0x140001a10
mov ebx, 1
sub rbx, r11
add rcx, 2
jmp 0x1400019cc
movzx r11d, r11b
lea r10d, [r10 + r10*4]
lea r10d, [r11 + r10*2]
lea r11, [rbx + rcx]
inc r11
inc rcx
cmp r11, 2
je 0x140001a10
movzx r11d, byte [rdi + rcx - 1]
add r11b, 0xd0
cmp r11b, 0xa
jae 0x140001a10
mov qword [rdx + 0x28], rcx
cmp r10d, 0xccccccb
jle 0x1400019b0
cmp r10d, 0xccccccc
jne 0x1400019f8
cmp r11b, 7
jbe 0x1400019b0
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
mov rcx, rsi
call fcn.140039780
jmp 0x140001af7
mov ecx, dword [rsp + 0x80]
test al, al
je 0x140001a2c
lea eax, [rcx + r10]
sar eax, 0x1f
add eax, 0x80000000
add ecx, r10d
jmp 0x140001a3c
xor eax, eax
cmp ecx, r10d
setns al
add eax, 0x7fffffff
sub ecx, r10d
cmovo ecx, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x14003d3e0]
subpd xmm1, xmmword [0x14003d3f0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x135
jb 0x140001aa8
xorpd xmm1, xmm1
movsd xmm2, qword [0x14003d400]
nop word [rax + rax]
ucomisd xmm0, xmm1
jne 0x140001a88
jnp 0x140001ae0
test ecx, ecx
jns 0x140001b3b
divsd xmm0, xmm2
add ecx, 0x134
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x134
ja 0x140001a80
mov eax, eax
mov r9, qword [0x140055030]
movsd xmm1, qword [r9 + rax*8]
test ecx, ecx
js 0x140001aff
mulsd xmm0, xmm1
movq rax, xmm0
movabs rcx, 0x7fffffffffffffff
and rcx, rax
movabs rax, 0x7ff0000000000000
cmp rcx, rax
je 0x140001b3b
test r8b, r8b
jne 0x140001aed
xorpd xmm0, xmmword [0x14003d410]
movsd qword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x140001ae5
jmp 0x140001aed
mov qword [rsp + 0x28], 5
jmp 0x140001b1e
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140039820
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140001af7
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140039820
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140001af4
Function at 0x14000a070
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rbp + 0x80]
test rax, rax
je 0x14000a0ea
cmp rax, 1
jne 0x14000a122
test rdi, rdi
je 0x14000a168
js 0x14000a2f0
movzx r14d, byte [r9]
movzx eax, byte [0x140055131]
mov edx, 1
mov rcx, rdi
call fcn.140005180
test rax, rax
je 0x14000a115
mov r15, rax
cmp rdi, 8
jae 0x14000a18c
xor eax, eax
jmp 0x14000a230
test rdi, rdi
je 0x14000a173
js 0x14000a2f0
movzx eax, byte [0x140055131]
mov edx, 1
mov rcx, rdi
call fcn.140005180
mov r15, rax
test rax, rax
jne 0x14000a179
mov ecx, 1
mov rdx, rdi
call fcn.14003c4e0
add rdi, rbx
pxor xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
lea rcx, [rbp + 8]
lea rdx, [rbp - 0x38]
call fcn.14000a500
mov r15, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x18]
jmp 0x14000a24f
mov r15d, 1
jmp 0x14000a243
mov r15d, 1
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000a243
movzx ecx, r14b
cmp rdi, 0x20
jae 0x14000a19a
xor eax, eax
jmp 0x14000a1f4
mov rax, rdi
and rax, 0xffffffffffffffe0
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor edx, edx
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbx + rdx]
movdqu xmm2, xmmword [rbx + rdx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [r15 + rdx], xmm1
movdqu xmmword [r15 + rdx + 0x10], xmm2
add rdx, 0x20
cmp rax, rdx
jne 0x14000a1c0
cmp rax, rdi
je 0x14000a243
test dil, 0x18
je 0x14000a230
mov rdx, rax
mov rax, rdi
and rax, 0xfffffffffffffff8
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
nop dword [rax + rax]
movq xmm1, qword [rbx + rdx]
pxor xmm1, xmm0
movq qword [r15 + rdx], xmm1
add rdx, 8
cmp rax, rdx
jne 0x14000a210
cmp rax, rdi
je 0x14000a243
nop dword [rax]
movzx ecx, byte [rbx + rax]
xor cl, r14b
mov byte [r15 + rax], cl
inc rax
cmp rdi, rax
jne 0x14000a230
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x40], r15
lea rcx, [rbp - 0x38]
mov rdx, r15
mov r8, rdi
call fcn.140035690
cmp qword [rbp - 0x38], 0
je 0x14000a2ca
lea rax, [rbp + 0x10]
movups xmm0, xmmword [rbp - 0x30]
mov rdi, qword [rbp - 0x30]
mov rcx, qword [rbp + 8]
movdqu xmm1, xmmword [rax]
movdqa xmmword [rbp - 0x50], xmm1
movabs rdx, 0x8000000000000000
cmp rcx, rdx
je 0x14000a2d2
mov qword [rbp - 0x38], rcx
movups xmm1, xmmword [rax]
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm0
lea rax, [0x14003eae0]
mov qword [rsp + 0x20], rax
lea rcx, [0x14003e928]
lea r9, [0x14003e958]
lea r8, [rbp - 0x38]
mov edx, 0x2b
call fcn.14003ca10
ud2
movups xmm0, xmmword [rbp + 8]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call fcn.14002e120
int3
Function at 0x140011550
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 0x140011592
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14001159a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400115ab
jmp 0x1400115c2
xor r10d, r10d
jmp 0x14001164d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400115c2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400115d9
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 0x1400115f9
add r11, r8
jmp 0x14001172a
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 0x1400116c2
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 0x140011670
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x1400116e0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400116f2
jmp 0x14001170c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14001170c
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 0x140011726
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 0x140011ce0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], rdx
mov r14, qword [rdx]
mov edi, 8
lea r15, [rbp - 4]
xor ebx, ebx
xor esi, esi
jmp 0x140011d4d
mov r13, r12
mov qword [rbp - 0x10], r13
mov rbx, r13
mov esi, r12d
lea r8d, [rbx*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
mov r9, r15
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x140011dec
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x140011e3d
mov rsi, r12
sub rsi, rbx
jbe 0x140011d40
mov rax, qword [rbp - 0x20]
sub rax, rbx
mov r13, rbx
cmp rax, rsi
jae 0x140011daa
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8, rsi
call fcn.14003b830
mov rdi, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x140011ddd
mov r8, rbx
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, rbx
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x140011d43
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp - 0x28]
mov qword [rsi + 8], rax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rsi + 0x10], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rsi + 0x20], rax
mov qword [rsi], 0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140011f25
mov rcx, qword [rbp - 0x18]
shl rdx, 3
mov r8d, 8
call fcn.140005190
jmp 0x140011f25
mov r14d, r12d
shr r14d, 3
cmp rbx, r14
jb 0x140011f39
cmp r12d, 8
jae 0x140011e5f
mov eax, 8
xor ecx, ecx
jmp 0x140011eef
mov r15, r14
shl r15, 4
movzx eax, byte [0x140055131]
mov edx, 8
mov rcx, r15
call fcn.140005180
test rax, rax
je 0x140011f4d
cmp r14d, 1
jne 0x140011e91
xor ecx, ecx
mov r10, qword [rbp - 0x30]
jmp 0x140011ed5
mov edx, r14d
and edx, 0xfffffffe
lea r8, [rax + 0x18]
xor ecx, ecx
mov r10, qword [rbp - 0x30]
nop word cs:[rax + rax]
mov r9, qword [rdi + rcx*8]
mov qword [r8 - 0x18], r10
mov qword [r8 - 0x10], r9
mov r9, qword [rdi + rcx*8 + 8]
mov qword [r8 - 8], r10
mov qword [r8], r9
add rcx, 2
add r8, 0x20
cmp rdx, rcx
jne 0x140011eb0
test r14b, 1
je 0x140011eec
mov rdx, qword [rdi + rcx*8]
shl rcx, 4
mov qword [rax + rcx], r10
mov qword [rax + rcx + 8], rdx
mov rcx, r14
mov rdx, qword [rbp - 0x28]
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140011f21
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.140005190
mov rsi, qword [rbp - 0x28]
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x14003f758]
mov rcx, r14
mov rdx, rbx
call fcn.14003cb30
jmp 0x140011f5a
mov ecx, 8
mov rdx, r15
call fcn.14003c4e0
ud2
Function at 0x1400127b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
mov rax, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140017520
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, rdx
mov qword [rsp + 0x10], rcx
mov edi, dword [rdx]
mov r11d, dword [rdx + 4]
mov ecx, dword [rdx + 8]
mov qword [rsp], rcx
mov ebp, dword [rdx + 0xc]
mov esi, dword [r8]
mov ecx, dword [r8 + 4]
mov qword [rsp + 8], rcx
mov ecx, dword [r8 + 8]
mov r13d, dword [r8 + 0xc]
mov r8d, dword [rdx + 0x10]
mov edx, dword [rdx + 0x14]
mov r9d, dword [rax + 0x18]
mov eax, dword [rax + 0x1c]
mov ebx, 0x79622d32
mov r14d, 0x3320646e
mov r12d, 0x61707865
mov r15d, 0x6b206574
mov r10d, 0xa
mov qword [rsp + 0x18], r10
mov r10, qword [rsp]
mov qword [rsp], r11
lea r11d, [rdx + r12]
rol r11d, 7
xor r11d, ebp
mov qword [rsp + 0x30], r11
lea ebp, [r11 + r12]
rol ebp, 9
xor ebp, ecx
mov qword [rsp + 0x40], rbp
lea ecx, [r11 + rbp]
rol ecx, 0xd
xor ecx, edx
mov qword [rsp + 0x48], rcx
add ecx, ebp
rol ecx, 0x12
xor ecx, r12d
lea edx, [rdi + r14]
rol edx, 7
xor edx, r13d
mov qword [rsp + 0x28], rdx
lea r12d, [rdx + r14]
rol r12d, 9
xor r12d, r9d
mov qword [rsp + 0x38], r12
add edx, r12d
rol edx, 0xd
xor edx, edi
lea r9d, [rdx + r12]
rol r9d, 0x12
xor r9d, r14d
lea r11d, [rsi + rbx]
rol r11d, 7
xor r11d, eax
mov qword [rsp + 0x20], r11
lea r12d, [r11 + rbx]
rol r12d, 9
xor r12d, dword [rsp]
lea r14d, [r12 + r11]
rol r14d, 0xd
xor r14d, esi
lea eax, [r14 + r12]
rol eax, 0x12
xor eax, ebx
lea esi, [r8 + r15]
rol esi, 7
xor esi, r10d
lea r13d, [rsi + r15]
rol r13d, 9
xor r13d, dword [rsp + 8]
lea ebx, [rsi + r13]
rol ebx, 0xd
xor ebx, r8d
lea r8d, [rbx + r13]
rol r8d, 0x12
xor r8d, r15d
mov qword [rsp], r8
lea edi, [rsi + rcx]
rol edi, 7
xor edi, edx
lea r11d, [rdi + rcx]
rol r11d, 9
xor r11d, r12d
lea r10d, [r11 + rdi]
rol r10d, 0xd
xor r10d, esi
lea r12d, [r10 + r11]
rol r12d, 0x12
xor r12d, ecx
mov rdx, qword [rsp + 0x30]
lea esi, [r9 + rdx]
rol esi, 7
xor esi, r14d
lea ecx, [rsi + r9]
rol ecx, 9
xor ecx, r13d
lea ebp, [rcx + rsi]
rol ebp, 0xd
xor ebp, edx
mov qword [rsp + 8], rcx
lea r14d, [rcx + rbp]
rol r14d, 0x12
xor r14d, r9d
mov rdx, qword [rsp + 0x28]
lea r8d, [rax + rdx]
rol r8d, 7
xor r8d, ebx
lea ecx, [r8 + rax]
rol ecx, 9
xor ecx, dword [rsp + 0x40]
lea r13d, [rcx + r8]
rol r13d, 0xd
xor r13d, edx
lea ebx, [rcx + r13]
rol ebx, 0x12
xor ebx, eax
mov r15, qword [rsp + 0x20]
mov rax, qword [rsp]
lea edx, [rax + r15]
rol edx, 7
xor edx, dword [rsp + 0x48]
lea r9d, [rdx + rax]
rol r9d, 9
xor r9d, dword [rsp + 0x38]
lea eax, [r9 + rdx]
rol eax, 0xd
xor eax, r15d
lea r15d, [rax + r9]
rol r15d, 0x12
xor r15d, dword [rsp]
dec qword [rsp + 0x18]
jne 0x140017590
mov rax, qword [rsp + 0x10]
mov dword [rax], r12d
mov dword [rax + 4], r14d
mov dword [rax + 8], ebx
mov dword [rax + 0xc], r15d
mov dword [rax + 0x10], esi
mov rdx, qword [rsp + 8]
mov dword [rax + 0x14], edx
mov dword [rax + 0x18], ecx
mov dword [rax + 0x1c], r13d
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001de00
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14001dea0
jmp 0x14001de8f
jae 0x14001df60
cmp r8, 0x201
jae 0x14001dea0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001def8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14001decf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14003bdb0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x14001df21
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001dfc8
mov r8d, r14d
cmp r15, r8
jne 0x14001de80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001dff5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001de8f
jmp 0x14001dea0
cmp rsi, r8
jb 0x14001e00f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001f8d0
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 rbx, rbx
je 0x14001dfb1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140005190
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14001df99
jmp 0x14001dfb1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003c6a0
jmp 0x14001e024
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003cb30
ud2
Function at 0x140023e40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140046450]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140023e84
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140023eea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140023f21
test eax, eax
js 0x140023efb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140023f14
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14001f6a0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14001bff0
mov ecx, 7
int 0x29
ud2

Function at 0x140024c70
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 0x140024ca8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140024cc0
nop
add rsp, 0x38
ret

Function at 0x140024cc0
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 0x140024d03
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, [0x14001e9d0]
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.14003c5d0
ud2
Function at 0x140036870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400368ea
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 0x1400368e0
cmp r11, r10
ja 0x140036981
cmp r10, rdx
ja 0x140036993
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400368e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400368c0
jmp 0x140036957
ja 0x1400368ea
mov r11, r10
cmp rax, r8
jne 0x140036892
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003695b
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 0x140036930
mov r8, r10
sub ecx, r9d
jns 0x14003694e
jmp 0x14003695d
cmp r10, rdx
je 0x140036969
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003695d
xor al, 1
cmp r8, rdx
jne 0x140036910
jmp 0x14003695d
xor eax, eax
jmp 0x14003695d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140049721]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003c6a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003cbb0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003cb30
int3

Function at 0x140038d64
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41650b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434840
xorps xmm15, xmm15
mov r14, qword [0x00652578]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4163e5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4163f4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416413
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416423
cmp rbx, 0x1000
jae 0x4163eb
jmp 0x41648d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416435
xor edx, edx
jmp 0x416484
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434840
xorps xmm15, xmm15
mov r14, qword [0x00652578]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416419
jmp 0x416408
call fcn.00468320
xorps xmm15, xmm15
mov r14, qword [0x00652578]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00438be0
lea rax, [0x004ebe02]
mov ebx, 0x18
nop dword [rax]
call fcn.00439460
mov rax, qword [rsp + 0x38]
call fcn.004391a0
lea rax, [0x004ec2eb]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00439460
mov rax, qword [rsp + 0x30]
call fcn.004391a0
call fcn.00438e20
call fcn.00438c40
lea rax, [0x004ee5e7]
mov ebx, 0x21
call fcn.00437140
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464c00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416380