joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c000
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007a0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c08a
cmp byte [rbp - 0x21], r15b
je 0x14000c085
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c0c0
call fcn.14000a108
test eax, eax
jne 0x14000c0ac
cmp byte [rbp - 0x21], r15b
je 0x14000c0a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c0c0
cmp byte [rbp - 0x21], r15b
je 0x14000c0bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140006fec
test eax, eax
jne 0x14000c160
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007a0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c0ff
cmp byte [rbp - 0x21], r15b
je 0x14000c134
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c134
call fcn.14000a108
test eax, eax
jne 0x14000c120
cmp byte [rbp - 0x21], r15b
je 0x14000c119
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c134
cmp byte [rbp - 0x21], r15b
je 0x14000c131
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140006fec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c160
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c163
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c171
mov rcx, rdi
call fcn.140006f9c
cmp byte [rbp + 0x3f], r15b
je 0x14000c180
mov rcx, qword [rbp + 0x27]
call fcn.140006f9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000efb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000efd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000efd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400039e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140273d74], 0
lea rdi, [0x140273d70]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140003ab8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140003a10
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x140003af2
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
mov ecx, eax
shr ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
sub r9d, 1
jne 0x140003ad0
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x140003b33
nop
cmp r9b, 0x23
jne 0x140003b13
cmp byte [r8], r9b
jne 0x140003b13
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
mov ecx, eax
inc r8
shr ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
test r9b, r9b
jne 0x140003b00
not eax
pop rdi
ret

