joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180a708f0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180a70a77
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180a70921
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a70907
add dl, dl
jne 0x180a7092e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a7098e
xor eax, eax
add dl, dl
jne 0x180a7093d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a70a45
add dl, dl
jne 0x180a7094e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a7095b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a70968
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a70975
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a70982
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a70916
mov eax, 1
add dl, dl
jne 0x180a7099e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a709ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a70993
sub eax, ebx
mov ebx, 1
jne 0x180a709e4
mov ecx, 1
add dl, dl
jne 0x180a709c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a709d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a709bb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a70916
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a70a00
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a70a0d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a709f5
cmp eax, 0x7d00
jae 0x180a70a33
cmp eax, 0x500
jb 0x180a70a2e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a70916
cmp eax, 0x7f
ja 0x180a70a36
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a70916
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a70a6a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180a70916
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000c5b0
cmp r11, r10
ja 0x14000c626
cmp r10, rdx
ja 0x14000c63a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000c5b2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000c590
jmp 0x14000c614
ja 0x14000c5ba
mov r11, r10
cmp rax, r8
jne 0x14000c554
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000c5f0
mov rdi, r8
sub ecx, edx
jns 0x14000c60b
jmp 0x14000c616
cmp r8, rsi
je 0x14000c64b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000c616
xor al, 1
cmp rdi, rsi
jne 0x14000c5d0
jmp 0x14000c616
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003aac0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003a870
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_std_src_threadmod.rs.
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003a8e0
ud2

Function at 0x1400133f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400096d0
cmp rax, rcx
je 0x140013415
cmp rdx, 4
jae 0x140013418
xor eax, eax
xor r8d, r8d
jmp 0x1400134b0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003d470]
movdqa xmm3, xmmword [0x14003d480]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140013440
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400134c7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400134b0
ret
Function at 0x140014410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001446b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001446b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140014486
cmp eax, 0x42
jne 0x14001446b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140014536
cmp byte [r9 + r11], 0x5f
jne 0x140014536
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001459e
mov rcx, rsi
xor edx, edx
call fcn.14000fe60
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14000fe60
test al, al
jne 0x140014631
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400144c2
lea rdx, [0x14003fa3b]
mov r8d, 1
call fcn.140009c60
test al, al
jne 0x140014631
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001447a
xor r14d, r14d
lea rbx, [0x14003fdf0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400144f4
cmp byte [rax + rcx], 0x45
je 0x140014653
sub r14, 1
jb 0x140014519
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014519
mov r8d, 2
mov rdx, rbx
call fcn.140009c60
test al, al
jne 0x140014631
mov rcx, rsi
call fcn.140011670
test al, al
jne 0x140014631
mov rax, qword [rsi]
test rax, rax
jne 0x1400144e0
jmp 0x14001447a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400145f8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140014592
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001457c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001456b
add dl, 0xa9
jmp 0x14001457a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400145f8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400145f8
movzx edx, bl
add rax, rdx
jae 0x140014540
jmp 0x1400145f8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400145f8
cmp rax, rcx
jae 0x1400145f5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001464b
cmp qword [rsi + 0x20], 0
je 0x140014644
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140014410
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001447c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014639
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003fdb0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140009c60
test al, al
je 0x140014639
mov dil, 2
jmp 0x14001447a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001447a
mov dil, 1
xor r8d, r8d
jmp 0x1400145fa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001447a
Function at 0x140018110
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
test r9, r9
je 0x140018163
mov r14, r9
mov rdi, r8
mov ecx, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
test rax, rax
je 0x14001816b
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140018190
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140018175
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140018180
movabs rax, 0x600000002
mov dword [rbp - 0x20], 0
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.kernel32.dll_GetConsoleMode]
test eax, eax
je 0x140018210
mov rbx, qword [rbp + 0x90]
movzx eax, byte [rbx + 4]
test rax, rax
je 0x140018284
invalid
cmp al, 3
movups xmm0, xmmword [0x140041f08]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r14, rax
cmovb rax, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, r15
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140018275
mov rcx, r15
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14001841b
test eax, eax
js 0x1400182f1
mov rax, qword [rbp + 0x18]
xor ecx, ecx
leave
cmp r14, 0x1000
mov r8d, 0x1000
cmovb r8, r14
lea rcx, [rbp + 0x10]
mov rdx, rdi
call fcn.14000a620
cmp qword [rbp + 0x10], 0
je 0x140018341
mov r8, qword [rbp + 0x18]
test r8, r8
je 0x140018359
cmp r8, r14
ja 0x14001847b
lea rbx, [rbp - 0x20]
mov rcx, rbx
mov rdx, rdi
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov r8, qword [rbp + 0x18]
mov r9, qword [rbp + 0x20]
movzx eax, byte [rdi]
lea rcx, [0x1400421c4]
movzx ecx, byte [rax + rcx]
cmp rcx, 2
jb 0x1400183cc
cmp rcx, r14
jbe 0x1400183cc
mov byte [rbx], al
mov byte [rbx + 4], 1
jmp 0x1400183ba
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov qword [rbp - 0x30], r15
mov byte [rbp + 0x2c], 0
mov dword [rbp + 0x28], 0
lea rax, [0x140041f70]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, [rbp - 0x28]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x20]
call fcn.140016c60
mov rcx, rax
call fcn.140016d70
mov ecx, 7
int 0x29
ud2
lea rax, str.library_std_src_syswindows_stdio.rs
mov rcx, r8
mov rdx, r14
Function at 0x14001b650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x14001b6b7
movzx r9d, byte [rax + 0x10]
movzx r8d, byte [rax + 0x3a]
xor edx, edx
test r8b, r8b
jne 0x14001b808
cmp r9b, 5
jb 0x14001b808
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r11b, r11b
jne 0x14001b6a7
cmp r9b, 6
je 0x14001b6a7
mov esi, 2
cmp rdx, 2
jb 0x14001b8b0
cmp rsi, rdx
jne case.0x14001a689.31
xor edx, edx
jmp 0x14001b808
xor edx, edx
xor r8d, r8d
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
inc edi
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
adc al, 0x32
test dl, 1
jne 0x14001b7fd
cmp r10b, 0x2e
jne 0x14001b7fd
movzx edx, byte [rdi]
cmp dl, 0x5c
sete r10b
cmp dl, 0x2f
cli
invalid
sete dl
or dl, r10b
jmp 0x14001b808
cmp r10b, 0x2e
sete r10b
and dl, r10b
xor r10d, r10d
test r11b, r11b
jne case.default.0x14001b830
invalid
cmp r9b, 6
je case.default.0x14001b830
invalid
invalid
invalid
movzx r9d, r9b
lea r10, [0x1400469d8]
add byte [rdi + 0x63], cl
or al, 0x8a
mov r10, qword [rax + 0x20]
add r10, 4
mov r9, qword [rax + 0x20]
mov r10, qword [rax + 0x30]
mov r10d, 6
jmp case.default.0x14001b830
mov r9, qword [rax + 0x20]
mov r10, qword [rax + 0x30]
mov r10d, 2
jmp case.default.0x14001b830
lea r8, str.library_std_srcpath.rs
mov ecx, 2
call fcn.14003a790
ud2
Function at 0x14001f320
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 0x14001f363
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, [0x14001ca10]
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.14003a750
ud2

