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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001b732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001b741
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b766
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x14001b7a0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b847
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14001b7db
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x14001b821
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14001b860
cmp rdi, rax
ja 0x14001b7f0
mov r8, rbx
test rbx, rbx
je 0x14001b847
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14001b84a
xchg edi, eax
adc bl, byte [rsi + 0x6d]
push rbx
invalid
Function at 0x1d8c31e50
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
push r13
nop
nop
orps xmm13, xmm12
pminsw mm1, mm4
nop
nop
shl r13, 0x10
shl r13w, 0x13
rol r13w, 0xe
nop
ror r13w, 6
emms
pop r13
mov ecx, 3
mov edx, 4
call sub.msvcrt.dll_calloc
mov rcx, rax
xor eax, eax
push r13
inc r13
push r12
emms
push rbx
emms
push r15
pmulhuw mm7, mm0
pop r15
xorps xmm4, xmm7
pop rbx
or r13w, r12w
pop r12
pcmpeqb mm6, mm1
pop r13
xor dword [rcx + rax*4], 3
push rcx
psllq mm5, 0x13
push r11
nop
pop r11
psrlq mm5, 0x35
pop rcx
inc rax
cmp rax, 3
jne 0x1d8c31e95
call sub.msvcrt.dll_free
push r10
punpckldq mm1, mm5
nop
punpckldq mm5, mm1
push r8
xchg r10d, r8d
adc r10, r8
shr r10d, 0x10
push rbx
paddusb mm0, mm7
pcmpeqb mm1, mm7
neg r10
pop rbx
emms
psllq mm3, 0x5c
pminsw mm0, mm1
pop r8
psrad mm7, 0x54
psadbw mm0, mm1
packssdw mm0, mm6
pop r10
xor eax, eax
mov dl, byte [rsi + rax]
mov byte [rbx + rax], dl
inc rax
test dl, dl
jne 0x1d8c31f11
push r11
mov r11, 1
push r12
inc r12
push rdx
nop
nop
push r14
maxss xmm0, xmm5
pminsw mm2, mm7
emms
pop r14
xadd r12b, dl
emms
pop rdx
sar r12b, 0x17
pop r12
dec r11
jne 0x1d8c31f27
pop r11
call fcn.1d8c528c3
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1d8c367b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x38
push r14
sbb r14, 0xc
pminsw mm3, mm6
nop
ror r14b, 9
push r11
emms
inc r14
neg r11w
sar r14d, 0xe
pop r11
dec r14d
psrad mm3, 0x2a
nop
paddsb mm2, mm4
pop r14
mov rax, qword gs:[0x60]
push rbx
nop
push rdx
nop
push r11
pandn mm1, mm3
push r10
nop
push r13
emms
push r12
nop
pop r12
psrlq mm2, 0x3f
pop r13
emms
pop r10
emms
pop r11
addss xmm2, xmm0
pop rdx
sub bx, 0x14
pop rbx
cmp dword [rax + 0xb8], 1
ja 0x1d8c36858
push r12
punpcklbw mm2, mm7
push r14
xchg r12d, r14d
push r15
emms
push rax
xor r12, rax
push r8
psllq mm5, 0xe
pop r8
psllq mm7, 8
pop rax
xchg r12w, r15w
pop r15
sbb r14b, r12b
pop r14
nop
pop r12
mov eax, 1
jmp 0x1d8c369f7
mov word [rsp + 0x2a], 0x7d4b
mov byte [rsp + 0x2c], 0
cmp r15, 0x34
jne 0x1d8c3687b
push r13
ror r13, 1
pop r13
jmp 0x1d8c36883
push r11
pslld mm1, 0x31
pop r11
push r10
sbb r10w, 6
pop r10
mov word [rsp + 0x2d], 0x566d
mov byte [rsp + 0x2f], 0
push rax
nop
push r15
xadd ax, r15w
push r9
minps xmm10, xmm5
push r14
nop
push rbx
sbb r14d, 0x14
pop rbx
pmaxsw mm5, mm2
pop r14
emms
pop r9
not r15w
pop r15
addss xmm10, xmm5
pop rax
lea rbx, [rsp + 0x2d]
lea rsi, [rsp + 0x2a]
mov rdx, rbx
mov rcx, rsi
call sub.msvcrt.dll__mbscmp
test eax, eax
jne 0x1d8c36929
mov rax, rsi
lea rdx, [rsp + 0x2c]
push r10
mulss xmm14, xmm8
push rdx
sub r10, rdx
mov rdx, r10
push r15
psrlq mm0, 0x50
pcmpgtb mm7, mm3
emms
pop r15
nop
emms
pop rdx
punpcklwd mm0, mm1
pop r10
xor byte [rax], 8
push r11
mov r11, 1
push rcx
pop rcx
dec r11
jne 0x1d8c36916
pop r11
inc rax
cmp rax, rdx
jne 0x1d8c368e6
jmp 0x1d8c36992
mov rax, rbx
lea rdx, [rsp + 0x2f]
push rax
nop
not al
shr ax, 4
nop
movups xmm9, xmm14
ror ax, 7
psrad mm1, 0x38
pop rax
xor byte [rax], 0x77
push r10
addss xmm12, xmm9
pcmpgtd mm5, mm1
punpckldq mm0, mm1
push rbx
not r10w
emms
emms
push rcx
ucomiss xmm7, xmm8
psrlw mm5, 0x52
push r13
emms
movups xmm4, xmm7
pop r13
shl bl, 8
mulss xmm7, xmm5
addss xmm12, xmm15
pop rcx
xchg r10b, bl
nop
pop rbx
pand mm5, mm7
nop
pop r10
inc rax
cmp rax, rdx
jne 0x1d8c36931
push r14
movss xmm13, xmm9
push r8
nop
emms
push r9
mov r14d, 0x16
paddsw mm0, mm3
emms
push r12
emms
emms
movss xmm11, xmm7
mov r14, r8
push r13
pmulhuw mm5, mm0
sub r9w, r14w
orps xmm10, xmm5
subss xmm15, xmm9
paddusb mm0, mm3
pop r13
subps xmm9, xmm4
nop
emms
dec r12
pop r12
emms
dec r8
sbb r8d, 5
pop r9
sub r8, r14
rcl r8w, 7
pop r8
emms
pop r14
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x1d8c38e4b
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov word [rsp + 0x20], 0x5140
mov byte [rsp + 0x22], 0
push r13
sub r13d, 0x15
push r10
emms
psrlq mm3, 0xe
pop r10
rcr r13b, 1
pop r13
mov dword [rsp + 0x28], 0x675e5023
mov byte [rsp + 0x2c], 0
push r15
nop
push r12
psrad mm4, 0x54
psrad mm1, 0x2e
push rdx
psrlq mm4, 0x4e
dec r12d
emms
push r13
psubusw mm7, mm1
emms
shr r12d, 1
shl r15b, 4
push rbx
pandn mm0, mm2
nop
emms
shr r13b, 6
rol dx, 4
pop rbx
emms
emms
orps xmm5, xmm13
emms
pop r13
nop
emms
pand mm3, mm2
pop rdx
nop
sar r12d, 0xc
pop r12
emms
pop r15
lea rsi, [rsp + 0x28]
lea rbx, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll__mbscmp
test eax, eax
jne 0x1d8c38f44
mov rax, rbx
lea rdx, [rsp + 0x22]
push r9
rcr r9, 0xc
emms
push rbx
psrad mm4, 0x17
pop rbx
nop
inc r9
pop r9
xor byte [rax], 0x55
push rax
emms
pcmpgtb mm0, mm7
psllq mm4, 0x69
emms
dec eax
push r15
addss xmm6, xmm0
emms
psrlw mm4, 8
nop
nop
pop r15
nop
dec rax
emms
ror rax, 0x16
not ax
andps xmm11, xmm8
pop rax
inc rax
cmp rax, rdx
jne 0x1d8c38ef3
jmp 0x1d8c38f58
push rcx
emms
nop
sub rcx, 0xf
nop
packssdw mm5, mm7
ror cx, 0xc
inc rcx
pop rcx
push rcx
neg cl
push r11
add rcx, r11
push r8
pand mm3, mm4
pop r8
rcr r11w, 5
pop r11
emms
pop rcx
push rdx
nop
push r15
psubsb mm6, mm3
push r10
nop
push rbx
emms
pop rbx
sar r15w, 0xe
pop r10
nop
pop r15
nop
pop rdx
push r11
mov r11, 1
push r12
inc r12
push rdx
nop
nop
push r14
maxss xmm0, xmm5
pminsw mm2, mm7
emms
pop r14
xadd r12b, dl
emms
pop rdx
sar r12b, 0x17
pop r12
dec r11
jne 0x1d8c38f94
pop r11
call fcn.1d8c528c3
mov rdx, rsi
mov rcx, rbx
call fcn.1d8c465e4
push r10
neg r10w
por mm6, mm2
push rdx
not r10w
neg dx
push r13
adc r13d, r10d
rol r10w, 0x17
push r15
movhlps xmm6, xmm13
movhlps xmm13, xmm4
push r11
psrlw mm1, 0x65
psllq mm2, 0x44
pop r11
pand mm4, mm7
dec r15
pop r15
xchg r13b, r10b
nop
pop r13
rcl r10d, 3
nop
pop rdx
shl r10w, 0x13
psrad mm2, 0x49
pop r10
call fcn.1d8c52825
imul rax, qword [rsp + 0x20], 0x3e8
cqo
idiv qword [rsp + 0x28]
push r9
comiss xmm11, xmm10
push rcx
adc r9, rcx
push r13
xor rcx, r9
pop r13
emms
pop rcx
comiss xmm1, xmm4
pop r9
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x1d8c42e89
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
push rdx
addps xmm4, xmm5
push r8
nop
push r13
pslld mm6, 0x2d
push r11
not r13w
push r12
rcl r13w, 0xa
push r15
emms
pop r15
pslld mm7, 0x4e
pop r12
mov dl, r13b
pop r11
not r8
pop r13
xorps xmm1, xmm10
pop r8
emms
pop rdx
call fcn.1d8c41687
test eax, eax
jne 0x1d8c42edd
push r8
emms
pop r8
jmp 0x1d8c42fcc
push rdx
emms
pop rdx
lea rdx, [0x1d8c64d20]
xor eax, eax
mov rcx, rdx
cmp eax, dword [rcx]
jae 0x1d8c42f7a
cmp r15b, 0x40
jne 0x1d8c42f09
push r10
psraw mm2, 0x40
pop r10
jmp 0x1d8c42f0d
push rdx
emms
pop rdx
push r14
subps xmm6, xmm12
pop r14
add rdx, 0x10
cmp dword [rdx - 8], ebx
jne 0x1d8c42f52
push r15
mulss xmm1, xmm11
dec r15
emms
emms
comiss xmm12, xmm9
psrld mm5, 6
rcr r15d, 0x15
dec r15d
not r15w
nop
nop
neg r15w
pop r15
shl rax, 4
mov rax, qword [rcx + rax + 0x10]
jmp 0x1d8c42fce
push r15
emms
push r9
psrlw mm0, 0x2b
emms
push r10
mov r9b, 7
emms
emms
pop r10
emms
emms
pop r9
emms
pop r15
inc eax
jmp 0x1d8c42eed
push r9
mov r9, 2
push rax
nop
psrlq mm0, 0x2c
push r14
emms
nop
push r11
nop
nop
push r10
psllq mm4, 0x34
or r10d, r11d
push rcx
pcmpgtw mm1, mm4
psraw mm1, 0x36
pop rcx
not r11w
emms
pop r10
dec r14d
punpcklwd mm0, mm1
pop r11
pcmpeqw mm4, mm6
pxor mm3, mm0
pop r14
maxps xmm14, xmm13
ror ax, 0x17
pop rax
dec r9
jne 0x1d8c42f83
pop r9
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1d8c50c60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push r10
pmullw mm1, mm3
push rcx
psrlw mm0, 0x1c
push rbx
pmullw mm6, mm3
push rax
pmaxub mm5, mm1
push r14
not cl
push rdx
emms
pop rdx
xor al, r14b
pop r14
emms
pop rax
movups xmm13, xmm7
pop rbx
mov cx, 0x13
pop rcx
maxss xmm3, xmm14
pop r10
push rax
movaps xmm6, xmm3
push r11
mov r11w, ax
push r15
rol r11w, 0x16
push r8
rol r8d, 2
push r12
rcl r11d, 0xf
push rdx
test r8b, r15b
pop rdx
neg r8b
pop r12
sbb rax, r11
pop r8
neg r11b
pop r15
subps xmm12, xmm11
pop r11
paddb mm0, mm5
pop rax
mov rax, qword gs:[0x60]
push rbx
mov bx, 0x13
pminsw mm1, mm6
nop
inc rbx
push r11
emms
nop
maxps xmm9, xmm3
push r13
xor r13d, ebx
emms
push r15
cmp r11d, ebx
pop r15
nop
emms
pop r13
minps xmm13, xmm1
psrad mm5, 0x21
mulss xmm14, xmm12
pop r11
psrlw mm6, 0x59
not bl
emms
psubusw mm2, mm0
pop rbx
movzx eax, byte [rax + 2]
mov dword [rcx], eax
cmp r15, 0x53
jne 0x1d8c50d4e
push rcx
psrld mm5, 0x69
push r9
inc r9d
sar r9w, 8
pop r9
emms
pop rcx
jmp 0x1d8c50d64
push r13
mulps xmm9, xmm6
push rdx
neg r13d
psrld mm3, 0x6b
pop rdx
maxss xmm0, xmm9
pop r13
push r10
emms
push r11
neg r10w
psrlq mm6, 3
pop r11
nop
pop r10
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 0x14000a2f0
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 0x14000a335
xor al, al
jmp 0x14000a382
cmp word [rbx], 0
je 0x14000a34d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a340
cmp word [rsp + 0x30], 0
je 0x14000a37b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a3a3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a360
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bba0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc9c
int3
Function at 0x14000ac20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f620
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002ed90]
lea rsi, [0x140031dd0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ac99
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a3b0
test al, al
je 0x14000ad79
lea rcx, [rsp + 0x20]
call fcn.1400142ac
movsxd r11, dword [0x14002ed90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002ed90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000acd4
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 0x14000acc4
add rax, 2
test ecx, ecx
jne 0x14000acb0
test edx, edx
je 0x14000acf7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000aca4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ace0
cmp rax, 2
jne 0x14000acfb
cmp word [rdi + 2], 0x3a
jne 0x14000acfb
mov al, 1
jmp 0x14000ad58
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 0x14000ad26
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ad4d
mov bl, 1
cmp dword [0x14002ed90], 0x400
jge 0x14000ad4d
mov rcx, rdi
call fcn.1400142ac
movsxd rdx, dword [0x14002ed90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002ed90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bba0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000aac0
int3
Function at 0x14000aea0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ed98]
test rcx, rcx
je 0x14000aedb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000aece
mov rcx, qword [0x14002ed98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ed98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140033dd8], 0
je 0x14000afce
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028a08]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002f5d0]
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 0x14000afaf
test al, 0x10
je 0x14000afaf
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 0x14000af55
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 0x14000c4a8
Capabilities:
Parse pe header

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

Function at 0x14000fc90
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 0x14000fafb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fafb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fafb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fafb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fafb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fafb
cmp dword [rcx + 0xf8], 0
je 0x14000fafb
mov ecx, ebx
call fcn.14000fbac
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.14000f988
nop
cmp dword [rbp + 0x20], 0
je 0x14000fb49
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb54
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa8c
Function at 0x1400190a8
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 0x14001912f
mov rsi, rbx
cmp word [rax], bp
je 0x1400190ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400190d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400190d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400168d8
mov rdi, rax
test rax, rax
je 0x14001911c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000da70
mov rbp, rdi
xor ecx, ecx
call fcn.1400159e8
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 0x14001b29c
Capabilities:
Get file size

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

Function at 0x14001f530
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f558
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f558
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140012e70
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140038008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003cab8]
test rcx, rcx
je 0x140012eda
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012ecd
mov rcx, qword [0x14003cab8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003cab8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003f300], 1
jne 0x140012f87
mov rbx, qword [0x14002d060]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002d050]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002d040]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002d030]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003cad0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140012f87
and eax, 0x10
je 0x140012f87
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140012f50
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014390
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret