joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429200
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x4294a6
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1270]
mov rcx, qword [rax + 0x1260]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42949a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1260], 0
cmp byte [0x007cd72f], 0
jne 0x429262
xor edx, edx
xor ebx, ebx
nop
jmp 0x4292ab
xor edx, edx
jmp 0x42928e
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1270]
mov rax, rcx
call fcn.00419c80
mov rcx, qword [rsp + 0x28]
lea rdx, [rcx + 1]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x429266
add rax, 0x1260
call fcn.00429080
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x429432
mov rsi, qword [rax + rdx*8 + 0x1270]
nop dword [rax]
cmp rsi, 0x1000
jb 0x4292a8
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.0040f3e0
test rax, rax
jne 0x429302
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x4292a8
nop
mov rsi, rcx
shr rcx, 3
and esi, 7
mov rdx, rcx
mov rcx, rsi
mov r8d, 1
shl r8d, cl
nop
add rdx, qword [rbx + 0x50]
movzx esi, byte [rdx]
test r8b, sil
je 0x429345
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop dword [rax]
jmp 0x4292a8
nop
lock or byte [rdx], r8b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42948d
lea r10, [0x0079fb90]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x21040]
lea r9, [r9 + rcx]
lea r9, [r9 + 0x21040]
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x4293cb
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x429405
mov r8, qword [rsp + 0x48]
mov r9, qword [r8 + 0x1248]
add r9, qword [rbx + 0x68]
mov qword [r8 + 0x1248], r9
mov rax, r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x4292a8
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x429485
mov r9, qword [rsp + 0x48]
mov qword [r9 + r8*8 + 0x1270], rax
lea rbx, [r8 + 1]
mov rax, r9
mov rdx, qword [rsp + 0x28]
jmp 0x4292a8
cmp rbx, 0x200
ja 0x429477
lea rdx, [rax + 0x1270]
lea rsi, [rax + 0x1238]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.0041f8a0
mov rdx, qword [rsp + 0x48]
lea rax, [rdx + 0x1260]
call fcn.00429080
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
nop
call fcn.00456b60
mov rax, r8
call fcn.00456ae0
mov rax, r8
mov ecx, 0x40
call fcn.00456b00
mov edx, 0x200
nop
call fcn.00456b40
nop
mov qword [rsp + 8], rax
call fcn.00458ae0
mov rax, qword [rsp + 8]
jmp fcn.00429200
Function at 0x4473a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x447518
movzx edx, byte [rax]
nop
test edx, edx
jne 0x4473dc
test r8b, r8b
jne 0x4473dc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x4473ef
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4474d8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x4474c6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x4474bc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x447443
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x447486
mov eax, 1
cmp rax, rbx
ja 0x447475
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00456ba0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x4474b4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44747d
mov r8d, eax
mov eax, r10d
jmp 0x447448
mov rcx, rbx
call fcn.00456ae0
xor eax, eax
mov rcx, rbx
call fcn.00456ae0
mov eax, r8d
mov rcx, rbx
call fcn.00456ba0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44750e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x4474d1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4473f5
mov eax, edx
mov rcx, rbx
call fcn.00456ae0
xor eax, eax
mov rcx, rbx
nop dword [rax]
call fcn.00456ae0
nop
int3
Function at 0x44eb80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44ec3b
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x0044ec80]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004542e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00454420
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0044eb80
Function at 0x4565a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x007cd9a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x007cd72e], 0
je 0x4565d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x007cdc60]
aesenc xmm0, xmmword [0x007cdc70]
aesenc xmm0, xmmword [0x007cdc80]
movq rax, xmm0
ret
jmp 0x4084a0

Function at 0x457ec0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x007cdbe0]
mov qword [rsp + 8], rdx
lea r8d, [0x007cd744]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00456480
add rsp, 0x30
ret
Function at 0x14001a510
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x34], 0x100
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x34]
mov ecx, 2
call sub.kernel32.dll_GetComputerNameExA
test eax, eax
je 0x14001a61d
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.140049510
lea r8, [rax + 1]
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14003ee30
cmp qword [rsp + 0x38], 0
jne 0x14001a656
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14001a626
js 0x14001a689
movzx eax, byte [0x1400b4b41]
mov r15d, 1
mov edx, 1
mov rcx, rdi
call fcn.140006730
test rax, rax
je 0x14001a68c
mov rbx, rax
jmp 0x14001a62b
mov ebx, 1
xor edi, edi
jmp 0x14001a639
mov ebx, 1
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.140053e60
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
mov rax, rsi
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
lea rax, [0x140097a60]
mov qword [rsp + 0x20], rax
lea rcx, [0x14005a300]
lea r9, [0x14005a330]
lea r8, [rsp + 0x50]
mov edx, 0x2b
call fcn.140056610
xor r15d, r15d
mov rcx, r15
mov rdx, rdi
call fcn.1400560e0
int3
Function at 0x140029150
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 0x1400291c0
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 0x14002b990
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 0x14002ba30
jmp 0x14002ba1f
jae 0x14002baef
cmp r8, 0x201
jae 0x14002ba30
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14002ba87
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14002ba5f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call case.0x14002e6a7.369
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 0x14002bab0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002bb5b
mov r8d, r13d
cmp r12, r8
jne 0x14002ba10
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002bb8f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002ba1f
jmp 0x14002ba30
cmp r14, r8
jb 0x14002bba9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14002da00
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 0x14002bb44
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140006740
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 0x14002bb2f
jmp 0x14002bb44
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140056320
jmp 0x14002bbbe
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.140056710
ud2
Function at 0x140031ec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14009d548]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140031ef8
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 0x140031f56
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140031f83
test eax, eax
js 0x140031f62
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140031f79
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.14002d730
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140029e30
mov ecx, 7
int 0x29
ud2
Function at 0x140043790
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 0x14004381a
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 0x140043810
cmp r10, r11
jb 0x140043896
cmp r10, rdx
ja 0x1400438a8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140043812
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400437f0
jmp 0x140043877
ja 0x14004381a
mov r11, r10
cmp rax, r8
jne 0x1400437b7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14004387b
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 0x140043850
mov r8, r10
sub ecx, r9d
jns 0x14004386e
jmp 0x14004387d
cmp r10, rdx
je 0x14004388a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14004387d
xor al, 1
cmp r8, rdx
jne 0x140043830
jmp 0x14004387d
xor eax, eax
jmp 0x14004387d
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.140056200
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140056780
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140056710
int3

Function at 0x140045a94
Capabilities:
Parse pe header

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

Function at 0x14004a2d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004a0d0
Function at 0x14004d39c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004d3cc
xor eax, eax
jmp 0x14004d48f
mov rbp, rbx
cmp word [rax], si
je 0x14004d3f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004d3d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004d3d4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004d2bc
movsxd r14, eax
test eax, eax
jne 0x14004d42f
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14004d3c5
mov rcx, r14
call fcn.14004e278
mov rdi, rax
test rax, rax
jne 0x14004d448
xor ecx, ecx
call fcn.14004b91c
jmp 0x14004d424
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004d2bc
test eax, eax
jne 0x14004d479
mov rcx, rdi
call fcn.14004b91c
jmp 0x14004d483
xor ecx, ecx
call fcn.14004b91c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140050980
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14004c38c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140050a0a
cmp byte [rbp - 0x21], r15b
je 0x140050a05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140050a40
call fcn.14004ea88
test eax, eax
jne 0x140050a2c
cmp byte [rbp - 0x21], r15b
je 0x140050a24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140050a40
cmp byte [rbp - 0x21], r15b
je 0x140050a3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14004b96c
test eax, eax
jne 0x140050ae0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004c38c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140050a7f
cmp byte [rbp - 0x21], r15b
je 0x140050ab4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140050ab4
call fcn.14004ea88
test eax, eax
jne 0x140050aa0
cmp byte [rbp - 0x21], r15b
je 0x140050a99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140050ab4
cmp byte [rbp - 0x21], r15b
je 0x140050ab1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14004b96c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140050ae0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140050ae3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140050af1
mov rcx, rdi
call fcn.14004b91c
cmp byte [rbp + 0x3f], r15b
je 0x140050b00
mov rcx, qword [rbp + 0x27]
call fcn.14004b91c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400539e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053a08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140053a08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400048b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1040
call fcn.14000a7b0
sub rsp, rax
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov r14, qword [rsp + 0x1090]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x140004999
mov r9d, 0x1000
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.1400030e0
test al, al
jne 0x140004912
lea rdx, str.____Cant_read_module_headers
jmp 0x14000497d
movsxd rax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
add rcx, rax
mov r8d, ebx
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
cmp bx, r9w
jae 0x140004976
nop dword [rax + rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x14000496e
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], bl
jne 0x140004960
cmp rax, 4
je 0x1400049cd
inc r8d
cmp r8d, r9d
jb 0x140004940
lea rdx, str.____Cant_find_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001840
lea rdx, [0x140001a20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbx
mov r8d, ebx
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140004740
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400095f0
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140004976
mov r8d, dword [rdx + 8]
lea rcx, [rsp + 0x30]
add rcx, rax
je 0x140004976
test r8d, r8d
je 0x140004976
lea rax, [rsp + 0x30]
mov ebx, r8d
sub rcx, rax
lea rdx, [rcx + rdi]
jmp 0x14000499c