Function at 0x140024c5d
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140024c90
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140024c95
call fcn.14001f320
mov ecx, dword [0x140056c14]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0xc0], 1
mov qword [rcx + 0xc8], rax
mov qword [rcx + 0xd0], rdx
add rsp, 0x38
ret
Function at 0x14002b030
Capabilities:
Parse pe header

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

Function at 0x1400309b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400307ac
Function at 0x140033c24
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 0x140033c54
xor eax, eax
jmp 0x140033d17
mov rbp, rbx
cmp word [rax], si
je 0x140033c79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140033c60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140033c5c
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.140033b44
movsxd r14, eax
test eax, eax
jne 0x140033cb7
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140033c4d
mov rcx, r14
call fcn.140034b00
mov rdi, rax
test rax, rax
jne 0x140033cd0
xor ecx, ecx
call fcn.1400321a4
jmp 0x140033cac
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.140033b44
test eax, eax
jne 0x140033d01
mov rcx, rdi
call fcn.1400321a4
jmp 0x140033d0b
xor ecx, ecx
call fcn.1400321a4
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 0x140037470
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.140032c14
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400374fa
cmp byte [rbp - 0x21], r15b
je 0x1400374f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140037530
call fcn.140035310
test eax, eax
jne 0x14003751c
cmp byte [rbp - 0x21], r15b
je 0x140037514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140037530
cmp byte [rbp - 0x21], r15b
je 0x14003752d
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.1400321f4
test eax, eax
jne 0x1400375d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140032c14
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003756f
cmp byte [rbp - 0x21], r15b
je 0x1400375a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400375a4
call fcn.140035310
test eax, eax
jne 0x140037590
cmp byte [rbp - 0x21], r15b
je 0x140037589
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400375a4
cmp byte [rbp - 0x21], r15b
je 0x1400375a1
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.1400321f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400375d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400375d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400375e1
mov rcx, rdi
call fcn.1400321a4
cmp byte [rbp + 0x3f], r15b
je 0x1400375f0
mov rcx, qword [rbp + 0x27]
call fcn.1400321a4
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 0x1400038a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140003930
jmp 0x14000391f
jae 0x1400039f0
cmp r8, 0x201
jae 0x140003930
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003988
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000395f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400188f0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400039b1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140003a58
mov r8d, r14d
cmp r15, r8
jne 0x140003910
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003a7b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000391f
jmp 0x140003930
cmp rsi, r8
jb 0x140003a95
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140004f80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140003a41
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400012d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140003a29
jmp 0x140003a41
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140019350
jmp 0x140003aaa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400197a0
ud2
Function at 0x140009ce0
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 [0x14001ba38]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140009d24
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 0x140009d8a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140009dc1
test eax, eax
js 0x140009d9b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140009db4
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.140004d20
mov rcx, rax
call fcn.140001a00
mov ecx, 7
int 0x29
ud2
Function at 0x140016860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400168da
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 0x1400168d0
cmp r11, r10
ja 0x140016973
cmp r10, rdx
ja 0x140016987
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400168d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400168b0
jmp 0x140016947
ja 0x1400168da
mov r11, r10
cmp rax, r8
jne 0x140016882
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001694b
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 0x140016920
mov r8, r10
sub ecx, r9d
jns 0x14001693e
jmp 0x14001694d
cmp r10, rdx
je 0x140016959
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001694d
xor al, 1
cmp r8, rdx
jne 0x140016900
jmp 0x14001694d
xor eax, eax
jmp 0x14001694d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140019350
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140019820
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400197a0
ud2

Function at 0x140018370
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140a5500a
jmp 0x140a5700f
jmp fcn.1406e1058