joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019720
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rsp + 0x1a8]
xor eax, eax
mov rdi, r8
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x1b0]
mov rbp, rcx
mov r12d, edx
mov esi, 0x40
lea rcx, [rsp + 0xc0]
mov r8, rsi
mov rdx, rdi
mov byte [rsp + 0x33], al
call fcn.1800785c0
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x100], edx
lea r9d, [rsi + 4]
lea r8, [rsp + 0xc0]
mov edx, r12d
mov rcx, rbp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.1800190c0
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8, rsi
call fcn.1800785c0
lea rdx, [rsp + 0x80]
mov edi, 0x3e7
sub rbx, rdx
nop dword [rax + rax]
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov r9d, esi
mov edx, r12d
mov rcx, rbp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.1800190c0
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x80]
lea rcx, [rsp + rdx + 0x80]
inc rdx
xor byte [rbx + rcx], al
cmp rdx, rsi
mov byte [rsp + rdx + 0x3f], al
jl 0x180019800
sub rdi, 1
jne 0x1800197d0
lea rdi, [rsp + 0x40]
xor eax, eax
mov rcx, rsi
lea rdx, [rsp + 0x40]
mov r8d, esi
rep stosb byte [rdi], al
nop dword [rax]
mov byte [rdx], al
inc rdx
sub r8d, 1
jne 0x180019840
lea rdi, [rsp + 0x80]
mov rcx, rsi
lea rdx, [rsp + 0x80]
rep stosb byte [rdi], al
mov byte [rdx], al
inc rdx
sub esi, 1
jne 0x180019860
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x150
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001f920
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
cmp word [rdx], 0
mov rbp, r9
mov r12, rdx
mov rbx, rcx
je 0x18001fb1d
test r9, r9
je 0x18001fb1d
mov ecx, dword [rsp + 0x90]
cmp ecx, 5
je 0x18001f95a
cmp ecx, 6
jne 0x18001fb1d
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x60], rsi
mov dword [rbx + 0x40], ecx
mov dword [rbx + 0x48], eax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x4c], eax
test r8d, r8d
je 0x18001f9ba
xor esi, esi
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rbp], 1
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x10], rax
jmp 0x18001fa93
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov rcx, r12
mov dword [rsp + 0x28], 0x20000000
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rcx, 0xffffffffffffffff
mov dword [rbx + 0x44], esi
mov qword [rbx + 0x10], rax
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov rdx, r12
mov dword [rbp], esi
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x18]
call fcn.180002890
cmp qword [rbx + 0x10], 0xffffffffffffffff
mov rdi, qword [rsp + 0x70]
jne 0x18001fa93
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x18001fa5b
cmp eax, 0x20
je 0x18001fa5b
cmp eax, 0xa7
je 0x18001fa5b
cmp eax, 0x21
je 0x18001fa5b
cmp eax, 0x13
je 0x18001fa5b
test eax, eax
jle 0x18001fa4d
movzx eax, ax
or eax, 0x80070000
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rbp], 1
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x44], 1
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x18001fab1
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18001fac4
call fcn.180003220
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x68]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x18001faf1
mov eax, 0xe003300c
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
cmp dword [rbx + 0x40], 5
jne 0x18001fb0d
mov rcx, rbx
call fcn.18001fb30
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
mov eax, 0x80070057
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x18001fb30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x40], 0
call fcn.1800795c0
mov rsi, qword [rdi + 0x10]
cmp rsi, 0xffffffffffffffff
je 0x18001fce4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001fc37
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rsi
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001fc4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18001fbe4
cmp eax, 0x3e6
je 0x18001fbe4
test eax, eax
jle 0x18001fc3e
movzx eax, ax
or eax, 0x80070000
jmp 0x18001fc3c
mov edx, 0x200
mov rcx, rdi
call fcn.180003e00
test eax, eax
js 0x18001fce9
cmp eax, 1
je 0x18001fc3c
mov rdx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001fc37
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.1800785c0
jmp 0x18001fc4d
call fcn.180003220
test eax, eax
js 0x18001fce9
cmp eax, 1
je 0x18001fce9
mov eax, dword [rsp + 0x40]
cmp eax, 0x44574f43
jne 0x18001fc62
mov eax, 0xe0033001
jmp 0x18001fce9
cmp eax, 0x564d444b
je 0x18001fc70
mov eax, 0xe00e1001
jmp 0x18001fce9
cmp dword [rsp + 0x89], 0xa0d200a
je 0x18001fc84
mov eax, 0xe003300c
jmp 0x18001fce9
cmp word [rsp + 0x8d], 0
je 0x18001fc96
mov eax, 0xe0033003
jmp 0x18001fce9
mov eax, dword [rdi + 0x4c]
cmp qword [rsp + 0x4c], rax
je 0x18001fca7
mov eax, 0xe003300b
jmp 0x18001fce9
mov eax, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x78]
mov dword [rdi + 0x50], eax
mov eax, dword [rsp + 0x78]
mov rcx, rdi
mov dword [rdi + 0x54], eax
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x5c]
shl eax, 9
mov dword [rdi + 0x5c], eax
mov eax, dword [rsp + 0x64]
shl eax, 9
mov dword [rdi + 0x60], eax
call fcn.18001fd10
jmp 0x18001fce9
mov eax, 0x80070057
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180076a70
mov rsi, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x180020560
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x268
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [r9]
mov r12d, edx
mov rdi, rcx
cqo
mov rbp, r8
lea rcx, [rsp + 0x51]
and edx, 0x1ff
mov rsi, r9
mov byte [rsp + 0x50], 0
add rax, rdx
xor edx, edx
sar rax, 9
mov dword [r8], eax
mov r8d, 0x1ff
mov rbx, rax
call fcn.1800795c0
mov r11d, dword [rdi + 0x50]
lea ecx, [r11 + rbx - 1]
shl rcx, 9
mov qword [rsi], rcx
mov rbx, qword [rdi + 0x10]
cmp rbx, 0xffffffffffffffff
je 0x18002078f
mov rax, rcx
xor r13d, r13d
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x180020620
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x50]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003fd0
jmp 0x1800206d9
mov rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800206d4
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rbx
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800206ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180020687
cmp eax, 0x3e6
je 0x180020687
test eax, eax
jle 0x1800206db
movzx eax, ax
or eax, 0x80070000
jmp 0x1800206d9
mov edx, 0x200
mov rcx, rdi
call fcn.180003e00
test eax, eax
js 0x180020794
cmp eax, 1
je 0x1800206d9
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
call fcn.1800785c0
mov rdx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800206ea
call fcn.180003220
test eax, eax
js 0x180020794
cmp eax, 1
je 0x180020794
mov eax, dword [rbp]
mov rcx, qword [rdi + 0x68]
mov edx, r12d
sub edx, dword [rdi + 0x70]
mov rbx, r12
mov qword [rsp + 0x30], r13
mov dword [rcx + rdx*4], eax
mov eax, dword [rdi + 0x54]
sub r12d, dword [rdi + 0x70]
shl rbx, 2
mov ebp, r12d
mov r9, rsi
shl rbp, 2
and ebx, 0xfffffe00
mov r8d, 1
add eax, ebx
and ebp, 0xfffffe00
mov qword [rsi], rax
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x10]
add rcx, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003c90
test eax, eax
js 0x180020794
cmp eax, 1
je 0x180020794
mov eax, dword [rdi + 0x58]
mov qword [rsp + 0x30], r13
mov r9, rsi
add eax, ebx
mov r8d, 1
mov rcx, rdi
mov qword [rsi], rax
mov r10, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x10]
add r10, rbp
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], 0x200
call fcn.180003c90
jmp 0x180020794
mov eax, 0x80070057
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x268
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180022b30
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x220]
test rcx, rcx
je 0x180022b55
call fcn.18007702c
mov qword [rbx + 0x220], 0
mov rcx, qword [rbx + 0x218]
cmp rcx, 0xffffffffffffffff
je 0x180022b7d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x218], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180022b91
call fcn.18007702c
mov qword [rbx], 0
mov rcx, rbx
mov dword [rbx + 8], 0
call fcn.180076a50
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800230d0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp r8d, 0xa00000
jbe 0x180023101
mov eax, 0x80004005
jmp 0x18002324d
mov dword [rcx + 0x228], edx
mov dword [rcx + 0x22c], r8d
mov ecx, r8d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1801171e8]
cmovo rax, rcx
mov rcx, rax
call fcn.180077024
mov qword [rbx + 0x220], rax
test rax, rax
jne 0x180023149
mov eax, 0x8007000e
jmp 0x18002324d
mov r8d, dword [rbx + 0x22c]
mov edx, 0xff
mov rcx, rax
shl r8, 2
mov qword [rsp + 0x278], rsi
call fcn.1800795c0
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.1800795c0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x18002326a
cmp eax, 0x104
ja 0x18002326a
lea rdx, str.WMCache_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800231dc
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18002326a
lea r9, [rbx + 0x10]
lea rdx, [0x1800ef288]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x180023238
mov qword [rsp + 0x30], rsi
lea rcx, [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x218], rax
cmp rax, 0xffffffffffffffff
jne 0x180023266
call fcn.180003220
mov rdi, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x260
pop rbx
ret
xor eax, eax
jmp 0x18002323d
call fcn.180003220
jmp 0x180023245
Function at 0x180023280
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x250
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r12, r8
mov ebp, edx
mov rbx, rcx
cmp edx, dword [rcx + 0x22c]
jb 0x1800232b8
mov eax, 0x80070057
jmp 0x18002344e
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov qword [rsp + 0x288], rdi
mov byte [rsp + 0x40], 0
call fcn.1800795c0
mov ecx, dword [rbx + 0x228]
mov rax, qword [rbx + 0x230]
mov rdi, qword [rbx + 0x218]
lea r10, [rcx + rax - 0x200]
mov qword [rsp + 0x38], r10
cmp rdi, 0xffffffffffffffff
je 0x180023441
mov rax, r10
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x180023345
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x200
call fcn.180003fd0
jmp 0x180023407
xor r9d, r9d
xor r8d, r8d
mov rdx, r10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180023365
call fcn.180003220
jmp 0x180023407
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rdi
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180023410
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1800233b5
cmp eax, 0x3e6
je 0x1800233b5
test eax, eax
jle 0x180023407
movzx eax, ax
or eax, 0x80070000
jmp 0x180023407
mov edx, 0x200
mov rcx, rbx
call fcn.180003e00
test eax, eax
js 0x180023407
cmp eax, 1
je 0x180023407
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
mov r8d, 0x200
call fcn.1800785c0
mov rdx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180023410
call fcn.180003220
test eax, eax
js 0x180023446
cmp eax, 1
je 0x180023446
mov ecx, dword [rbx + 0x228]
mov rax, qword [rbx + 0x230]
xor edx, edx
div rcx
mov dword [r12], eax
mov rcx, qword [rbx + 0x220]
mov dword [rcx + rbp*4], eax
mov eax, dword [rbx + 0x228]
add qword [rbx + 0x230], rax
xor eax, eax
jmp 0x180023446
mov eax, 0x80070057
mov rdi, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x250
pop r12
pop rbp
pop rbx
ret
Function at 0x180029ec0
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, qword [rsp + 0xd0]
xor r14d, r14d
mov rdi, r8
mov dword [r8], r14d
mov rbp, r9
mov rsi, rdx
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov r13, rcx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180029f2f
call fcn.180003220
jmp 0x18002a0ba
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi], eax
cmp eax, 0xffffffff
jne 0x180029f58
call fcn.180003220
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x18002a0ba
xor eax, eax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r9, rbp
mov rcx, rbx
mov byte [rsp + 0x40], r14b
mov qword [rsp + 0x41], rax
mov dword [rsp + 0x49], eax
mov word [rsp + 0x4d], ax
mov byte [rsp + 0x4f], al
mov byte [rsp + 0x50], al
mov qword [rsp + 0x51], rax
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
call fcn.18002a220
mov esi, eax
test eax, eax
js 0x18002a0af
cmp eax, 1
je 0x18002a0af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
mov r8, r12
mov edx, reloc.WS2_32.dll_recv
call fcn.180029dd0
mov dword [rdi], eax
test eax, eax
jne 0x18002a009
lea rax, [rsp + 0x40]
lea r8, [0x180000000]
mov dx, word [rax]
cmp dx, word [r8 + 0xf21b0]
jne 0x180029ffa
mov dl, byte [rax + 2]
cmp dl, byte [r8 + 0xf21b2]
jne 0x180029ffa
mov eax, r14d
jmp 0x180029fff
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x18002a010
mov dword [rdi], 5
xor eax, eax
jmp 0x18002a0ba
lea rax, [rsp + 0x40]
mov edx, dword [rax]
cmp edx, dword [r8 + 0xf21b8]
jne 0x18002a033
mov dx, word [rax + 4]
cmp dx, word [r8 + 0xf21bc]
jne 0x18002a033
mov eax, r14d
jmp 0x18002a038
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x18002a044
mov dword [rdi], 4
jmp 0x18002a0ba
lea rax, [rsp + 0x40]
mov rdx, qword [rax]
cmp rdx, qword [r8 + 0xf21c0]
jne 0x18002a067
mov rdx, qword [rax + 8]
cmp rdx, qword [r8 + 0xf21c8]
jne 0x18002a067
mov eax, r14d
jmp 0x18002a06c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x18002a078
mov dword [rdi], 6
jmp 0x18002a0ba
mov eax, dword [rsp + 0x50]
cmp eax, dword [0x1800f21b4]
jne 0x18002a08e
mov dword [rdi], 2
xor eax, eax
jmp 0x18002a0ba
cmp dword [rsp + 0xd8], r14d
je 0x18002a0a8
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.18002a0e0
jmp 0x18002a0ba
mov dword [rdi], r14d
xor eax, eax
jmp 0x18002a0ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002a0e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor r12d, r12d
mov rbp, r8
mov rsi, rdx
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002a137
call fcn.180003220
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
lea rdx, [0x1801171e8]
mov ecx, 0x80000
mov qword [rsp + 0x60], rbx
call fcn.180077024
mov rbx, rax
test rax, rax
jne 0x18002a168
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
jmp 0x18002a200
xor edx, edx
mov r8d, 0x80000
mov rcx, rax
call fcn.1800795c0
lea r9, [rsp + 0x78]
mov r8d, 0x80000
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18002a1b9
call fcn.180003220
mov rcx, rbx
mov esi, eax
call fcn.18007702c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x18002a200
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
mov rdi, rbx
test eax, eax
je 0x18002a1f3
nop dword [rax]
mov r8, rbp
mov edx, eax
mov rcx, rdi
call fcn.180029dd0
mov dword [rsi], eax
test eax, eax
jne 0x18002a1f6
mov eax, dword [rsp + 0x78]
inc rdi
add eax, 0xffffffff
mov dword [rsp + 0x78], eax
jne 0x18002a1d0
mov dword [rsi], r12d
mov rcx, rbx
call fcn.18007702c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x18002e3e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.18003a250
mov ebx, eax
cmp eax, 1
je 0x18002e40b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18002e48b
test ebx, ebx
je 0x18002e488
mov ecx, 8
call fcn.180077f70
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], ecx
mov word [rax], cx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x2c], 3
call fcn.18003a340
test al, al
je 0x18002e47e
cmp dword [rsp + 0x28], 0
jne 0x18002e459
cmp ebx, 1
jne 0x18002e47e
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18002d960
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rdi
mov ebx, eax
call fcn.18007702c
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180039f70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x240
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rax, qword [rcx]
xor ebp, ebp
mov rsi, rcx
mov dword [rcx + 8], ebp
lea rdx, [rsp + 0x20]
mov ecx, 0x105
mov word [rax], bp
mov word [rsp + 0x20], bp
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, ebp
mov r12d, eax
cmp word [rsp + 0x20], di
je 0x180039fdb
lea rcx, [rsp + 0x20]
nop word [rax + rax]
add rcx, 2
inc edi
cmp word [rcx], bp
jne 0x180039fd0
cmp edi, dword [rsi + 0xc]
jbe 0x18003a01f
lea ecx, [rdi + 1]
mov eax, 2
mov qword [rsp + 0x268], rbx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
mov rcx, qword [rsi]
mov rbx, rax
call fcn.18007702c
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x268]
mov dword [rsi + 0xc], edi
mov rcx, qword [rsi]
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x20]
add r8, r8
mov dword [rsi + 8], edi
call fcn.1800785c0
lea r11d, [r12 - 1]
cmp r11d, 0x103
setbe al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180076a70
mov rbp, qword [rsp + 0x270]
add rsp, 0x240
pop r12
pop rdi
pop rsi
ret

Function at 0x18003af30
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
call fcn.18003a250
mov ebx, eax
cmp eax, 1
je 0x18003af71
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x18003af71
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test ebx, ebx
je 0x18003affc
mov ecx, 8
call fcn.180077f70
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], ecx
mov word [rax], cx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x2c], 3
call fcn.18003a340
test al, al
je 0x18003aff2
cmp dword [rsp + 0x28], 0
jne 0x18003afc3
cmp ebx, 1
jne 0x18003aff2
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18002d960
mov rdi, qword [rsp + 0x20]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
mov ebx, eax
call fcn.18007702c
test ebx, ebx
setne al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x18003b010
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.18003a250
mov ebx, eax
cmp eax, 1
je 0x18003b056
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18003b045
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18003b0d8
test ebx, ebx
je 0x18003b0d8
mov ecx, 8
call fcn.180077f70
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], ecx
mov word [rax], cx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x2c], 3
call fcn.18003a340
test al, al
je 0x18003b0ce
cmp dword [rsp + 0x28], 0
jne 0x18003b0a4
cmp ebx, 1
jne 0x18003b0ce
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18002d960
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
mov ebx, eax
call fcn.18007702c
test ebx, ebx
setne al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret