joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801ca1d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18026f390]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1801ca22b
cmp word [rdx], r13w
jne 0x1801ca22b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801ca230
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801ca355
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801ca376
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801ca269
mov rdx, r9
mov word [rbx], cx
jmp 0x1801ca290
cmp r9, r8
jae 0x1801ca2a0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801ca24a
jmp 0x1801ca355
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801ca34a
cmp dword [rsp + 0x80], esi
je 0x1801ca34a
lea r8, [0x18026f390]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801ca322
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801ca2f2
mov word [rbx], r13w
jmp 0x1801ca352
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1801ca2ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801ca352
cmp word [rsp + 0x70], r13w
jne 0x1801ca32f
cmp rbx, r14
je 0x1801ca2ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801cafa4
cmp word [rsp + 0x70], r13w
je 0x1801ca355
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18026f390]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801ca34f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801ca355
Function at 0x1801cb140
Capabilities:
Get file size

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

Function at 0x1801cec24
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801cec44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801c0db0
or eax, 0xffffffff
jmp 0x1801cec46
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801d0d94
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 0x1801d0dc4
xor eax, eax
jmp 0x1801d0e87
mov rbp, rbx
cmp word [rax], si
je 0x1801d0de9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801d0dd0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801d0dcc
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.1801d0cb4
movsxd r14, eax
test eax, eax
jne 0x1801d0e27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801d0dbd
mov rcx, r14
call fcn.1801cb3dc
mov rdi, rax
test rax, rax
jne 0x1801d0e40
xor ecx, ecx
call fcn.1801c5ad0
jmp 0x1801d0e1c
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.1801d0cb4
test eax, eax
jne 0x1801d0e71
mov rcx, rdi
call fcn.1801c5ad0
jmp 0x1801d0e7b
xor ecx, ecx
call fcn.1801c5ad0
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 0x1801d0ea4
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 0x1801d0f2b
mov rsi, rbx
cmp word [rax], bp
je 0x1801d0eea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801d0ed4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801d0ed0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801cb3dc
mov rdi, rax
test rax, rax
je 0x1801d0f18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801da580
mov rbp, rdi
xor ecx, ecx
call fcn.1801c5ad0
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 0x1801d6334
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1801c7808
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1801d63d5
cmp ebx, dword [rsp + 0x30]
je 0x1801d63ce
test esi, esi
je 0x1801d63ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801d63a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801d63b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801d6393
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801d63ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801d63d7
mov eax, 1
jmp 0x1801d63d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801d8e90
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.1801cafa4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801cafa4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801d8fe0
cmp rax, 0xffffffffffffffff
je 0x1801d8fe0
xor edi, edi
test rbp, rbp
jle 0x1801d8f8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801c5a58
mov rbx, rax
test rax, rax
jne 0x1801d8f18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801d8f81
mov edx, 0x8000
mov ecx, r14d
call fcn.1801d8d14
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.1801c9ecc
cmp eax, 0xffffffff
je 0x1801d8f61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801d8f28
mov edx, r15d
mov ecx, r14d
call fcn.1801d8d14
jmp 0x1801d8f81
cmp byte [rsi + 0x38], dil
je 0x1801d8f78
cmp dword [rsi + 0x34], 5
jne 0x1801d8f78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1801d8f81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801c5ad0
jmp 0x1801d8ff4
jns 0x1801d8ff4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801cafa4
cmp rax, 0xffffffffffffffff
jne 0x1801d8fac
cmp byte [rsi + 0x30], dil
je 0x1801d8ff4
mov edi, dword [rsi + 0x2c]
jmp 0x1801d8ff4
mov ecx, r14d
call fcn.1801d2d0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801d8ff4
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 0x1801d8ff4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801d8fed
mov eax, dword [rsi + 0x2c]
jmp 0x1801d8ff2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801cafa4
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 0x1801da110
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801da138
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801da138
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400290d0
Capabilities:
Authenticate hmac

Disassembly:
mov al, 0x15
push rax
push rdi
movabs eax, dword [0x4e7b12b295d41a7d]
loopne 0x1400290bd
nop
mov ecx, esi
xor edx, esp
jge 0x140029134
movsb byte [rdi], byte [rsi]
xor al, 0xe0
vpmuludq xmm9, xmm11, xmmword [rbp + rax - 0x7811c897]
and esp, esi
mov word [0xc7f0c82e], es
add ah, dl
jge 0x14002912b
ffreep st(1)
out dx, al
stc
fild qword [rdx]
jne 0x1400290ce
std
sub dh, byte [rbp - 3]
std
push 0xffffffffb885d33a
call 0x1497113da
not dword [rcx]
std
movabs al, byte [0x5f10c4bc4a6bab31]
pop rsi
packuswb mm3, qword [rdi]
jl 0x1400290a2
cmpsd dword [rsi], dword [rdi]
sub dword [rbp - 0x64], esi
xchg esi, eax
ja 0x140029158
or byte [rbx - 0xe], ch
cmp byte [rdi - 0x405efd53], cl
pop rax
imul esi, dword [rax + 0x28], 0xffffffc3
fdivr dword [rcx - 0x53]
sbb esi, dword [rdi + 0x7c]
invalid
imul esi, edx, 0x38
invalid
test dword [rdx + rdi*2], 0x968d2b3c
invalid
lea edx, [rsi + 0x367529a]
xchg dword [rdi - 0x39d30eef], esi
int1
sub al, 0xc6
int1
xchg ecx, eax
dec byte [rdx + 0x705c4bfb]
std
jno 0x1400290f5
mov eax, 0x8d4de1d4
jmp 0xc6e1218f
xor edi, eax
out 0x10, al
pop rbp
jmp 0x140029126

Function at 0x14002a030
Capabilities:
Encode data using xor

Disassembly:
jge 0x14002a065
int 0x8d
retf 0x97af
jnp 0x14002a013
or cl, byte [rbp - 0x68ed7bfb]
invalid
sti
pushfq
movsb byte [rdi], byte [rsi]
out 0xa5, eax
outsd dx, dword [rsi]
test dword [rbp + 0x2e], ebp
test dword [rsi], esp
pop rsi
mov eax, 0xe675dabd
xor eax, 0x4db73400
sub esp, edx
jl 0x14002a06c
invalid
Function at 0x14069c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14069c1df
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 0x14069c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069c06f
add dl, dl
jne 0x14069c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069c0f6
xor eax, eax
add dl, dl
jne 0x14069c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069c1ad
add dl, dl
jne 0x14069c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14069c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069c07e
mov eax, 1
add dl, dl
jne 0x14069c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069c0fb
sub eax, ebx
mov ebx, 1
jne 0x14069c14c
mov ecx, 1
add dl, dl
jne 0x14069c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14069c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069c15d
cmp eax, 0x7d00
jae 0x14069c19b
cmp eax, 0x500
jb 0x14069c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069c07e
cmp eax, 0x7f
ja 0x14069c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14069c1d2
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 0x14069c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400020b0
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 r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
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
pop r12
ret

Function at 0x14000a340
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002d008]
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
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a3e5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a39d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a390
cmp rcx, 1
jb 0x14000a416
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 0x14000a3b3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400101cc
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a380
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bd80
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000fe90
int3
Function at 0x14000a4a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
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 0x14000a4e5
xor al, al
jmp 0x14000a532
cmp word [rbx], 0
je 0x14000a4fd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4f0
cmp word [rsp + 0x30], 0
je 0x14000a52b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a553
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a510
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bd80
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fe90
int3
Function at 0x14000ad50
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f660
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002ed74]
lea rsi, [0x140031db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000adc9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a560
test al, al
je 0x14000aeaf
lea rcx, [rsp + 0x20]
call fcn.1400143e8
movsxd r11, dword [0x14002ed74]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002ed74], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae04
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000adf4
add rax, 2
test ecx, ecx
jne 0x14000ade0
test edx, edx
je 0x14000ae27
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000add4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae10
cmp rax, 2
jne 0x14000ae2b
cmp word [rdi + 2], 0x3a
jne 0x14000ae2b
mov al, 1
jmp 0x14000ae8e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae58
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae58
mov bl, 1
jmp 0x14000ae5c
test bl, bl
je 0x14000ae83
cmp dword [0x14002ed74], 0x400
jge 0x14000ae83
mov rcx, rdi
call fcn.1400143e8
movsxd rdx, dword [0x14002ed74]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002ed74], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bd80
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000abf0
int3
Function at 0x14000afd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ed78]
test rcx, rcx
je 0x14000b00b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000affe
mov rcx, qword [0x14002ed78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ed78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140035db2], 0
je 0x14000b0fe
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028960]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002f5b0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b0df
test al, 0x10
je 0x14000b0df
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b085
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c688
Capabilities:
Parse pe header

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

Function at 0x14000fe84
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 0x14000fce3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fce3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fce3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fce3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fce3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fce3
cmp dword [rcx + 0xf8], 0
je 0x14000fce3
mov ecx, ebx
call fcn.14000fda0
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.14000fb70
nop
cmp dword [rbp + 0x20], 0
je 0x14000fd31
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fd3c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fc74
Function at 0x140019154
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 0x1400191db
mov rsi, rbx
cmp word [rax], bp
je 0x14001919a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019184
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019180
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016994
mov rdi, rax
test rax, rax
je 0x1400191c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000dc50
mov rbp, rdi
xor ecx, ecx
call fcn.140015ac4
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