joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400299fc
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.14001d0c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d0c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b4c
cmp rax, 0xffffffffffffffff
je 0x140029b4c
xor edi, edi
test rbp, rbp
jle 0x140029af7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f9f0
mov rbx, rax
test rax, rax
jne 0x140029a84
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029aed
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a9f8
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.14001dda0
cmp eax, 0xffffffff
je 0x140029acd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029a94
mov edx, r15d
mov ecx, r14d
call fcn.14001a9f8
jmp 0x140029aed
cmp byte [rsi + 0x38], dil
je 0x140029ae4
cmp dword [rsi + 0x34], 5
jne 0x140029ae4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029aed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b78c
jmp 0x140029b60
jns 0x140029b60
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d0c4
cmp rax, 0xffffffffffffffff
jne 0x140029b18
cmp byte [rsi + 0x30], dil
je 0x140029b60
mov edi, dword [rsi + 0x2c]
jmp 0x140029b60
mov ecx, r14d
call fcn.140018eb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b60
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 0x140029b60
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b59
mov eax, dword [rsi + 0x2c]
jmp 0x140029b5e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d0c4
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 0x14002ac50
Capabilities:
Parse pe header

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

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x140011073
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140012240
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400230f4]
call fcn.1400113b6
movzx eax, word [rbp + 0x100]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011352
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011122
Capabilities:
Execute command

Disassembly:
jmp 0x140011f20
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400230f4]
call fcn.1400113b6
mov dword [rbp + 0x24], 0
mov dword [rbp + 4], 0
jmp 0x140011f53
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [0x14001d178]
cmp dword [rbp + 4], eax
jge 0x140012042
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
movsxd rdx, dword [rbp + 4]
imul rdx, rdx, 0xc
lea r8, [0x14001d180]
lea rdx, [r8 + rdx + 4]
movsxd r8, dword [rbp + 4]
imul r8, r8, 0xc
lea r9, [0x14001d180]
add r9, r8
mov r8, r9
mov qword [rbp + 0xf8], r8
mov r8d, dword [rcx + rax + 8]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call fcn.1400111ae
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
cmp dword [rcx + rax], 0
jl 0x140011fdf
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
cmp dword [rcx + rax], 0x77
jle 0x140011ff9
mov ecx, dword [rbp + 4]
call fcn.1400110eb
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
jmp 0x14001203d
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
cmp dword [rcx + rax + 4], 0
jl 0x140012025
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
cmp dword [rcx + rax + 4], 0x3b
jle 0x14001203d
mov ecx, dword [rbp + 4]
call fcn.1400110eb
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
jmp 0x140011f4b
mov dword [rbp + 4], 0
jmp 0x140012053
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 4], eax
jge 0x140012062
call fcn.140011221
jmp 0x14001204b
mov dword [rbp + 4], 0
jmp 0x140012073
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [0x14001d178]
cmp dword [rbp + 4], eax
jge 0x140012136
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
mov edx, dword [0x14001d170]
cmp dword [rcx + rax], edx
je 0x1400120b8
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
mov edx, dword [0x14001d170]
inc edx
cmp dword [rcx + rax], edx
jne 0x1400120ec
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
mov edx, dword [0x14001d174]
cmp dword [rcx + rax + 4], edx
jne 0x1400120ec
lea rcx, str.GAMEOVER_n
call fcn.1400111c2
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xc
lea rcx, [0x14001d180]
movsxd rdx, dword [rbp + 4]
imul rdx, rdx, 0xc
mov qword [rbp + 0xf8], rdx
lea r8, [0x14001d180]
mov edx, dword [rcx + rax + 4]
mov rax, qword [rbp + 0xf8]
mov ecx, dword [r8 + rax]
call fcn.140011073
lea rcx, [0x14001acc4]
call fcn.1400111c2
jmp 0x14001206b
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011226
Capabilities:
Terminate process

Disassembly:
jmp 0x140013ae0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112b7
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014e50
xor al, al
jmp 0x140014ed1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e63
xor al, al
jmp 0x140014ed1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e8d
xor al, al
jmp 0x140014ed1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ea1
xor al, al
jmp 0x140014ed1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014eb3
xor al, al
jmp 0x140014ed1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014ecf
xor al, al
jmp 0x140014ed1
mov al, 1
add rsp, 0x38
ret
Function at 0x14003f4c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14006c160
sub rsp, rax
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov edi, 0x28
mov word [rsp + 0x30], ax
test dl, dl
je 0x14003f582
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14003f52d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14003f520
cmp rcx, 1
jb 0x14003f5da
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14003f550
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14005f698
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14003f510
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14003f5b3
lea rcx, [rsp + 0x80]
call fcn.140060cb0
jmp 0x14003f5b5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400514c0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140054bf0
int3

