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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14005319e
call fcn.14003fdbc
mov dword [rax], 0x16
call fcn.14003de68
jmp 0x1400532bd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400532bd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400532bd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400531cd
lock or dword [rcx + 0x14], 0x10
jmp 0x1400532bd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400531e1
call fcn.140055330
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140051188
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14005666c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400532ab
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140053276
mov rcx, rsi
call fcn.140051188
cmp eax, edi
je 0x140053261
mov rcx, rsi
call fcn.140051188
cmp eax, 0xfffffffe
je 0x140053261
mov rcx, rsi
call fcn.140051188
movsxd rbx, eax
lea r14, [0x1400cc870]
mov rcx, rsi
sar rbx, 6
call fcn.140051188
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140053268
lea rdx, [0x1400c8580]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140053276
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14005329a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14005329a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14005329a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400532c0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400532d8
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140052ffa
call fcn.14003fdbc
mov dword [rax], 0x16
call fcn.14003de68
jmp 0x14005314a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14005314a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14005314a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140053029
lock or dword [rcx + 0x14], 0x10
jmp 0x14005314a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005303d
call fcn.140055330
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14005304d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140053050
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140051188
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14005666c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140053138
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400530e3
mov rcx, rbx
call fcn.140051188
cmp eax, 0xffffffff
je 0x1400530ce
mov rcx, rbx
call fcn.140051188
cmp eax, 0xfffffffe
je 0x1400530ce
mov rcx, rbx
call fcn.140051188
movsxd rdi, eax
lea rsi, [0x1400cc870]
mov rcx, rbx
sar rdi, 6
call fcn.140051188
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400530d5
lea rdx, [0x1400c8580]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400530e3
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140053107
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140053107
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140053107
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140053125
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140053130
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14005314f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140052fc4
Function at 0x1400561c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400cc870]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14005621e
cmp word [rdx], r12w
jne 0x14005621e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140056224
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005637f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005635a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005625d
mov rcx, r9
jmp 0x140056280
cmp r9, rdx
jae 0x140056297
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140056241
jmp 0x14005637f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056354
cmp dword [rsp + 0x80], edi
je 0x140056354
mov rdx, r14
lea r11, [0x1400cc870]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14005632d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140056300
mov word [rbx], r12w
jmp 0x14005637b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140056309
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005637b
cmp word [rsp + 0x70], r12w
jne 0x14005633a
cmp rbx, rsi
je 0x1400562fa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140055614
cmp word [rsp + 0x70], r12w
je 0x14005637f
mov word [rbx], r13w
jmp 0x14005637b
lea r11, [0x1400cc870]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140056377
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005637f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005bd5c
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 0x14005bd8c
xor eax, eax
jmp 0x14005be4f
mov rbp, rbx
cmp word [rax], si
je 0x14005bdb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005bd98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005bd94
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.1400580b8
movsxd r14, eax
test eax, eax
jne 0x14005bdef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005bd85
mov rcx, r14
call fcn.1400496c0
mov rdi, rax
test rax, rax
jne 0x14005be08
xor ecx, ecx
call fcn.14004962c
jmp 0x14005bde4
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.1400580b8
test eax, eax
jne 0x14005be39
mov rcx, rdi
call fcn.14004962c
jmp 0x14005be43
xor ecx, ecx
call fcn.14004962c
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 0x14005be6c
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 0x14005bef3
mov rsi, rbx
cmp word [rax], bp
je 0x14005beb2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005be9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005be98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400496c0
mov rdi, rax
test rax, rax
je 0x14005bee0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003a5c0
mov rbp, rdi
xor ecx, ecx
call fcn.14004962c
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 0x140060f84
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.140055614
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140055614
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400610d4
cmp rax, 0xffffffffffffffff
je 0x1400610d4
xor edi, edi
test rbp, rbp
jle 0x14006107f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140048d80
mov rbx, rax
test rax, rax
jne 0x14006100c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140061075
mov edx, 0x8000
mov ecx, r14d
call fcn.14004ead0
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.140052610
cmp eax, 0xffffffff
je 0x140061055
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006101c
mov edx, r15d
mov ecx, r14d
call fcn.14004ead0
jmp 0x140061075
cmp byte [rsi + 0x38], dil
je 0x14006106c
cmp dword [rsi + 0x34], 5
jne 0x14006106c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140061075
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004962c
jmp 0x1400610e8
jns 0x1400610e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140055614
cmp rax, 0xffffffffffffffff
jne 0x1400610a0
cmp byte [rsi + 0x30], dil
je 0x1400610e8
mov edi, dword [rsi + 0x2c]
jmp 0x1400610e8
mov ecx, r14d
call fcn.140058740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400610e8
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 0x1400610e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400610e1
mov eax, dword [rsi + 0x2c]
jmp 0x1400610e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140055614
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 0x140001830
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov byte [rsp + 0x28], 0x20
mov byte [rsp + 0x29], SHUpdateImageW
mov byte [rsp + 0x2a], reloc.COMCTL32.dll_DrawInsert
mov byte [rsp + 0x2b], 0x3c
mov byte [rsp + 0x2c], reloc.SHELL32.dll_ILAppendID
mov byte [rsp + 0x2d], 0xaa
mov byte [rsp + 0x2e], SHDoDragDrop
mov byte [rsp + 0x2f], 0x8b
mov byte [rsp + 0x30], 0x3b
mov byte [rsp + 0x31], reloc.SHELL32.dll_SHDoDragDrop
mov dword [rsp + 0x24], 0x1b98619a
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0xa
jae 0x1400018e0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rcx
movzx ecx, byte [rsp + 0x24]
mov rdx, qword [rsp + 0x60]
movzx eax, byte [rdx + rax]
ror al, cl
movzx eax, al
sub eax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
imul eax, dword [rsp + 0x24], 0xf4a1
add eax, 0x6469
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001885
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400018ff
xor eax, eax
jmp 0x140001a54
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000191f
xor eax, eax
jmp 0x140001a54
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x14000194c
xor eax, eax
jmp 0x140001a54
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001980
xor eax, eax
jmp 0x140001a54
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x20], 0
je 0x140001a49
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x18], 0
je 0x140001a49
mov rax, qword [rsp + 0x80]
cmp qword [rax + 8], 0
je 0x140001a49
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x140001a49
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x10], 0
jne 0x140001a4f
xor eax, eax
jmp 0x140001a54
mov eax, 1
add rsp, 0x78
ret
Function at 0x140001f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x88
mov byte [rsp + 0x28], 0xb6
mov byte [rsp + 0x29], 0x8b
mov byte [rsp + 0x2a], 0xcf
mov byte [rsp + 0x2b], 0x74
mov byte [rsp + 0x2c], 0x20
mov byte [rsp + 0x2d], 0x3f
mov byte [rsp + 0x2e], 0x83
mov byte [rsp + 0x2f], 0x24
mov byte [rsp + 0x30], 0x8f
mov byte [rsp + 0x38], 0x62
mov byte [rsp + 0x39], 0xf0
mov byte [rsp + 0x3a], 0x9d
mov byte [rsp + 0x3b], 4
mov byte [rsp + 0x3c], 0x78
mov byte [rsp + 0x3d], 0xc5
mov byte [rsp + 0x3e], reloc.COMCTL32.dll_LBItemFromPt
mov byte [rsp + 0x3f], ILCreateFromPathW
mov byte [rsp + 0x40], SHDoDragDrop
mov byte [rsp + 0x41], 0x40
mov byte [rsp + 0x42], 0x46
mov byte [rsp + 0x43], ILGetNext
mov byte [rsp + 0x44], SHDoDragDrop
mov byte [rsp + 0x45], 0x7c
mov byte [rsp + 0x46], 0x3d
mov byte [rsp + 0x47], 0xf7
mov byte [rsp + 0x48], 0xd3
mov byte [rsp + 0x49], 0xff
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x24], 0x49e95a76
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x20]
cmp rax, 9
jae 0x14000201c
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
movzx ecx, byte [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
movzx eax, byte [rdx + rax]
ror al, cl
movzx eax, al
sub eax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
imul eax, dword [rsp + 0x24], 0xf4a1
add eax, 0x6469
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001fc1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x24], 0x533b4b46
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x12
jae 0x1400020a1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rcx
movzx ecx, byte [rsp + 0x24]
mov rdx, qword [rsp + 0x60]
movzx eax, byte [rdx + rax]
ror al, cl
movzx eax, al
sub eax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
imul eax, dword [rsp + 0x24], 0xf4a1
add eax, 0x6469
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140002046
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x140185ed0
Capabilities:
Parse pe header

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

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

