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

Disassembly:
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
lea r14, [0x140000000]
mov ecx, dword [rcx + 0x90]
mov eax, ecx
and eax, 0xfff0000
cmp eax, 0x3ff0000
je 0x140058faa
bt ecx, 0x10
jb 0x140058f48
movzx eax, byte [rdi + 0xa5]
test byte [rax + r14 + 0xb2540], 0x60
jne 0x140058f48
mov rcx, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.1400558d0
mov eax, ecx
and eax, 0xb0000
cmp eax, 0xb0000
je 0x140058f86
movzx r8d, byte [rdi + 0xa5]
movzx eax, byte [r8 + r14 + 0xb2540]
and al, 0x60
cmp al, 0x40
jne 0x140058f86
cmp r8b, 0x47
je 0x140058f86
mov rcx, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.14004f770
and ecx, 0x110000
cmp ecx, 0x110000
je 0x140058faa
movzx eax, byte [rdi + 0xa5]
movzx eax, byte [rax + r14 + 0xb2540]
and al, 0x60
cmp al, 0x60
je 0x140058f73
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov ebp, 0x7ffd
mov qword [rsp + 0x40], rsi
nop
movzx esi, byte [rdi + 0xa5]
movzx edx, word [rdi + 0xa0]
mov r9d, dword [rdi + 0x18]
shl esi, 0x11
cmp edx, r9d
jb 0x140059006
mov rax, qword [rdi + 0x10]
lea r8, [rax + rdx*8]
movzx eax, byte [rax + rdx*8 + 5]
shl eax, 0xa
add esi, eax
mov rax, qword [r8]
mov qword [rdi + 0xa8], rax
cmp dx, bp
jae 0x140059006
mov rax, qword [r8 + 8]
mov qword [rdi + 0xb0], rax
movzx edx, word [rdi + 0xa2]
cmp edx, r9d
jb 0x14005903d
mov rax, qword [rdi + 0x10]
lea r8, [rax + rdx*8]
movzx eax, byte [rax + rdx*8 + 5]
add esi, eax
mov rax, qword [r8]
mov qword [rdi + 0xb8], rax
cmp dx, bp
jae 0x140059045
mov rax, qword [r8 + 8]
mov qword [rdi + 0xc0], rax
jmp 0x140059045
and edx, 0x3ff
add esi, edx
xor ebx, ebx
nop word [rax + rax]
mov r9d, ebx
and r9d, 0x1ffff
or r9d, esi
mov r8d, r9d
mov ecx, r9d
ror r8d, 2
and ecx, 0xfffffffc
sub r8d, r9d
shr r8d, 7
lea eax, [r9*4]
sub ecx, eax
mov eax, 0x143b58c1
shl ecx, 0x17
or r8d, ecx
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3b5
sub r8d, eax
mov ecx, dword [r14 + r8*4 + 0xb3260]
mov eax, ecx
and eax, 0xffffff
cmp eax, r9d
je 0x1400590ca
lea eax, [r8 + 1]
mov ecx, dword [r14 + rax*4 + 0xb3260]
mov eax, ecx
and eax, 0xffffff
cmp eax, r9d
jne 0x1400590e2
mov eax, ecx
mov rcx, rdi
shr rax, 0x18
call qword [r14 + rax*8 + 0xb2d90]
movzx edx, ax
test edx, edx
jne 0x1400590fc
cmp ebx, 0xfffff
je 0x14005911f
mov eax, ebx
shr eax, 0xa
or ebx, eax
xor ebx, 0xffc00
jmp 0x140059050
cmp edx, 5
jae 0x140059135
cmp edx, 1
je 0x140058fc0
cmp edx, 2
jne 0x140059129
mov edx, dword [rdi + 0xa0]
mov rcx, rdi
call fcn.14004fb70
jmp 0x140059143
mov rcx, rdi
call fcn.1400558d0
jmp 0x140059143
cmp edx, 3
je 0x14005915e
mov eax, 0xffff
jmp 0x140059143
mov rax, qword [rdi + 0x10]
movzx eax, byte [rax + rdx*8 + 4]
shl eax, 0x18
add eax, edx
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, 0x18
mov rcx, rdi
call fcn.140018b40
int3
Function at 0x140059170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
movzx r11d, word [rdx + 2]
mov r14, rcx
movzx r9d, word [r8 + 2]
cmp rdx, r8
je 0x1400592c7
mov r10, qword [rcx + 0x10]
cmp byte [r10 + r11*8 + 5], 0x1e
lea rbx, [r10 + r11*8]
jne 0x1400591a7
movzx r11d, word [rbx]
lea rbx, [r10 + r11*8]
cmp byte [r10 + r9*8 + 5], 0x1e
lea rcx, [r10 + r9*8]
jne 0x1400591bb
movzx r9d, word [rcx]
lea rcx, [r10 + r9*8]
movzx edi, byte [rdx + 5]
lea eax, [rdi - 0x39]
cmp al, 1
jbe 0x1400591cb
movzx eax, word [rdx]
jmp 0x1400591d3
movzx eax, word [rdx]
movzx eax, word [r10 + rax*8]
movzx edx, ax
movzx eax, byte [r8 + 5]
sub al, 0x39
cmp al, 1
jbe 0x1400591e7
movzx eax, word [r8]
jmp 0x1400591f0
movzx eax, word [r8]
movzx eax, word [r10 + rax*8]
movzx r8d, ax
cmp r11d, r9d
jne 0x140059212
cmp edx, r8d
je 0x1400592c7
mov rcx, r14
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp fcn.140059370
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r15
mov r15d, 0x8000
cmp r11d, r15d
jae 0x140059235
cmp r9d, r15d
jb 0x1400592b9
cmp dil, 0x39
jne 0x1400592ae
xor esi, esi
mov ebp, r11d
cmp byte [rbx + 5], 0x29
mov edi, esi
jne 0x140059262
movzx eax, word [rbx + 2]
cmp ax, r15w
jae 0x140059262
movzx ebp, word [rbx]
mov esi, dword [r10 + rax*8]
cmp ebp, r9d
jne 0x140059262
test esi, esi
jne 0x1400592b9
cmp byte [rcx + 5], 0x29
jne 0x140059283
movzx eax, word [rcx + 2]
cmp ax, r15w
jae 0x140059283
movzx r9d, word [rcx]
mov edi, dword [r10 + rax*8]
cmp r11d, r9d
jne 0x140059283
test edi, edi
jne 0x1400592b9
cmp ebp, r9d
jne 0x14005928c
cmp esi, edi
jne 0x1400592b9
cmp edx, r8d
jne 0x1400592bd
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
movzx eax, byte [rcx + 4]
xor al, byte [rbx + 4]
test al, 0x1f
je 0x14005928c
xor eax, eax
jmp 0x140059296
mov rcx, r14
call fcn.140059370
jmp 0x140059296
mov eax, 2
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x14005a050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 0xbc]
lea r14, [rcx + 0xa0]
movzx r12d, word [r14]
and al, 0x1f
mov rdi, rcx
cmp al, 0xe
jne 0x14005a0b8
movzx edx, word [rcx + 0x1fa]
cmp edx, r12d
jbe 0x14005a0b8
movzx eax, word [rcx + 0x214]
cmp eax, r12d
jbe 0x14005a0b8
nop
cmp eax, edx
jb 0x14005a20d
mov ecx, eax
mov rax, qword [rdi + 0x10]
movzx eax, word [rax + rcx*8 + 6]
cmp eax, r12d
ja 0x14005a0a0
movzx eax, word [rdi + 0x216]
cmp eax, r12d
jbe 0x14005a211
mov rbx, qword [rdi + 0x10]
mov ebp, 0x8000
mov dword [rsp + 0x50], ebp
nop word [rax + rax]
lea r13, [rbx + rax*8]
movzx eax, word [rbx + rax*8]
movzx ecx, word [rbx + rax*8 + 2]
lea rdx, [rbx + rax*8]
cmp r14, rdx
je 0x14005a20d
movzx r9d, word [r14 + 2]
cmp byte [rbx + r9*8 + 5], 0x1e
lea r8, [rbx + r9*8]
jne 0x14005a113
movzx r9d, word [r8]
lea r8, [rbx + r9*8]
cmp byte [rbx + rcx*8 + 5], 0x1e
lea r10, [rbx + rcx*8]
jne 0x14005a126
movzx ecx, word [r10]
lea r10, [rbx + rcx*8]
movzx r11d, byte [r14 + 5]
lea eax, [r11 - 0x39]
cmp al, 1
jbe 0x14005a139
movzx eax, word [r14]
jmp 0x14005a141
movzx eax, word [r14]
movzx eax, word [rbx + rax*8]
movzx r15d, ax
movzx eax, byte [rdx + 5]
sub al, 0x39
cmp al, 1
jbe 0x14005a154
movzx eax, word [rdx]
jmp 0x14005a15b
movzx eax, word [rdx]
movzx eax, word [rbx + rax*8]
movzx esi, ax
cmp r9d, ecx
je 0x14005a1e2
cmp r9d, ebp
jae 0x14005a170
cmp ecx, ebp
jb 0x14005a1f9
cmp r11b, 0x39
jne 0x14005a1d5
xor r11d, r11d
xor edx, edx
cmp byte [r8 + 5], 0x29
mov ebp, r9d
jne 0x14005a1a2
movzx eax, word [r8 + 2]
cmp ax, word [rsp + 0x50]
jae 0x14005a1a2
movzx ebp, word [r8]
mov r11d, dword [rbx + rax*8]
cmp ebp, ecx
jne 0x14005a1a2
test r11d, r11d
jne 0x14005a1f9
cmp byte [r10 + 5], 0x29
jne 0x14005a1ca
movzx eax, word [r10 + 2]
mov r8d, 0x8000
cmp ax, r8w
jae 0x14005a1ca
movzx ecx, word [r10]
mov edx, dword [rbx + rax*8]
cmp r9d, ecx
jne 0x14005a1ca
test edx, edx
jne 0x14005a1f9
cmp ebp, ecx
jne 0x14005a1e2
cmp r11d, edx
je 0x14005a1e2
jmp 0x14005a1f9
movzx eax, byte [r10 + 4]
xor al, byte [r8 + 4]
test al, 0x1f
jne 0x14005a1f9
cmp r15d, esi
je 0x14005a20d
mov rcx, rdi
mov r8d, esi
mov edx, r15d
call fcn.140059370
test eax, eax
jne 0x14005a20d
movzx eax, word [r13 + 6]
cmp eax, r12d
jbe 0x14005a211
mov ebp, 0x8000
jmp 0x14005a0e0
xor eax, eax
jmp 0x14005a216
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005a590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
movzx esi, dx
mov r14, rcx
movzx r9d, word [rcx + rsi*2 + 0x190]
cmp r9d, r8d
jbe 0x14005a62d
mov r11, qword [rcx + 0x10]
mov eax, r8d
lea rbp, [r11 + rax*8]
nop word [rax + rax]
movzx eax, byte [r11 + r9*8 + 4]
lea rbx, [r11 + r9*8]
movzx ecx, word [rbx]
and al, 0x1f
cmp ecx, r8d
je 0x14005a671
test al, al
jne 0x14005a623
movzx r9d, word [r11 + rcx*8 + 2]
movzx r10d, word [rbp + 2]
cmp esi, 0x42
je 0x14005a60c
movzx edx, byte [r11 + r10*8 + 4]
xor dl, byte [r11 + r9*8 + 4]
test dl, 0x1f
jne 0x14005a623
cmp r9d, r10d
je 0x14005a656
cmp r9d, 0x8000
jae 0x14005a656
cmp r10d, 0x8000
jae 0x14005a656
movzx r9d, word [rbx + 6]
cmp r9d, r8d
ja 0x14005a5d0
movzx eax, word [r14 + rsi*2 + 0x182]
cmp eax, r8d
jbe 0x14005a656
mov rdx, qword [r14 + 0x10]
nop
lea rcx, [rdx + rax*8]
movzx eax, word [rdx + rax*8]
cmp eax, r8d
je 0x14005a67c
movzx eax, word [rcx + 6]
cmp eax, r8d
ja 0x14005a640
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
jmp 0x14005a658
test byte [rcx + 4], 0x1f
mov ecx, 0
setne cl
mov eax, ecx
jmp 0x14005a658
Function at 0x14005b950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x10]
mov esi, r9d
movzx r14d, dx
mov r12d, r8d
mov r9d, edx
mov rbp, rcx
movzx r15d, byte [r10 + r14*8 + 5]
cmp r15d, 0x36
jb 0x14005ba99
cmp r15d, r8d
jg 0x14005ba99
xor edx, edx
lea rax, [rcx + 0x910]
nop word [rax + rax]
cmp word [rax], r14w
jne 0x14005b9bb
mov ecx, dword [rax + 4]
cmp ecx, esi
jb 0x14005b9bb
xor ecx, esi
test ecx, 0xfff
je 0x14005ba7f
inc rdx
add rax, 8
cmp rdx, 0x10
jl 0x14005b9a0
movzx edx, word [r10 + r14*8]
mov r9d, esi
mov qword [rsp + 0x40], rbx
mov rcx, rbp
movzx ebx, word [r10 + r14*8 + 2]
mov qword [rsp + 0x48], rdi
call fcn.14005b950
mov r9d, esi
mov r8d, r12d
mov edx, ebx
mov rcx, rbp
mov edi, eax
call fcn.14005b950
mov ecx, 0xf3
mov word [rbp + 0xa0], di
add r15w, cx
mov word [rbp + 0xa2], ax
movzx edx, r15w
mov ecx, 0x100
imul edx, ecx
mov r8d, esi
shr r8d, 5
mov rcx, rbp
and r8w, 0x1f
or r8w, dx
mov word [rbp + 0xa4], r8w
call fcn.140058ef0
mov ecx, dword [rbp + 0x990]
mov r9d, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rcx*8]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbp + 0x990], eax
mov word [rdx + rbp + 0x910], r14w
mov word [rdx + rbp + 0x912], r9w
mov dword [rdx + rbp + 0x914], esi
jmp 0x14005bad6
test rax, rax
je 0x14005b9c8
movzx ecx, word [rax + 2]
movzx eax, byte [r10 + rcx*8 + 4]
shl eax, 0x18
add eax, ecx
jmp 0x14005bad9
bt esi, 0xb
jae 0x14005bad6
movzx ecx, byte [r10 + r14*8 + 4]
mov eax, 0x604208
and ecx, 0x1f
shr eax, cl
test al, 1
jne 0x14005bad6
mov rcx, rbp
mov word [rbp + 0xa4], 0x5a15
mov word [rbp + 0xa0], r14w
mov word [rbp + 0xa2], si
call fcn.140058ef0
mov r9d, eax
mov eax, r9d
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140065614
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006565e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006565e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006565e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006565e
cmp dword [rcx + 0x84], 0xe
jbe 0x14006565e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140065660
xor al, al
add rsp, 0x28
ret
Function at 0x140085e34
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 0x140085ea3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140085ea3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140085ea3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140085ea3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140085ea3
cmp dword [rcx + 0x84], 0xe
jbe 0x140085ea3
cmp dword [rcx + 0xf8], 0
je 0x140085ea3
mov ecx, ebx
call fcn.140085f54
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.140085d30
nop
cmp dword [rbp + 0x20], 0
je 0x140085ef1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140085efc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140085e34

