joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d3f40
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140283740]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1401d3f8c
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401d405e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1401d3fd0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1401d405e
mov rcx, rbp
call fcn.140190740
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1401d403a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401d404a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401d405c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401d5b10
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401d4e20
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1401d4e85
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1401d4e30
ret

Function at 0x1401d59dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1401d5a16
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1401d5a1b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401d5a64
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1401d5a64
dec r8
sub rdx, 1
jne 0x1401d5a4a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401d6b64
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001b28
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rax
add qword [rdx + 0x30], 8
mov rcx, qword [rcx]
mov qword [rsp], rcx
mov r9, qword [rdx + 0x40]
test r9, r9
je 0x140006262
mov r11d, 8
mov r8d, 8
sub r8, r9
cmp r8, 8
cmovb r11, r8
xor r10d, r10d
xor eax, eax
cmp r8, 4
mov ecx, ecx
cmovae r10, rcx
setae al
lea rcx, [rax*4 + 1]
shl rax, 2
cmp rcx, r11
jae 0x14000622b
movzx esi, word [rsp + rax]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
or rax, 2
cmp rax, r11
jae 0x140006240
movzx r11d, byte [rsp + rax]
shl eax, 3
mov ecx, eax
shl r11, cl
or r10, r11
lea ecx, [r9*8]
shl r10, cl
or r10, qword [rdx + 0x38]
mov qword [rdx + 0x38], r10
cmp r9, 8
jbe 0x140006267
add r9, 8
jmp 0x1400063a6
xor r8d, r8d
jmp 0x1400062bb
mov r9, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx]
add rax, rcx
rol rcx, 0xd
xor r9, r10
xor rcx, rax
rol rax, 0x20
mov r11, qword [rdx + 8]
add r11, r9
rol r9, 0x10
xor r9, r11
add rax, r9
rol r9, 0x15
xor r9, rax
add r11, rcx
rol rcx, 0x11
mov qword [rdx + 0x18], r9
xor rcx, r11
rol r11, 0x20
mov qword [rdx + 0x10], rcx
mov qword [rdx + 8], r11
xor rax, r10
mov qword [rdx], rax
mov eax, 8
sub rax, r8
mov r9d, eax
and r9d, 7
and rax, 0xfffffffffffffff8
cmp r8, rax
jae 0x140006342
mov rcx, qword [rdx]
mov r10, qword [rdx + 8]
mov rsi, qword [rdx + 0x18]
mov r11, qword [rdx + 0x10]
nop word cs:[rax + rax]
add rcx, r11
rol r11, 0xd
mov rdi, qword [rsp + r8]
xor r11, rcx
rol rcx, 0x20
xor rsi, rdi
add r10, rsi
rol rsi, 0x10
xor rsi, r10
add rcx, rsi
rol rsi, 0x15
add r10, r11
rol r11, 0x11
xor r11, r10
rol r10, 0x20
xor rsi, rcx
xor rcx, rdi
add r8, 8
cmp r8, rax
jb 0x1400062f0
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x10], r11
mov qword [rdx + 8], r10
mov qword [rdx], rcx
cmp r9d, 4
jb 0x14000635f
mov r10d, dword [rsp + r8]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x140006370
jmp 0x14000638a
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x14000638a
lea rcx, [rsp + rax]
movzx r11d, word [r8 + rcx]
lea ecx, [rax*8]
shl r11, cl
or r10, r11
or rax, 2
cmp rax, r9
jae 0x1400063a2
add r8, rax
movzx r8d, byte [rsp + r8]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
mov qword [rdx + 0x38], r10
mov qword [rdx + 0x40], r9
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x14000ab30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
mov r10, qword [rcx]
test r8, r8
je 0x14000abf8
movabs rax, 0x100000001b3
mov r11, r8
and r11, 7
je 0x14000ab7e
mov rsi, r10
mov r9, rdx
nop word cs:[rax + rax]
movzx r10d, byte [r9]
inc r9
xor r10, rsi
imul r10, rax
mov rsi, r10
dec r11
jne 0x14000ab60
cmp r8, 8
jae 0x14000ab87
jmp 0x14000abf8
mov r9, rdx
cmp r8, 8
jb 0x14000abf8
add rdx, r8
nop word [rax + rax]
movzx r8d, byte [r9]
xor r8, r10
imul r8, rax
movzx r10d, byte [r9 + 1]
xor r10, r8
imul r10, rax
movzx r8d, byte [r9 + 2]
xor r8, r10
imul r8, rax
movzx r10d, byte [r9 + 3]
xor r10, r8
imul r10, rax
movzx r8d, byte [r9 + 4]
xor r8, r10
imul r8, rax
movzx r10d, byte [r9 + 5]
xor r10, r8
imul r10, rax
movzx r8d, byte [r9 + 6]
xor r8, r10
imul r8, rax
movzx r10d, byte [r9 + 7]
add r9, 8
xor r10, r8
imul r10, rax
cmp r9, rdx
jne 0x14000ab90
mov qword [rcx], r10
pop rsi
ret
Function at 0x14000b1b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
mov rax, rcx
test r8, r8
je 0x14000b1de
mov r9d, r8d
and r9d, 7
movabs rcx, 0x100000001b3
cmp r8, 8
jae 0x14000b1ed
mov esi, 0x811c9dc5
mov r10, rdx
jmp 0x14000b269
movabs r11, 0x1c9d3adb639f298e
jmp 0x14000b2a2
mov r11, r8
and r11, 0xfffffffffffffff8
mov esi, 0x811c9dc5
mov r10, rdx
nop dword [rax]
movzx edi, byte [r10]
xor rdi, rsi
imul rdi, rcx
movzx esi, byte [r10 + 1]
xor rsi, rdi
imul rsi, rcx
movzx edi, byte [r10 + 2]
xor rdi, rsi
imul rdi, rcx
movzx esi, byte [r10 + 3]
xor rsi, rdi
imul rsi, rcx
movzx edi, byte [r10 + 4]
xor rdi, rsi
imul rdi, rcx
movzx esi, byte [r10 + 5]
xor rsi, rdi
imul rsi, rcx
movzx edi, byte [r10 + 6]
xor rdi, rsi
imul rdi, rcx
movzx esi, byte [r10 + 7]
add r10, 8
xor rsi, rdi
imul rsi, rcx
add r11, 0xfffffffffffffff8
jne 0x14000b200
mov r11, rsi
test r9, r9
je 0x14000b297
xor edi, edi
nop word cs:[rax + rax]
movzx r11d, byte [r10 + rdi]
xor r11, rsi
imul r11, rcx
inc rdi
mov rsi, r11
cmp r9, rdi
jne 0x14000b280
xor r11, 0xff
imul r11, rcx
mov qword [rax + 0x1c8], r11
mov qword [rax + 0x1b8], rdx
mov qword [rax + 0x1c0], r8
mov qword [rax + 0x1d0], 0
mov qword [rax + 0x1e0], 0
mov qword [rax + 0x40], 0
mov qword [rax + 0x48], 8
mov dword [rax + 0x258], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x50], xmm0
mov qword [rax + 0x60], 8
movups xmmword [rax + 0x68], xmm0
mov qword [rax + 0x78], 8
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], 8
movups xmmword [rax + 0x98], xmm0
mov qword [rax + 0xa8], 8
movups xmmword [rax + 0xb0], xmm0
mov qword [rax + 0xc0], 8
mov qword [rax + 0xc8], 0
mov dword [rax + 0x250], 0x110000
mov qword [rax + 0x1f0], 0
mov qword [rax + 0xd0], 0
mov qword [rax + 0xd8], 8
movups xmmword [rax + 0xe0], xmm0
mov qword [rax + 0xf0], 4
movups xmmword [rax + 0xf8], xmm0
mov qword [rax + 0x200], 0x3e7
mov qword [rax + 0x208], 0x3e7
mov qword [rax + 0x108], 8
movups xmmword [rax + 0x110], xmm0
mov qword [rax + 0x120], 8
mov qword [rax], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x20], 0
mov qword [rax + 0x210], 0
mov qword [rax + 0x220], 0
movups xmmword [rax + 0x128], xmm0
mov dword [rax + 0x254], 0x110000
mov qword [rax + 0x138], 0
mov qword [rax + 0x140], 8
movups xmmword [rax + 0x148], xmm0
mov qword [rax + 0x158], 8
movups xmmword [rax + 0x160], xmm0
mov qword [rax + 0x170], 0
mov qword [rax + 0x178], 8
mov qword [rax + 0x180], 0
movabs rcx, 0x8000000000000001
mov qword [rax + 0x198], rcx
mov qword [rax + 0x230], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x240], 0
mov word [rax + 0x25c], 0
mov byte [rax + 0x25e], 0
pop rdi
pop rsi
ret
Function at 0x14002fb20
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 0x14002fb62
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14002fb6a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14002fb7b
jmp 0x14002fb92
xor r10d, r10d
jmp 0x14002fc1d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14002fb92
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14002fba9
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 0x14002fbc9
add r11, r8
jmp 0x14002fcfb
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 0x14002fc92
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 0x14002fc40
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14002fcb0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14002fcc2
jmp 0x14002fcdd
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14002fcdd
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14002fcf7
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 0x14005d240
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14005d2e0
jmp 0x14005d2cf
jae 0x14005d39f
cmp r8, 0x201
jae 0x14005d2e0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14005d337
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14005d30f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14007a850
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
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 0x14005d360
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005d40b
mov r8d, r13d
cmp r12, r8
jne 0x14005d2c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14005d43f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14005d2cf
jmp 0x14005d2e0
cmp r14, r8
jb 0x14005d459
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400613c0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14005d3f4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400063d0
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14005d3df
jmp 0x14005d3f4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14007b750
jmp 0x14005d46e
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.14007baa0
ud2
Function at 0x1400660f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140085fc8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140066128
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
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_NtReadFile]
cmp eax, 0x103
jne 0x14006617f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14006618c
xor edx, edx
xor eax, eax
jmp 0x1400661b6
cmp eax, 0x103
je 0x1400661c0
test eax, eax
js 0x14006619f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400661b6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140060d50
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14005b7f0
mov ecx, 7
int 0x29
ud2

Function at 0x140066210
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140085fc8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140066248
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
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 0x1400662a6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400662d3
test eax, eax
js 0x1400662b2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400662c9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140060d50
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14005b7f0
mov ecx, 7
int 0x29
ud2
Function at 0x140076250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1400762da
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x1400762d0
cmp r11, r10
ja 0x140076356
cmp r10, rdx
ja 0x140076368
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1400762d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400762b0
jmp 0x140076337
ja 0x1400762da
mov r11, r10
cmp rax, r8
jne 0x140076277
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14007633b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140076310
mov r8, r10
sub ecx, r9d
jns 0x14007632e
jmp 0x14007633d
cmp r10, rdx
je 0x14007634a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007633d
xor al, 1
cmp r8, rdx
jne 0x1400762f0
jmp 0x14007633d
xor eax, eax
jmp 0x14007633d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14007b650
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14007bab0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14007baa0
int3

Function at 0x1400789d4
Capabilities:
Parse pe header

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