joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4004b00
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
cmp byte [0x0401f090], 0
mov rbx, rcx
je 0x4004b47
call qword [sym.imp.maxutil.dll_wchar_t_const____ptr64___cdecl_UtilityInterface::GetRegistryKeyBase_void_]
lea r8, str._s_s
lea rcx, [0x0401f4f0]
mov r9, rax
lea rax, str.max_Finder
mov edx, 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR110.dll__snwprintf]
mov byte [0x0401f090], 0
lea rax, [rsp + 0x68]
lea r9, [0x04009770]
lea rdx, [0x0401f4f0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4004cc8
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 4]
lea rdx, str.InitX
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 8]
lea rdx, str.InitY
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 0xc]
lea rdx, str.InitW
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 0x10]
lea rdx, str.InitH
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 0x14]
lea rdx, str.InitFileSpec
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 0x18]
lea rdx, str.InitPropDlgX
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
lea rax, [rbx + 0x1c]
lea rdx, str.InitPropDlgY
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x50
pop rbx
ret
Function at 0x4005510
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov eax, dword [0x0401f2b8]
test eax, eax
je 0x4005563
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x0401f2b8]
test eax, eax
jne 0x400556c
call fcn.04001f50
test eax, eax
je 0x4005582
lea rdx, [rsp + 0x30]
mov rcx, qword [0x0401f000]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x4005586
xor eax, eax
jmp 0x40055db
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov edi, ebx
test rax, rax
sete dil
test edi, edi
je 0x40055bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x40055d8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x4007580
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call 0x4113000
add rsp, 0x28
jmp 0x4007580
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x20], 0
call qword [sym.imp.MSVCR110.dll___crtGetShowWindowMode]
movzx esi, ax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 8]
xor ebx, ebx
xor eax, eax
lock cmpxchg qword [0x0401f750], rdx
je 0x40075c7
cmp rax, rdx
jne 0x40075c5
mov ebx, 1
jmp 0x40075c7
jmp 0x40075ac
mov eax, dword [0x0401f758]
cmp eax, 1
jne 0x40075dc
lea ecx, [rax + 0x1e]
call sub.MSVCR110.dll__amsg_exit
jmp 0x400761b
mov eax, dword [0x0401f758]
test eax, eax
jne 0x4007611
mov dword [0x0401f758], 1
lea rdx, [0x040096b8]
lea rcx, [0x04009698]
call sub.MSVCR110.dll__initterm_e
test eax, eax
je 0x400761b
mov eax, 0xff
jmp 0x4007753
mov dword [0x0401f71c], 1
mov eax, dword [0x0401f758]
cmp eax, 1
jne 0x4007643
lea rdx, [0x04009690]
lea rcx, [0x04009660]
call sub.MSVCR110.dll__initterm
mov dword [0x0401f758], 2
test ebx, ebx
jne 0x4007650
xor eax, eax
xchg qword [0x0401f750], rax
cmp qword [0x0401f760], 0
je 0x400767c
lea rcx, [0x0401f760]
call fcn.040078d0
test eax, eax
je 0x400767c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x0401f760]
call rax
mov rax, qword [sym.imp.MSVCR110.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
ja 0x40076f2
cmp byte [rbx], 0
je 0x400769d
test edi, edi
jne 0x40076f2
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x40076af
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x400769d
movzx r9d, si
mov r8, rbx
xor edx, edx
lea rcx, [0x04000000]
call fcn.04002760
mov dword [0x0401f718], eax
cmp dword [0x0401f738], 0
jne 0x40076db
mov ecx, eax
call qword [sym.imp.MSVCR110.dll_exit]
cmp dword [0x0401f71c], 0
jne 0x40076f0
call qword [sym.imp.MSVCR110.dll__cexit]
mov eax, dword [0x0401f718]
jmp 0x4007753
cmp byte [rbx], 0x22
jne 0x4007704
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rbx]
call qword [sym.imp.MSVCR110.dll__ismbblead]
test eax, eax
je 0x4007719
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x400768f
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001290
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rbp + 0x60]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001446
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rax, [rbp + 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r12b
jne 0x140001312
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400029e0
nop
lea rsi, [rsp + 0x40]
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x58]
cmp r15, 0xf
cmova rsi, r14
mov r13, qword [rsp + 0x50]
test r13, r13
je 0x14000140c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp - 0x43]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp - 0x44], 1
lea rax, [r13 - 1]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
add rbx, rsi
movzx eax, byte [rbx]
cmp byte [rsp + rax + 0x60], 0
jne 0x1400013b2
nop
cmp rbx, rsi
je 0x14000140c
dec rbx
movzx eax, byte [rbx]
cmp byte [rsp + rax + 0x60], 0
je 0x1400013a0
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x14000140c
lea r8, [rbx + 1]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140002390
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001469
inc rdx
mov rcx, qword [rsp + 0x40]
mov r8, rcx
cmp rdx, 0x1000
jb 0x140001405
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140001437
call fcn.140002eec
jmp 0x140001469
cmp r15, 0xf
jbe 0x140001446
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14000143e
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000143e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140002eec
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov r8d, 6
lea rdx, str.Nigger
mov rcx, rdi
call fcn.1400029e0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140002e90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140003810
Capabilities:
Parse pe header

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