Function at 0x140189544
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140189340
Function at 0x14018bfa0
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 0x14018c027
mov rsi, rbx
cmp word [rax], bp
je 0x14018bfe6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14018bfd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14018bfcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14018c9c0
mov rdi, rax
test rax, rax
je 0x14018c014
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140191910
mov rbp, rdi
xor ecx, ecx
call fcn.14018ac68
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 0x140191170
Capabilities:
Parse pe header

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

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
Function at 0x14007b1bc
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14007b1e7
test dl, 2
je 0x14007b1da
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14007b1e9
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14007b1f0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14007b352
cmp word [rcx], di
je 0x14007b352
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14007b28f
cmp word [rsp + 0x22], 0x3a
jne 0x14007b28f
cmp edx, 2
jne 0x14007b276
lea rdx, [0x14007e45c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14007b352
jmp 0x14007b32a
cmp word [rcx], 0x5c
je 0x14007b29b
cmp word [rcx], 0x2f
jne 0x14007b2a4
mov word [rcx], di
sub rcx, 2
jmp 0x14007b28f
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14007b2eb
test byte [rbp + 0x130], 0x10
je 0x14007b2d0
mov rbx, 0xfffffffffffffffe
jmp 0x14007b2e3
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14007b352
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14007b300
cmp ax, cx
je 0x14007b316
cmp cx, 0x2f
jne 0x14007b30b
cmp ax, cx
je 0x14007b316
cmp cx, 0x2e
jne 0x14007b352
cmp ax, cx
jne 0x14007b352
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007b333
test al, 0x10
je 0x14007b352
mov rbx, 0xfffffffffffffffe
jmp 0x14007b352
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret