joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c1a90
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x1800c1bdb
movzx r10d, r14w
mov edi, r14d
mov r8, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + r8]
call fcn.1800c1f50
test al, al
jne 0x1800c1c76
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1800c1b6b
cmp edx, dword [rbx + 0x60]
jl 0x1800c1b6b
cmp edx, dword [rbx + 0x64]
jg 0x1800c1b6b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1800c1b6b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1800c1b6b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1800c1b8e
test byte [r9 + 0x18], 8
je 0x1800c1b8e
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1800c1b9f
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1800c2910
test al, al
jne 0x1800c1c76
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1800c1bc2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x1800c1af4
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1800c1c7a
test rdx, rdx
je 0x1800c1c7a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1800c1c18
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1800c1c1b
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1800c1c36
dec r11d
add r11d, eax
jmp 0x1800c1c4d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1800c2be0
test al, al
jne 0x1800c1c76
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1800c2be0
test al, al
jne 0x1800c1c76
mov rdx, qword [rsi]
add di, bp
jne 0x1800c1c00
jmp 0x1800c1c7e
mov al, 1
jmp 0x1800c1c89
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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
Function at 0x1800dd09c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800d9bb0
sub rsp, rax
mov rax, qword [0x180177040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800e9b0c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800dd0eb
mov rax, rbp
jmp 0x1800dd1f3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x178ad0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800e9d9c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x178ad0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800dd1ef
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800dd1ef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800e9d9c
test rax, rax
js 0x1800dd1ef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800dd1ef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800dd1e1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800dd1e1
cmp byte [rcx], 0xd
jne 0x1800dd1c7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800dd1d6
cmp byte [rcx + 1], 0xa
jne 0x1800dd1d6
inc rcx
jmp 0x1800dd1d6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x177350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800dd1a9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800dd1f3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800d9270
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800e8a00
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 0x1800e8a6f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800e8a6f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800e8a6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800e8a6f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800e8a6f
cmp dword [rcx + 0x84], 0xe
jbe 0x1800e8a6f
cmp dword [rcx + 0xf8], 0
je 0x1800e8a6f
mov ecx, ebx
call fcn.1800e8b20
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.1800e88fc
nop
cmp dword [rbp + 0x20], 0
je 0x1800e8abd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800e8ac8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800e8a00
Function at 0x1800ea610
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, [0x180178ad0]
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 0x1800ea667
cmp word [rdx], r13w
jne 0x1800ea667
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800ea66c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800ea791
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800ea7b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800ea6a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1800ea6cc
cmp r9, r8
jae 0x1800ea6dc
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 0x1800ea686
jmp 0x1800ea791
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 0x1800ea786
cmp dword [rsp + 0x80], esi
je 0x1800ea786
lea r8, [0x180178ad0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800ea75e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800ea72e
mov word [rbx], r13w
jmp 0x1800ea78e
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 0x1800ea73b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800ea78e
cmp word [rsp + 0x70], r13w
jne 0x1800ea76b
cmp rbx, r14
je 0x1800ea728
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800e9da4
cmp word [rsp + 0x70], r13w
je 0x1800ea791
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, [0x180178ad0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800ea78b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800ea791
Function at 0x1800ece40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800ece56
mov al, 1
jmp 0x1800eceb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800ece67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800eceb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800f320c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800eceb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800eceb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800eceb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800eceb6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800f21c4
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 0x1800f21f4
xor eax, eax
jmp 0x1800f22b7
mov rbp, rbx
cmp word [rax], si
je 0x1800f2219
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800f2200
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800f21fc
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.1800f20e4
movsxd r14, eax
test eax, eax
jne 0x1800f2257
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800f21ed
mov rcx, r14
call fcn.1800ee378
mov rdi, rax
test rax, rax
jne 0x1800f2270
xor ecx, ecx
call fcn.1800eb3e8
jmp 0x1800f224c
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.1800f20e4
test eax, eax
jne 0x1800f22a1
mov rcx, rdi
call fcn.1800eb3e8
jmp 0x1800f22ab
xor ecx, ecx
call fcn.1800eb3e8
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 0x1800f22d4
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 0x1800f235b
mov rsi, rbx
cmp word [rax], bp
je 0x1800f231a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800f2304
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800f2300
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800ee378
mov rdi, rax
test rax, rax
je 0x1800f2348
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800fe700
mov rbp, rdi
xor ecx, ecx
call fcn.1800eb3e8
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 0x1800f7c18
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.1800e9da4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800e9da4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800f7d68
cmp rax, 0xffffffffffffffff
je 0x1800f7d68
xor edi, edi
test rbp, rbp
jle 0x1800f7d13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800eb370
mov rbx, rax
test rax, rax
jne 0x1800f7ca0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800f7d09
mov edx, 0x8000
mov ecx, r14d
call fcn.1800f7a9c
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.1800ec63c
cmp eax, 0xffffffff
je 0x1800f7ce9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800f7cb0
mov edx, r15d
mov ecx, r14d
call fcn.1800f7a9c
jmp 0x1800f7d09
cmp byte [rsi + 0x38], dil
je 0x1800f7d00
cmp dword [rsi + 0x34], 5
jne 0x1800f7d00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800f7d09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800eb3e8
jmp 0x1800f7d7c
jns 0x1800f7d7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800e9da4
cmp rax, 0xffffffffffffffff
jne 0x1800f7d34
cmp byte [rsi + 0x30], dil
je 0x1800f7d7c
mov edi, dword [rsi + 0x2c]
jmp 0x1800f7d7c
mov ecx, r14d
call fcn.1800f320c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800f7d7c
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 0x1800f7d7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800f7d75
mov eax, dword [rsi + 0x2c]
jmp 0x1800f7d7a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800e9da4
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 0x1800f8c80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800f8ca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800f8ca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140012130
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov word [rsp + 0x30], 0
movzx eax, byte [rcx]
test al, al
je 0x1400121f6
mov rdi, rcx
mov r15d, 0x28
lea r12, [rsp + 0x30]
lea rbx, [rsp + 0x2a]
lea r14, [rsp + 0x2e]
nop
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.14001a86c
cmp rax, 1
jne 0x140012226
cmp word [r12], 0
mov rcx, r15
mov rax, r12
je 0x1400121d1
mov rdx, r12
mov rcx, r15
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400121c0
test rcx, rcx
je 0x140012226
movzx ecx, word [rsp + 0x2a]
mov word [rax], cx
mov word [rax + 2], 0
add r12, 2
dec r15
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140012180
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140014270
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14001a7f0
int3
Function at 0x140012ce0
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003daf8]
test rcx, rcx
je 0x140012d4a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012d3d
mov rcx, qword [0x14003daf8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003daf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140040340], 1
jne 0x140012df7
mov rbx, qword [0x14002e060]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002e050]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002e040]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002e030]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003db10]
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 0x140012df7
and eax, 0x10
je 0x140012df7
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 0x140012dc0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014270
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
Function at 0x1400140b0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140014210
sub rsp, rax
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003db00]
test eax, eax
je 0x1400140e5
test eax, eax
jg 0x14001412d
jmp 0x140014162
lea rdx, [0x140034436]
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400123e0
test al, al
je 0x1400141ea
lea rcx, [rsp + 0x20]
call fcn.14001a514
movsxd rcx, dword [0x14003db00]
lea rdx, [0x140042b80]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003db00], eax
test eax, eax
jle 0x140014162
lea rdi, [0x140042b80]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001b170
test eax, eax
je 0x1400141cb
inc rbx
movsxd rax, dword [0x14003db00]
add rdi, 8
cmp rbx, rax
jl 0x140014140
mov rcx, rsi
call fcn.14001b1a8
cmp rax, 2
jne 0x140014179
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x1400141cd
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140014198
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x1400141cd
cmp dword [0x14003db00], 0x3ff
jg 0x1400141cd
mov rcx, rsi
call fcn.14001a514
movsxd rcx, dword [0x14003db00]
lea rdx, [0x140042b80]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003db00], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014270
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140034436]
call fcn.140013600
int3

Function at 0x1400149e0
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019428
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 0x140019497
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019497
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019497
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019497
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019497
cmp dword [rcx + 0x84], 0xe
jbe 0x140019497
cmp dword [rcx + 0xf8], 0
je 0x140019497
mov ecx, ebx
call fcn.140019360
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.1400195bc
nop
cmp dword [rbp + 0x20], 0
je 0x1400194e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400193f4
int3

Function at 0x140019428
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019428
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 0x140019497
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019497
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019497
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019497
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019497
cmp dword [rcx + 0x84], 0xe
jbe 0x140019497
cmp dword [rcx + 0xf8], 0
je 0x140019497
mov ecx, ebx
call fcn.140019360
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.1400195bc
nop
cmp dword [rbp + 0x20], 0
je 0x1400194e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400193f4
int3

Function at 0x14001b630
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b658
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b658
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140020edc
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 0x140020f63
mov rsi, rbx
cmp word [rax], bp
je 0x140020f22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140020f0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140020f08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e404
mov rdi, rax
test rax, rax
je 0x140020f50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a140
mov rbp, rdi
xor ecx, ecx
call fcn.14001d4b4
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 0x140025dd0
Capabilities:
Get file size

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