joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403331fc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15d, r8d
mov dword [rax + 0x10], ebx
mov r12, r9
mov rbp, rdx
mov rsi, rcx
mov edi, ebx
test rdx, rdx
je 0x140333363
test r9, r9
je 0x140333363
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x140333363
cmp qword [rcx + 0x30], rbx
jne 0x14033325e
mov ebx, 0x80049e51
jmp 0x140333368
mov r13d, dword [r14]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rbp
mov dword [r14], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14033327d
cmp dword [rsi + 0xc], 1
jmp 0x1403332b1
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140333296
cmp dword [rsi + 0xc], 2
jmp 0x1403332b1
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14033335c
cmp dword [rsi + 0xc], 3
je 0x1403332bd
mov ebx, 0x80049e2e
jmp 0x140333368
mov rcx, r15
mov dword [rsp + 0x68], r15d
call fcn.14011ea0c
mov rdi, rax
test rax, rax
jne 0x1403332dc
mov ebx, 0x8007000e
jmp 0x140333368
mov r8d, dword [rsp + 0x68]
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14033332b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140333320
mov ebx, eax
jmp 0x140333368
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140333368
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add eax, 0xfffffff0
mov dword [r14], eax
test rcx, rcx
je 0x140333368
cmp r13d, eax
jae 0x14033334e
mov ebx, 0x80049e19
jmp 0x140333368
mov r8d, eax
lea rdx, [rdi + 0x10]
call sub.msvcrt.dll_memcpy
jmp 0x140333368
mov ebx, 0x80049e5b
jmp 0x140333368
mov ebx, 0x80070057
mov rcx, rdi
call fcn.1401bfc8c
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140333690
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r14d, r14d
mov r13, r9
mov dword [rax + 0x10], r14d
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
mov ebx, r14d
mov edi, r14d
test rdx, rdx
je 0x1403338a7
test r9, r9
je 0x1403338a7
mov r15, qword [rsp + 0xb0]
test r15, r15
je 0x1403338a7
cmp qword [rcx + 0x30], r14
jne 0x1403336f6
mov ebx, 0x80049e51
jmp 0x1403338ac
mov eax, dword [r15]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rbp
mov dword [rsp + 0x40], eax
mov dword [r15], r14d
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14033371d
cmp dword [rsi + 0xc], 1
lea r14d, [rax + 0x10]
jmp 0x140333759
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14033373a
cmp dword [rsi + 0xc], 2
lea r14d, [rax + 0x18]
jmp 0x140333759
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403338a0
cmp dword [rsi + 0xc], 3
lea r14d, [rax + 0x20]
je 0x140333765
mov ebx, 0x80049e2e
jmp 0x1403338ac
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x98]
xor r9d, r9d
add r12d, r14d
mov dword [rsp + 0x30], r12d
xor edx, edx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
mov dword [rsp + 0x98], r12d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14033385b
mov ebp, dword [rsp + 0x98]
mov dword [r15], ebp
mov r15, qword [rsp + 0xb8]
test r15, r15
je 0x1403338ac
cmp dword [rsp + 0x40], ebp
jae 0x1403337cd
mov ebx, 0x80049e19
jmp 0x1403338ac
mov rcx, rbp
mov dword [rsp + 0x98], r12d
call fcn.14011ea0c
mov rdi, rax
test rax, rax
jne 0x1403337ef
mov ebx, 0x8007000e
jmp 0x1403338ac
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.14001ba6e
mov r8d, dword [rsp + 0xa0]
mov rdx, r13
mov ecx, r14d
add rcx, rdi
call sub.msvcrt.dll_memcpy
mov ebx, 2
mov r8d, r14d
mov r9d, ebx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x140333887
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], ebp
xor ebx, ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140333872
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1403338ac
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1403338ac
mov r8d, dword [rsp + 0x98]
mov rdx, rdi
mov rcx, r15
call sub.msvcrt.dll_memcpy
jmp 0x1403338ac
mov r9d, ebx
mov r8d, r14d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ebx, eax
bts ebx, 0x1c
jmp 0x1403338ac
mov ebx, 0x80049e5b
jmp 0x1403338ac
mov ebx, 0x80070057
mov rcx, rdi
call fcn.1401bfc8c
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140333b50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140333ce1
test rbx, rbx
je 0x140333ce1
mov rcx, qword [rcx + 0x20]
call fcn.1401bfc8c
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x20], rbp
call fcn.1401bfc8c
lea r15, [rdi + 0x30]
mov qword [rdi + 0x10], rbp
mov rcx, qword [r15]
mov dword [rdi + 0x18], ebp
test rcx, rcx
je 0x140333bb7
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [r15], rbp
lea r14, [rdi + 0x38]
cmp qword [r14], rbp
jne 0x140333be8
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140333cc3
mov rcx, qword [rdi + 0x10]
call fcn.1401bfc8c
or r8, 0xffffffffffffffff
mov qword [rdi + 0x10], rbp
mov rax, r8
inc rax
cmp word [rbx + rax*2], bp
jne 0x140333bfc
lea ecx, [rax + 1]
mov dword [rdi + 0x18], eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.14011ea0c
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
jne 0x140333c35
mov ebx, 0x8007000e
jmp 0x140333cea
mov edx, dword [rdi + 0x18]
mov r8, rbx
inc edx
call fcn.14007a6d4
mov ebx, eax
test eax, eax
jne 0x140333ce6
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140333c6d
mov edx, 0x660e
mov dword [rdi + 0xc], 1
jmp 0x140333cad
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140333c8e
mov edx, 0x660f
mov dword [rdi + 0xc], 2
jmp 0x140333cad
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140333cda
mov edx, 0x6610
mov dword [rdi + 0xc], 3
mov rcx, qword [r14]
mov r9, r15
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x140333d07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140333ce6
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140333ce6
mov ebx, 0x80049e2e
jmp 0x140333cea
mov ebx, 0x80070057
test ebx, ebx
jns 0x140333d07
mov rcx, qword [rdi + 0x20]
call fcn.1401bfc8c
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x20], rbp
call fcn.1401bfc8c
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140333f34
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r15d, edx
mov rdi, rcx
test r8, r8
je 0x140334096
cmp edx, 0x14
jbe 0x140334096
mov rcx, qword [rcx + 0x20]
call fcn.1401bfc8c
mov rcx, qword [rdi + 0x10]
and qword [rdi + 0x20], 0
call fcn.1401bfc8c
and qword [rdi + 0x10], 0
lea r14, [rdi + 0x30]
mov rcx, qword [r14]
and dword [rdi + 0x18], 0
test rcx, rcx
je 0x140333f9d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [r14], 0
mov ecx, dword [rbp + 0xc]
shr ecx, 3
mov dword [rdi + 0x28], ecx
mov eax, dword [rbp + 0x10]
mov dword [rdi + 0x2c], eax
mov eax, ecx
shr eax, 1
add eax, 4
lea eax, [rax + rax*4]
lea ecx, [rax + rcx*2]
cmp r15d, ecx
jne 0x140334096
mov rcx, qword [rdi + 0x20]
call fcn.1401bfc8c
mov ecx, dword [rdi + 0x28]
and qword [rdi + 0x20], 0
call fcn.14011ea0c
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x140333feb
mov ebx, 0x8007000e
jmp 0x14033409b
mov r8d, dword [rdi + 0x28]
lea rdx, [rbp + 0x14]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r8d, 4
lea rdx, [rdi + 0x2c]
call fcn.140334734
mov ebx, eax
test eax, eax
jne 0x14033409b
mov r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x20]
call fcn.140334734
mov ebx, eax
test eax, eax
jne 0x14033409b
lea rsi, [rdi + 0x38]
cmp qword [rsi], 0
jne 0x140334053
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140334076
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8d, r15d
mov rdx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14033408d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14033409b
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14033409b
mov dword [rdi + 0xc], 4
jmp 0x14033409b
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14033495c
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x28], 0
mov rdi, rdx
and qword [rbp + 0x30], 0
mov rsi, rcx
test rdx, rdx
jne 0x14033498a
mov ebx, 0x80070057
jmp 0x140334a73
call fcn.140334918
mov ebx, eax
test eax, eax
jne 0x140334a53
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140334a25
lea rdx, str.http:__www.w3.org_2000_09_xmldsigsha1
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403349d6
mov edx, 0x8004
jmp 0x140334a08
lea rdx, str.http:__www.w3.org_2001_04_xmlencsha256
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403349f0
mov edx, 0x800c
jmp 0x140334a08
lea rdx, str.http:__www.w3.org_2001_04_xmlencsha512
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140334a4e
mov edx, 0x800e
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140334a3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140334a53
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140334a53
mov rax, qword [rbp + 0x28]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x30]
mov qword [rsi + 0x18], rax
jmp 0x140334a73
mov ebx, 0x80049e5b
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140334a62
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140334a73
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800030a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800030c8
xor eax, eax
lea r8, [0x180002f10]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800047b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800049d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800048b7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004814
mov rax, qword [0x18000e008]
cmp qword [rsp + 0x20], rax
ja 0x180004814
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800047d6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004843
jmp 0x1800048b7
cmp dword [rsp + 0x50], 0x10000
jne 0x18000489a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000489a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004888
mov rax, qword [rsp + 0x28]
jmp 0x1800048b9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800048b2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800049d0
mov qword [rsp + 0x20], rax
jmp 0x1800047d6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800048c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004a10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800049c3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000491b
mov rax, qword [0x18000e008]
cmp qword [rsp + 0x20], rax
ja 0x18000491b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800048dd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000494a
jmp 0x1800049c3
cmp dword [rsp + 0x50], 0x10000
jne 0x1800049a1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800049a1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000498f
mov rax, qword [rsp + 0x28]
jmp 0x1800049c5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800049be
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004a10
mov qword [rsp + 0x20], rax
jmp 0x1800048dd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004a60
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004ff0
mov qword [rsp + 0x28], 0
cmp qword [0x18000e378], 0
jne 0x180004aa8
cmp qword [0x18000e370], 0
je 0x180004aa8
mov rax, qword [0x18000e370]
mov qword [0x18000e378], rax
cmp qword [0x18000e378], 0
je 0x180004b4e
mov rax, qword [0x18000e378]
cmp qword [rax + 0x10], 0
je 0x180004b4e
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004b4e
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004b4e
mov rax, qword [0x18000e378]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004b14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180004b1b
xor eax, eax
jmp 0x180004cc9
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004cc9
mov rax, qword [0x18000e370]
mov qword [0x18000e378], rax
jmp 0x180004b70
mov rax, qword [0x18000e378]
mov rax, qword [rax + 8]
mov qword [0x18000e378], rax
cmp qword [0x18000e378], 0
je 0x180004bbd
cmp qword [0x18000e378], 0
je 0x180004bbb
mov rax, qword [0x18000e378]
cmp qword [rax + 0x10], 0
je 0x180004bbb
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004bbb
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004bbb
jmp 0x180004aec
jmp 0x180004b5e
mov rcx, qword [rsp + 0x60]
call fcn.180006c20
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004cd0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004cc7
mov rax, qword [rsp + 0x48]
mov qword [0x18000e378], rax
mov rax, qword [0x18000e378]
mov dword [rax], 0x52727464
mov rax, qword [0x18000e378]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000e378]
mov rcx, qword [0x18000e370]
mov qword [rax + 8], rcx
mov rax, qword [0x18000e378]
mov qword [0x18000e370], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000e378]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004c78
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004cb2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180004c6e
mov rax, qword [0x18000e378]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180004aec
xor eax, eax
add rsp, 0x58
ret
Function at 0x140004840
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1400048b2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x140004878
add rdi, rbx
sub rsi, rbx
je 0x1400048b2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x140004870
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x140004870
and ebp, 0x7fffffff
jmp 0x1400048b4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140006d10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140006db0
jmp 0x140006d9f
jae 0x140006e6f
cmp r8, 0x201
jae 0x140006db0
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140006e07
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140006ddf
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14002aeb0
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140006e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006ee9
mov r8d, r13d
cmp r12, r8
jne 0x140006d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006f1d
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140006d9f
jmp 0x140006db0
cmp r14, r8
jb 0x140006f37
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140008a20
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x140006ed2
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140001aa0
mov rax, rsi
add rsp, 0x498
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 + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x140006ebd
jmp 0x140006ed2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002c0d0
jmp 0x140006f4c
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002c4b0
ud2
Function at 0x14000ce60
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x14002f7a0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000ce98
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000cf01
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000cf35
test eax, eax
js 0x14000cf15
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
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 + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140008760
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140005350
mov ecx, 7
int 0x29
ud2