joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000626a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x14000627f
xor esi, esi
jmp 0x14000642c
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
lea rax, [rcx + 8]
cmp qword [rcx], 0
je 0x1400062c9
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
mov r8, rsi
call fcn.140006450
cmp qword [rbx], 0
jne 0x1400063fa
jmp 0x1400063cf
mov cl, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov r9b, byte [rdi + 0x18]
test cl, cl
jne 0x1400063cf
mov r10d, r9d
xor r10b, 1
mov byte [rdi + 0x18], r10b
test r8, r8
je 0x140006307
cmp r8, rdx
jae 0x140006301
cmp byte [rsi + r8], 0xbf
jg 0x140006307
jmp 0x140006438
jne 0x140006438
cmp r8, rdx
je 0x1400063c6
mov bl, byte [rsi + r8]
movzx r10d, bl
test r10b, r10b
jns 0x14000637b
mov r11d, r10d
and r11d, 0x1f
movzx ebp, byte [rsi + r8 + 1]
and ebp, 0x3f
cmp r10b, 0xdf
jbe 0x140006368
movzx r10d, byte [rsi + r8 + 2]
shl ebp, 6
and r10d, 0x3f
or r10d, ebp
cmp bl, 0xf0
jb 0x140006374
movzx ebx, byte [rsi + r8 + 3]
and r11d, 7
shl r11d, 0x12
shl r10d, 6
and ebx, 0x3f
or ebx, r10d
or ebx, r11d
mov r10d, ebx
jmp 0x14000637b
shl r11d, 6
or r11d, ebp
mov r10d, r11d
jmp 0x14000637b
shl r11d, 0xc
or r10d, r11d
test r9b, r9b
jne 0x1400063ed
cmp r10d, 0x110000
je 0x1400063cb
mov r9d, 1
cmp r10d, 0x80
jb 0x1400063b8
mov r9d, 2
cmp r10d, 0x800
jb 0x1400063b8
cmp r10d, 0x10000
mov r9d, 4
sbb r9, 0
add r8, r9
mov qword [rax], r8
mov r9b, 1
jmp 0x1400062d8
test r9b, r9b
jne 0x1400063f0
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x140006278
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x140006414
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140006425
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x14000642c
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140006278
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rax, str._rustc_129f3b9964af4d4a709d1383930ade12dfe7c081librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.140026fc0
int3
Function at 0x14000c640
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000c665
cmp rax, rcx
je 0x14000c66b
cmp rdx, 4
jae 0x14000c672
xor eax, eax
xor r8d, r8d
jmp 0x14000c710
pop rbp
jmp fcn.140002920
xor eax, eax
jmp 0x14000c727
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140029520]
movdqa xmm3, xmmword [0x140029530]
pxor xmm1, xmm1
nop word cs:[rax + 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 0x14000c6a0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c727
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c710
pop rbp
ret
Function at 0x1400132f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]

Function at 0x140018ae4
Capabilities:
Parse pe header

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

Function at 0x14001c1a8
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 0x14001c217
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c217
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c217
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c217
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c217
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c217
cmp dword [rcx + 0xf8], 0
je 0x14001c217
mov ecx, ebx
call fcn.14001c2c8
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.14001c0a4
nop
cmp dword [rbp + 0x20], 0
je 0x14001c265
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c270
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001c1a8