Function at 0x140004550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140004569
mov dword [r8], 0
lea rdx, [0x140218cb0]
call fcn.140004440
mov rbx, rax
test rax, rax
jne 0x140004588
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140171050
test eax, eax
jne 0x14000466c
mov rcx, rbx
call fcn.1401702fc
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x14000466c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140171050
test eax, eax
jne 0x14000466c
mov rdx, qword [str._D_]
lea eax, [rbp + 1]
movsxd rcx, eax
mov qword [rsp + 0x38], rdi
inc dword [rdx + 0x34c]
call qword [rdx + 0xe8]
mov rdi, rax
test rax, rax
jne 0x1400045fe
mov rcx, rbx
call fcn.140170dcc
xor eax, eax
jmp 0x140004640
mov r9, rbx
mov qword [rsp + 0x40], r14
mov r8, rbp
mov edx, 1
mov rcx, rdi
call fcn.140171a70
mov rcx, rbx
cmp rax, rbp
je 0x140004655
call fcn.140170dcc
mov rax, qword [str._D_]
mov rcx, rdi
dec dword [rax + 0x34c]
call qword [rax + 0xf0]
xor eax, eax
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
xor eax, eax
mov byte [rbp + rdi], al
call fcn.140170dcc
test rsi, rsi
je 0x140004667
mov dword [rsi], ebp
mov rax, rdi
jmp 0x14000463b
mov rcx, rbx
call fcn.140170dcc
mov rbp, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x14001c2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
sub rsp, 0xb0
xor eax, eax
movsxd r13, r9d
mov dword [rsp + 0xe8], eax
mov r14, rdx
mov qword [rsp + 0x60], r13
mov rbp, rcx
test r9d, r9d
jle 0x14001c50f
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
mov r11d, 0x100
movss xmm8, dword [0x14021d730]
nop dword [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001c383
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
jmp 0x14001c3a9
movsxd rcx, dword [r14 + 0x1c]
mov rax, qword [r14 + 8]
movzx edx, byte [rcx + rax + 0x12]
movzx eax, byte [rcx + rax + 0x13]
shl edx, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
xorps xmm6, xmm8
movzx eax, byte [rbp + 0x20]
xor edi, edi
mov byte [rbx], al
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
cmp dword [rbx - 0x10], edi
jle 0x14001c4b7
mov r15, qword [rsp + 0xf0]
mov rax, r12
mov r13d, dword [rsp + 0xe8]
add r15, 6
shl rax, 4
xor esi, esi
add r15, rax
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001c3f1
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001c3f4
mov edx, dword [rax + rsi]
mov eax, dword [rbp + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140017290
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.140019b30
movzx eax, word [rbp + 0x20]
inc r13d
sub ax, word [rsp + 0x50]
inc r12
dec ax
inc edi
add ax, word [rbp + 0x1c]
add rsi, 4
add ax, word [rsp + 0x54]
mov word [r15 - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x58]
dec ax
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x5c]
mov word [r15], ax
add r15, 0x10
cmp edi, dword [rbx - 0x10]
jl 0x14001c3e1
mov dword [rsp + 0xe8], r13d
mov r11d, 0x100
mov r13, qword [rsp + 0x60]
add rbx, 0x28
sub r13, 1
mov qword [rsp + 0x60], r13
jne 0x14001c330
mov eax, dword [rsp + 0xe8]
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop r14
pop r13
pop rbp
ret
Function at 0x1400239c0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov edi, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub edi, eax
test r8d, r8d
je 0x140023afc
mov qword [rsp + 0x10], rbx
xor edx, edx
cmp edi, 7
jbe 0x140023a62
lea r8d, [rdx + 7]
movzx eax, byte [r10]
add edx, 8
add ecx, eax
add r8d, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp r8d, edi
jb 0x140023a03
xor r8d, r8d
xor r11d, r11d
cmp edx, edi
jae 0x140023ac4
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x140023aad
mov eax, edi
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov ebx, eax
lea edx, [rdx + rax*2]
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r8d, ecx
add r10, 2
add ecx, eax
add r11d, ecx
sub rbx, 1
jne 0x140023a90
cmp edx, edi
jae 0x140023abd
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r11 + r8]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, edi
mov edi, 0x15b0
jne 0x1400239f8
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rdi
ret
Function at 0x140028ed0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call fcn.14016c710
xor esi, esi
mov dword [rsp + 0x20], 0x130
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028f7a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140028f7a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140028f7a
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call fcn.14016c1f4
test rax, rax
jne 0x140028f76
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140028f50
jmp 0x140028f7a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140168e10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140028fb0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov ebp, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add ebp, eax
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call fcn.14016c710
xor edi, edi
mov dword [rsp + 0x20], 0x130
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002907a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14002907a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x14002907a
nop dword [rax]
nop dword [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.14016c1f4
test rax, rax
jne 0x140029076
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140029050
jmp 0x14002907a
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14002909f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebp, eax
jbe 0x14002909f
lea ecx, [rdi + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140028ff0
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140168e10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140029740
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov rbx, rcx
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
xor esi, esi
mov qword [rsp + 0x38], rax
lea ecx, [rax + 4]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x1c
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400297d2
nop
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x34], eax
je 0x1400297ce
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400297b0
jmp 0x1400297d2
mov esi, dword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140029800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r8
mov rcx, qword [r8]
mov rbx, rdx
call fcn.1401717c8
mov r8, rbx
mov qword [rsi], 0
mov rdx, rdi
mov dword [rsi + 0x10], 0
xor ecx, ecx
push rax
call 0x140585b61
mov rbx, rax
test rax, rax
jne 0x140029856
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
xor ecx, ecx
push rcx
call 0x140416c96
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140029844
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsi]
mov ebx, eax
call fcn.1401717c8
mov ecx, ebx
mov qword [rsi], 0
mov dword [rsi + 0x10], ebx
call fcn.140176e84
mov qword [rsi], rax
test rax, rax
je 0x1400298b1
mov edx, dword [rsi + 0x10]
mov r9d, ebx
mov r8, rdi
mov rcx, rax
call fcn.140028c70
cmp dword [rsi + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
seta al
add rsp, 0x20
pop rdi
ret
Function at 0x140036bb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, r8
mov edx, dword [rdx + 0x10]
mov rbx, rcx
cmp edx, dword [r8 + 0x10]
je 0x140036be3
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test edx, edx
jne 0x140036c16
xor r9d, r9d
mov dword [rcx + 0x10], r9d
cmp byte [rcx + 0x19], r9b
je 0x140036c95
mov qword [rcx + 0x20], r9
mov al, 1
mov dword [rcx + 0x14], r9d
mov byte [rcx + 0x19], r9b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rcx + 0x18], 0xdb
je 0x140036c35
xor ecx, ecx
call fcn.140002260
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rcx + 0x14], edx
jae 0x140036c43
call fcn.1400385a0
test al, al
je 0x140036bd1
mov ecx, dword [rdi + 0x10]
mov eax, dword [rbx + 0x14]
cmp ecx, eax
cmova ecx, eax
cmp qword [rbx + 0x20], 0
mov dword [rbx + 0x10], ecx
je 0x140036bd1
xor r9d, r9d
cmp dword [rdi + 0x10], r9d
jbe 0x140036c95
nop word [rax + rax]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rsi + 0x20]
mov r8d, r9d
inc r9d
movzx edx, byte [rcx + r8]
xor dl, byte [rax + r8]
mov rax, qword [rbx + 0x20]
mov byte [r8 + rax], dl
cmp r9d, dword [rdi + 0x10]
jb 0x140036c70
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140039420
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x328
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
mov dword [r8], 0
mov dword [rdx], 0xffffffff
call fcn.14003f250
test al, al
je 0x140039485
test rdi, rdi
je 0x14003947e
mov rax, qword [rdi]
lea rdx, str.GetAttributes:_filename_is_empty
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x14003955d
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x30]
call fcn.14016c710
lea rcx, [rsp + 0x30]
call fcn.14003b980
nop
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.14003c700
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x30]
call fcn.14003f440
lea rcx, [rsp + 0x30]
call fcn.14003e370
test eax, eax
jle 0x140039528
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x1a0]
call fcn.14016c710
lea rcx, [rsp + 0x1a0]
call fcn.14003b980
nop
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x30]
call fcn.1400397e0
lea rcx, [rsp + 0x1a0]
call fcn.14003f070
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbx], eax
lea rcx, [rsp + 0x1a0]
call fcn.14003b9f0
jmp 0x14003953d
lea rcx, [rsp + 0x30]
call fcn.14003f070
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbx], eax
cmp dword [rbx], 0xffffffff
jne 0x14003954d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
cmp dword [rbx], 0xffffffff
setne bl
lea rcx, [rsp + 0x30]
call fcn.14003b9f0
movzx eax, bl
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x328
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003a2c0
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x320
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x30]
call fcn.14016c710
lea rcx, [rsp + 0x30]
call fcn.14003b980
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14003c700
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x30]
call fcn.14003f440
lea rcx, [rsp + 0x30]
call fcn.14003e370
test eax, eax
jle 0x14003a397
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x1a0]
call fcn.14016c710
lea rcx, [rsp + 0x1a0]
call fcn.14003b980
nop
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x30]
call fcn.1400397e0
lea rcx, [rsp + 0x1a0]
call fcn.14003f070
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea rcx, [rsp + 0x1a0]
call fcn.14003b9f0
jmp 0x14003a3ae
lea rcx, [rsp + 0x30]
call fcn.14003f070
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x14003a3dd
test rdi, rdi
je 0x14003a3db
mov rax, qword [rdi]
mov r8b, 1
lea rdx, str.createDirWin32
mov rcx, rdi
call qword [rax + 0x48]
mov rcx, rdi
call fcn.1400720b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test ebx, ebx
setne bl
lea rcx, [rsp + 0x30]
call fcn.14003b9f0
movzx eax, bl
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x340]
add rsp, 0x320
pop rdi
ret
Function at 0x14003a4b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x13a0]
mov eax, 0x14a0
call fcn.140169bf0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x14d0], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rbp + 0x1390], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x30]
call fcn.14016c710
lea rcx, [rsp + 0x30]
call fcn.14003b980
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14003c700
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rsp + 0x30]
call fcn.14003f440
lea rcx, [rsp + 0x30]
call fcn.14003e370
cmp eax, 0x104
jle 0x14003a651
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0xa0]
call fcn.14016c710
lea rcx, [rbp + 0xa0]
call fcn.14003b980
nop
lea rcx, [rbp + 0xa0]
call fcn.140040260
lea rcx, [rsp + 0x30]
call fcn.14003f070
mov rcx, rax
lea r9, [rsp + 0x28]
lea r8, [rbp + 0x380]
mov edx, 0x800
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x14003a59d
lea rdx, [rbp + 0x380]
jmp 0x14003a5aa
lea rcx, [rsp + 0x30]
call fcn.14003f070
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14003fae0
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp + 0x210]
call fcn.14016c710
lea rcx, [rbp + 0x210]
call fcn.14003b980
nop
lea rdx, [0x140199fbc]
lea rcx, [rbp + 0x210]
call fcn.14003c590
lea rcx, [rbp + 0xa0]
call fcn.14003ec40
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.14003c590
lea rcx, [rbp + 0x210]
call fcn.14003f070
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x14003a631
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
cmp eax, 2
cmove ebx, ecx
test ebx, ebx
setne bl
lea rcx, [rbp + 0x210]
call fcn.14003b9f0
nop
lea rcx, [rbp + 0xa0]
call fcn.14003b9f0
jmp 0x14003a6a5
lea rcx, [rsp + 0x30]
call fcn.14003f070
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x14003a6a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rdi, rdi
je 0x14003a695
mov edx, eax
mov rcx, rdi
call fcn.1400721b0
lea r8, [rsp + 0x30]
lea rdx, str.failedToDeleteFilepath
mov rcx, rdi
call fcn.140071d90
mov ecx, 1
cmp esi, 2
cmove ebx, ecx
test ebx, ebx
setne bl
lea rcx, [rsp + 0x30]
call fcn.14003b9f0
movzx eax, bl
mov rcx, qword [rbp + 0x1390]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x14d0]
add rsp, 0x14a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003abd0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1850
call fcn.140169bf0
sub rsp, rax
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x1840], rax
mov rbx, rcx
lea rdx, [rsp + 0x830]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14003ac2a
lea rdx, [rsp + 0x20]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14003f6a0
jmp 0x14003ac3a
lea rdx, [rsp + 0x830]
mov rcx, rbx
call fcn.14003fae0
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x1850
pop rbx
ret