Function at 0x140086038
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 0x140085ea3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140085ea3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140085ea3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140085ea3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140085ea3
cmp dword [rcx + 0x84], 0xe
jbe 0x140085ea3
cmp dword [rcx + 0xf8], 0
je 0x140085ea3
mov ecx, ebx
call fcn.140085f54
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.140085d30
nop
cmp dword [rbp + 0x20], 0
je 0x140085ef1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140085efc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140085e34
Function at 0x14008e48c
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.1400abdd0
sub rsp, rax
mov rax, qword [0x1400cf200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008520c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008e4db
mov rax, rbp
jmp 0x14008e5e3
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd0d20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009c6b4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd0d20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008e5df
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 0x14008e5df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009c6b4
test rax, rax
js 0x14008e5df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008e5df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008e5d1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008e5d1
cmp byte [rcx], 0xd
jne 0x14008e5b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008e5c6
cmp byte [rcx + 1], 0xa
jne 0x14008e5c6
inc rcx
jmp 0x14008e5c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcf580]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008e599
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008e5e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140064be0
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 0x140090b38
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14007f3c8
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140090b83
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x140090bb7
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140090bb7
call fcn.140094f30
xor ebx, ebx
test eax, eax
jne 0x140090ba5
cmp byte [rbp - 0x48], bl
je 0x140090b9e
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x140090bb7
cmp byte [rbp - 0x48], bl
je 0x140090bb5
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.1400905c0
mov esi, eax
test eax, eax
je 0x140090bf3
call fcn.140086118
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140090c4c
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.1400905c0
mov edi, eax
test eax, eax
je 0x140090c2f
call fcn.140086118
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140090c3e
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400a09b0
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140090c4c
mov rcx, qword [rbp - 0x50]
call fcn.140094c2c
cmp byte [rbp - 8], bl
je 0x140090c5a
mov rcx, qword [rbp - 0x20]
call fcn.140094c2c
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140095270
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.GetTempPath2W
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x1400baee0]
call fcn.140094d1c
test rax, rax
je 0x1400952ba
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [0x1400ae380]
jmp 0x1400952c5
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14009907c
Capabilities:
Get file size

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