Function at 0x14001c3ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c1a8
Function at 0x14001f46c
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 0x14001f49c
xor eax, eax
jmp 0x14001f55f
mov rbp, rbx
cmp word [rax], si
je 0x14001f4c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f4a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f4a4
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.14001f38c
movsxd r14, eax
test eax, eax
jne 0x14001f4ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f495
mov rcx, r14
call fcn.140020348
mov rdi, rax
test rax, rax
jne 0x14001f518
xor ecx, ecx
call fcn.14001d9ec
jmp 0x14001f4f4
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.14001f38c
test eax, eax
jne 0x14001f549
mov rcx, rdi
call fcn.14001d9ec
jmp 0x14001f553
xor ecx, ecx
call fcn.14001d9ec
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 0x140022a50
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.14001e45c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140022ada
cmp byte [rbp - 0x21], r15b
je 0x140022ad5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140022b10
call fcn.140020b58
test eax, eax
jne 0x140022afc
cmp byte [rbp - 0x21], r15b
je 0x140022af4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140022b10
cmp byte [rbp - 0x21], r15b
je 0x140022b0d
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.14001da3c
test eax, eax
jne 0x140022bb0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001e45c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140022b4f
cmp byte [rbp - 0x21], r15b
je 0x140022b84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140022b84
call fcn.140020b58
test eax, eax
jne 0x140022b70
cmp byte [rbp - 0x21], r15b
je 0x140022b69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140022b84
cmp byte [rbp - 0x21], r15b
je 0x140022b81
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.14001da3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140022bb0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140022bb3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140022bc1
mov rcx, rdi
call fcn.14001d9ec
cmp byte [rbp + 0x3f], r15b
je 0x140022bd0
mov rcx, qword [rbp + 0x27]
call fcn.14001d9ec
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 0x140025ab0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140025ad8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140025ad8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400013dc
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

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, 0x10
mov rax, qword gs:[0x60]
mov ebp, ecx
xor r14d, r14d
mov rdx, qword [rax + 0x18]
mov r8, qword [rdx + 0x10]
cmp qword [r8 + 0x30], r14
je 0x1400014cc
mov r9, qword [r8 + 0x30]
mov edx, r14d
movups xmm0, xmmword [r8 + 0x58]
mov r8, qword [r8]
movsxd rax, dword [r9 + 0x3c]
movdqu xmmword [rsp], xmm0
mov r11d, dword [rax + r9 + 0x88]
test r11d, r11d
je 0x14000140b
mov rax, qword [rsp]
shr rax, 0x10
cmp r14w, ax
jae 0x14000146a
mov rcx, qword [rsp + 8]
movzx r10d, ax
movsx eax, byte [rcx]
ror edx, 0xd
cmp byte [rcx], 0x61
jl 0x14000145f
add edx, 0xffffffe0
add edx, eax
inc rcx
sub r10, 1
jne 0x140001451
lea r10, [r9 + r11]
mov r11d, r14d
mov edi, dword [r10 + 0x20]
add rdi, r9
cmp dword [r10 + 0x18], r14d
jbe 0x14000140b
mov esi, dword [rdi]
mov ebx, r14d
add rsi, r9
lea rdi, [rdi + 4]
movsx ecx, byte [rsi]
inc rsi
ror ebx, 0xd
add ebx, ecx
test cl, cl
jne 0x14000148a
lea eax, [rbx + rdx]
cmp eax, ebp
je 0x1400014ae
inc r11d
cmp r11d, dword [r10 + 0x18]
jb 0x14000147e
jmp 0x14000140b
mov eax, dword [r10 + 0x24]
lea ecx, [r11 + r11]
add rax, r9
movzx edx, word [rcx + rax]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1400014ce
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x10
pop r14
ret
Function at 0x140002080
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 0x14000217b
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 0x140002183
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ba
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 0x140002190
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021e5
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 0x14000220b
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 0x1400021f0
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 0x14000a2e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a391
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000fef8
cmp rax, 1
jne 0x14000a3c7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a36d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a360
cmp rcx, 1
jb 0x14000a3c7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a330
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000ba70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000fbbc
int3
Function at 0x14000a450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
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 0x14000a495
xor al, al
jmp 0x14000a4e2
cmp word [rbx], 0
je 0x14000a4ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4a0
cmp word [rsp + 0x30], 0
je 0x14000a4db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a503
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000ba70
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fbbc
int3
Function at 0x14000aca0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fd70
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd90]
lea rsi, [0x140044dd0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad19
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a510
test al, al
je 0x14000adf9
lea rcx, [rsp + 0x20]
call fcn.1400142c0
movsxd r11, dword [0x14002fd90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad54
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 0x14000ad44
add rax, 2
test ecx, ecx
jne 0x14000ad30
test edx, edx
je 0x14000ad77
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad24
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad60
cmp rax, 2
jne 0x14000ad7b
cmp word [rdi + 2], 0x3a
jne 0x14000ad7b
mov al, 1
jmp 0x14000add8
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 0x14000ada6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000adcd
mov bl, 1
cmp dword [0x14002fd90], 0x400
jge 0x14000adcd
mov rcx, rdi
call fcn.1400142c0
movsxd rdx, dword [0x14002fd90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000ba70
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ab40
int3
Function at 0x14000af20
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd98]
test rcx, rcx
je 0x14000af5b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af4e
mov rcx, qword [0x14002fd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fda8], 0
je 0x14000b04e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400298c8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400425d0]
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 0x14000b02f
test al, 0x10
je 0x14000b02f
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 0x14000afd5
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 0x14000c344
Capabilities:
Parse pe header

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

Function at 0x14000fbb0
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 0x14000fa1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa1b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa1b
cmp dword [rcx + 0xf8], 0
je 0x14000fa1b
mov ecx, ebx
call fcn.14000facc
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.14000f8a8
nop
cmp dword [rbp + 0x20], 0
je 0x14000fa69
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fa74
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f9ac
Function at 0x1400191a4
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 0x14001922b
mov rsi, rbx
cmp word [rax], bp
je 0x1400191ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400191d4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400191d0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400169d4
mov rdi, rax
test rax, rax
je 0x140019218
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d990
mov rbp, rdi
xor ecx, ecx
call fcn.1400159f8
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 0x14001b7f4
Capabilities:
Get file size

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

Function at 0x14001fc80
Capabilities:
Parse pe header

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