Function at 0x14003f5e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14003f63d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14003f630
cmp rcx, 1
jb 0x14003f6b7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14003f653
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14005f698
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14003f620
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400514c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140054bf0
int3
Function at 0x140051e98
Capabilities:
Parse pe header

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

Function at 0x140054d40
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 0x140054daf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054daf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054daf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054daf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054daf
cmp dword [rcx + 0x84], 0xe
jbe 0x140054daf
cmp dword [rcx + 0xf8], 0
je 0x140054daf
mov ecx, ebx
call fcn.140054e54
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.140054c48
nop
cmp dword [rbp + 0x20], 0
jne 0x140054e10
call fcn.140061574
cmp eax, 1
jne 0x140054e00
xor dl, dl
jmp 0x140054e0a
call fcn.140061540
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140054e1b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140054e24
int3
xor r8d, r8d
xor edx, edx
jmp 0x140054d40

Function at 0x140054f28
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 0x140054daf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054daf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054daf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054daf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054daf
cmp dword [rcx + 0x84], 0xe
jbe 0x140054daf
cmp dword [rcx + 0xf8], 0
je 0x140054daf
mov ecx, ebx
call fcn.140054e54
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.140054c48
nop
cmp dword [rbp + 0x20], 0
jne 0x140054e10
call fcn.140061574
cmp eax, 1
jne 0x140054e00
xor dl, dl
jmp 0x140054e0a
call fcn.140061540
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140054e1b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140054e24
int3
xor r8d, r8d
xor edx, edx
jmp 0x140054d40
Function at 0x140065c40
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 0x140065cc7
mov rsi, rbx
cmp word [rax], bp
je 0x140065c86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140065c70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140065c6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400631f0
mov rdi, rax
test rax, rax
je 0x140065cb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006c6e0
mov rbp, rdi
xor ecx, ecx
call fcn.140061630
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 0x140069988
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006999e
mov al, 1
jmp 0x140069a0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400699af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140069a08
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400663e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140069a08
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140069a08
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140069a08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140069a0a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14006bff0
Capabilities:
Parse pe header

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

Function at 0x1400019e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a2c
xor al, al
add rsp, 0x28
ret
Function at 0x140002060
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 eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
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, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret
Function at 0x14000a9b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
mov edi, 0x28
test dl, dl
je 0x14000aa55
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000aa0d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000aa00
cmp rcx, 1
jb 0x14000aa86
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000aa23
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140010460
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a9f0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c990
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14001011c
int3

Function at 0x14000ab10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000ab55
xor al, al
jmp 0x14000aba2
cmp word [rbx], 0
je 0x14000ab6d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000ab60
cmp word [rsp + 0x30], 0
je 0x14000ab9b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000abc3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000ab80
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c990
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14001011c
int3
Function at 0x14000bc10
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140032d18]
test rcx, rcx
je 0x14000bc50
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000bc3e
mov rcx, qword [0x140032d18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140032d18]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret
Function at 0x14000d284
Capabilities:
Parse pe header

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

Function at 0x14000ff28
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 0x14000ff97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ff97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ff97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ff97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ff97
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ff97
cmp dword [rcx + 0xf8], 0
je 0x14000ff97
mov ecx, ebx
call fcn.14001003c
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.14000fe30
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fff8
call fcn.140014b1c
cmp eax, 1
jne 0x14000ffe8
xor dl, dl
jmp 0x14000fff2
call fcn.140014ae8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140010003
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001000c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ff28

Function at 0x140010110
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 0x14000ff97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ff97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ff97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ff97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ff97
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ff97
cmp dword [rcx + 0xf8], 0
je 0x14000ff97
mov ecx, ebx
call fcn.14001003c
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.14000fe30
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fff8
call fcn.140014b1c
cmp eax, 1
jne 0x14000ffe8
xor dl, dl
jmp 0x14000fff2
call fcn.140014ae8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140010003
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001000c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ff28