Function at 0x140099af0
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, [0x1400d0d20]
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 0x140099b47
cmp word [rdx], r13w
jne 0x140099b47
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140099b4c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140099c71
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140099c92
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140099b85
mov rdx, r9
mov word [rbx], cx
jmp 0x140099bac
cmp r9, r8
jae 0x140099bbc
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 0x140099b66
jmp 0x140099c71
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 0x140099c66
cmp dword [rsp + 0x80], esi
je 0x140099c66
lea r8, [0x1400d0d20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140099c3e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140099c0e
mov word [rbx], r13w
jmp 0x140099c6e
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 0x140099c1b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140099c6e
cmp word [rsp + 0x70], r13w
jne 0x140099c4b
cmp rbx, r14
je 0x140099c08
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009c6bc
cmp word [rsp + 0x70], r13w
je 0x140099c71
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, [0x1400d0d20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140099c6b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140099c71
Function at 0x1400a0988
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a09a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008608c
or eax, 0xffffffff
jmp 0x1400a09aa
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400a3034
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 0x1400a3064
xor eax, eax
jmp 0x1400a3127
mov rbp, rbx
cmp word [rax], si
je 0x1400a3089
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a3070
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a306c
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.14009f0c8
movsxd r14, eax
test eax, eax
jne 0x1400a30c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a305d
mov rcx, r14
call fcn.140095bf4
mov rdi, rax
test rax, rax
jne 0x1400a30e0
xor ecx, ecx
call fcn.140094c2c
jmp 0x1400a30bc
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.14009f0c8
test eax, eax
jne 0x1400a3111
mov rcx, rdi
call fcn.140094c2c
jmp 0x1400a311b
xor ecx, ecx
call fcn.140094c2c
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 0x1400a3144
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 0x1400a31cb
mov rsi, rbx
cmp word [rax], bp
je 0x1400a318a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a3174
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a3170
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140095bf4
mov rdi, rax
test rax, rax
je 0x1400a31b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ac3d0
mov rbp, rdi
xor ecx, ecx
call fcn.140094c2c
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