Function at 0x1429fa058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1429fa1df
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 0x1429fa089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429fa06f
add dl, dl
jne 0x1429fa096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429fa0f6
xor eax, eax
add dl, dl
jne 0x1429fa0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429fa1ad
add dl, dl
jne 0x1429fa0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429fa0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429fa0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429fa0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1429fa0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1429fa07e
mov eax, 1
add dl, dl
jne 0x1429fa106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429fa113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429fa0fb
sub eax, ebx
mov ebx, 1
jne 0x1429fa14c
mov ecx, 1
add dl, dl
jne 0x1429fa12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429fa13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429fa123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429fa07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1429fa168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429fa175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429fa15d
cmp eax, 0x7d00
jae 0x1429fa19b
cmp eax, 0x500
jb 0x1429fa196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429fa07e
cmp eax, 0x7f
ja 0x1429fa19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429fa07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1429fa1d2
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 0x1429fa07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011f40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1400120d6
cmp r9, 4
jb 0x140011f7a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140011f61
xor r11d, r11d
test r9, r9
je 0x1400120d6
cmp r9, 8
jb 0x1400120ad
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x140011fac
cmp r10, r8
jae 0x1400120ad
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140011fc1
cmp r10, rdx
jae 0x1400120ad
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140012067
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x140012000
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14001209f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140012080
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1400120d6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x1400120c0
add rsp, 8
ret
Function at 0x14001deb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov qword [rsp + 0x28], r15
movabs r15, 0x7a1435883d4d519d
mov r10, rdx
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
cmp rdx, 0x20
jb 0x14001e016
mov qword [rsp + 0x18], rbx
lea rcx, [rdx - 0x1f]
mov qword [rsp + 0x20], rdi
lea r11, [r8 + rbp]
movabs rdi, 0x60ea27eeadc0b5d6
add rcx, r9
add rdi, r8
movabs rbx, 0x61c8864e7a143579
add rbx, r8
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r9]
imul rax, rbp
add rdi, rax
mov rax, qword [r9 + 8]
imul rax, rbp
rol rdi, 0x1f
add r11, rax
mov rax, qword [r9 + 0x10]
imul rax, rbp
imul rdi, rsi
add r8, rax
rol r11, 0x1f
mov rax, qword [r9 + 0x18]
add r9, 0x20
imul rax, rbp
imul r11, rsi
add rbx, rax
rol r8, 0x1f
rol rbx, 0x1f
imul rbx, rsi
imul r8, rsi
cmp r9, rcx
jb 0x14001df30
mov rdx, rbx
mov rax, r8
rol rdx, 0x12
mov rcx, rdi
rol rax, 0xc
add rdx, rax
rol rdi, 1
mov rax, r11
imul rcx, rbp
imul r11, rbp
imul rbx, rbp
imul r8, rbp
rol rax, 7
add rdx, rax
rol rcx, 0x1f
add rdx, rdi
rol r11, 0x1f
mov rdi, qword [rsp + 0x20]
movabs rax, 0x85ebca77c2b2ae63
imul rcx, rsi
imul r11, rsi
xor rdx, rcx
rol rbx, 0x1f
imul rdx, rsi
imul rbx, rsi
sub rdx, r15
rol r8, 0x1f
xor rdx, r11
imul rdx, rsi
imul r8, rsi
sub rdx, r15
xor rdx, r8
imul rdx, rsi
sub rdx, r15
xor rdx, rbx
mov rbx, qword [rsp + 0x18]
imul rdx, rsi
add rax, rdx
jmp 0x14001e01a
lea rax, [r8 + r14]
add rax, r10
and r10d, 0x1f
cmp r10, 8
jb 0x14001e067
mov edx, r10d
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add r10, rcx
nop word [rax + rax]
mov rcx, qword [r9]
add r9, 8
imul rcx, rbp
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
sub rdx, 1
jne 0x14001e040
mov r15, qword [rsp + 0x28]
movabs r8, 0x165667b19e3779f9
cmp r10, 4
jb 0x14001e099
mov edx, dword [r9]
add r9, 4
imul rdx, rsi
xor rax, rdx
rol rax, 0x17
imul rax, rbp
add rax, r8
sub r10, 4
test r10, r10
je 0x14001e0bd
nop
movzx ecx, byte [r9]
lea r9, [r9 + 1]
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
sub r10, 1
jne 0x14001e0a0
mov rcx, rax
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x30]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r14
pop rsi
ret
Function at 0x14001e0f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rbx, qword [rcx]
mov rdi, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rbx, 0x20
jb 0x14001e1d8
mov r8, qword [rcx + 8]
mov r10, qword [rcx + 0x20]
mov rdx, r8
mov r9, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov rax, r9
rol rax, 0xc
mov r11, rcx
rol r11, 7
add r11, rax
rol r8, 1
mov rax, r10
imul rdx, rbp
imul rcx, rbp
imul r9, rbp
imul r10, rbp
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
add r11, r8
rol rcx, 0x1f
imul rdx, rsi
imul rcx, rsi
rol r9, 0x1f
movabs rax, 0x85ebca77c2b2ae63
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r9, rsi
imul r10, rsi
sub r11, r15
xor r11, rcx
imul r11, rsi
sub r11, r15
xor r11, r9
imul r11, rsi
sub r11, r15
xor r11, r10
imul r11, rsi
add rax, r11
jmp 0x14001e1df
mov rax, qword [rcx + 0x18]
add rax, r14
add rax, rbx
lea r8, [rdi + 0x28]
and ebx, 0x1f
cmp rbx, 8
jb 0x14001e227
mov edx, ebx
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add rbx, rcx
nop dword [rax]
mov rcx, qword [r8]
add r8, 8
imul rcx, rbp
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
sub rdx, 1
jne 0x14001e200
movabs r9, 0x165667b19e3779f9
cmp rbx, 4
jb 0x14001e254
mov edx, dword [r8]
add r8, 4
imul rdx, rsi
xor rax, rdx
rol rax, 0x17
imul rax, rbp
add rax, r9
sub rbx, 4
test rbx, rbx
je 0x14001e27d
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
sub rbx, 1
jne 0x14001e260
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x140031294
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140038a6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038a6b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038a6b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038a6b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038a6b
cmp dword [rcx + 0x84], 0xe
jbe 0x140038a6b
cmp dword [rcx + 0xf8], 0
je 0x140038a6b
mov ecx, ebx
call fcn.140038b10
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140038904
nop
cmp dword [rbp + 0x20], 0
jne 0x140038acc
call fcn.14003cca0
cmp eax, 1
jne 0x140038abc
xor dl, dl
jmp 0x140038ac6
call fcn.14003cc6c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140038ad7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140038ae0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400389fc

Function at 0x140038be4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400389fc
Function at 0x14003cbd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003cc57
mov rsi, rbx
cmp word [rax], bp
je 0x14003cc16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003cc00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003cbfc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140039a00
mov rdi, rax
test rax, rax
je 0x14003cc44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f510
mov rbp, rdi
xor ecx, ecx
call fcn.1400399a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003f280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003f2a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003f2a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400214b0
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 0x140021550
jmp 0x14002153f
jae 0x14002160f
cmp r8, 0x201
jae 0x140021550
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x1400215a7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002157f
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.1400a5b30
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 0x1400215d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140021689
mov r8d, r13d
cmp r12, r8
jne 0x140021530
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400216bd
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002153f
jmp 0x140021550
cmp r14, r8
jb 0x1400216d7
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140022eb0
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 0x140021672
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140005d60
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 0x14002165d
jmp 0x140021672
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.1400a67f0
jmp 0x1400216ec
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.1400a6c10
ud2