joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800991e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005c00
test al, al
je 0x18009921f
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1800096b0
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.1800999b0
lea rcx, [rsp + 0x28]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18009934c
lea rcx, [rsp + 0x48]
call fcn.180003c60
nop
lea rcx, [rsp + 0x28]
call fcn.180006030
cmp rax, 2
jbe 0x18009932d
lea rcx, [rsp + 0x28]
call fcn.1800038c0
mov rcx, rax
call fcn.180003ef0
cmp word [rax + 2], 0x3a
jne 0x18009932d
lea rcx, [rsp + 0x28]
call fcn.1800038c0
mov rcx, rax
call fcn.180003ef0
cmp word [rax], 0x41
jb 0x1800992c6
lea rcx, [rsp + 0x28]
call fcn.1800038c0
mov rcx, rax
call fcn.180003ef0
cmp word [rax], 0x5a
jbe 0x1800992f6
lea rcx, [rsp + 0x28]
call fcn.1800038c0
mov rcx, rax
call fcn.180003ef0
cmp word [rax], 0x61
jb 0x18009932d
lea rcx, [rsp + 0x28]
call fcn.1800038c0
mov rcx, rax
call fcn.180003ef0
cmp word [rax], 0x7a
ja 0x18009932d
lea rdx, str.__
lea rcx, [rsp + 0x48]
call fcn.180004070
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.180012d20
lea rcx, [rsp + 0x48]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
jmp 0x18009933d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.180003ae0
nop
lea rcx, [rsp + 0x48]
call fcn.180003b80
cmp ebx, 0xffffffff
je 0x180099355
test bl, 0x10
je 0x180099355
mov bl, 1
jmp 0x180099357
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.180003b80
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x70
pop rbx
ret
Function at 0x180099e90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov esi, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
mov rcx, rdx
call fcn.18001ee30
mov rdx, rdi
mov ecx, esi
call fcn.180099f80
movzx ebx, al
mov byte [rsp + 0x20], al
jmp 0x180099eec
test bl, bl
jne 0x180099f49
cmp esi, 0x1a
jne 0x180099f49
mov rcx, rdi
call fcn.18001ee30
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800f7810
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180004070
mov rcx, rdi
call fcn.180005c00
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
movzx eax, bl
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18009a110
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [r11 - 0x58], rcx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
lea edx, [r15 + 0x25]
xor r8d, r8d
mov rcx, rsi
call fcn.18001c8c0
mov rdx, rsi
cmp rax, 0xffffffffffffffff
jne 0x18009a178
mov rcx, rdi
call fcn.1800096b0
nop
mov dword [rsp + 0x20], 1
jmp 0x18009a228
lea rcx, [rsp + 0x38]
call fcn.1800096b0
nop
mov rcx, rsi
call fcn.180003a80
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x18009a1ac
mov rdx, rsi
mov rcx, rdi
call fcn.1800096b0
jmp 0x18009a216
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800d85d0
mov r14, rax
mov rcx, rsi
call fcn.180003a80
mov rcx, rax
lea r8d, [rbp + 1]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18009a201
cmp eax, ebp
ja 0x18009a201
mov eax, eax
mov word [r14 + rax*2], r15w
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.180004070
mov rcx, r14
call fcn.1800d80b0
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180005630
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.180003b80
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18009a6c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180003bb0
nop
call fcn.1800a6010
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1800a60e0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180003b80
test rbx, rbx
je 0x18009a929
lea rdx, [0x1801a16b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x18009a929
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180003bb0
nop
call fcn.1800a6010
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1800a60e0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180003b80
test rbx, rbx
je 0x18009a923
lea rdx, str.GetFileVersionInfoExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r15, r15
je 0x18009a835
test rax, rax
je 0x18009a835
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.180003a80
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x18009a923
mov edx, edi
mov ecx, 1
call fcn.1801009c4
mov rbx, rax
mov rcx, r14
call fcn.180003a80
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rsp + 0x70]
xor ecx, ecx
call r15
test eax, eax
jne 0x18009a8af
mov rcx, rbx
call fcn.1800fedb0
movzx eax, sil
jmp 0x18009a92b
lea rdx, [0x1801a1698]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, [0x1801a1680]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x18009a923
test rax, rax
je 0x18009a923
mov rcx, r14
call fcn.180003a80
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x18009a923
mov edx, edi
mov ecx, 1
call fcn.1801009c4
mov rbx, rax
mov rcx, r14
call fcn.180003a80
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x18009a91b
test rbx, rbx
je 0x18009a923
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x18019b328]
mov rcx, rbx
call rbp
test eax, eax
je 0x18009a91b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18009a91b
cmp dword [rsp + 0x74], 0
jbe 0x18009a91b
cmp dword [rcx], 0xfeef04bd
jne 0x18009a91b
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r13], eax
movzx eax, word [rcx + 0xe]
mov rdx, qword [rsp + 0x30]
mov dword [rdx], eax
movzx eax, word [rcx + 0xc]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov sil, 1
mov rcx, rbx
call fcn.1800fedb0
movzx eax, sil
jmp 0x18009a92b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18009a9d0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x68
ret

Function at 0x18009aa30
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.1800f7810
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18009ab92
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x18009aa94
jne 0x18009ab35
cmp dword [rbx + 8], 2
jb 0x18009ab35
lea rcx, [0x180199a70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18009ab35
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18009ab35
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18009ab35
movups xmm0, xmmword [0x1801a19f8]
mov rcx, rax
movups xmm1, xmmword [0x1801a1a08]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18009ab35
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18009ab35
cmp word [rdi + 2], ax
jbe 0x18009ab35
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18009ab86
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1800f7810
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x18009ab86
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x18009ab94
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x170
pop rbx
ret

Function at 0x18009b740
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
call fcn.18001ee30
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x412
call fcn.1800f7810
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18009b78d
xor al, al
jmp 0x18009b7ad
cmp eax, 0x208
jae 0x18009b789
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov word [rsp + 0x430], ax
call fcn.180004070
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x450
pop rbx
ret
Function at 0x1800a0840
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rdx, qword [rcx + 0x10]
test rdx, rdx
jne 0x1800a087f
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x38]
call fcn.18001cb20
add rdx, 0x38
lea rcx, [rsp + 0x38]
call fcn.1800038d0
nop
mov rax, qword [rbx + 0x10]
cmp qword [rax + 8], 0
je 0x1800a0909
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rcx, qword [rbx + 0x10]
add rcx, 0x14
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x1800a03b0]
xor edx, edx
xor ecx, ecx
call fcn.1800feabc
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
cmp qword [rax + 0x18], 0
jne 0x1800a092b
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1800a0900
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x10]
call fcn.1800a0540
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.180003920
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x50
pop rbx
ret
mov byte [rax + 0x10], 1
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1800a0949
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1800a08e8
mov bl, 1
jmp 0x1800a090b

Function at 0x1800a1e20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx]
test rax, rax
je 0x1800a1e58
test rdx, rdx
je 0x1800a1e58
cmp qword [rax], 0xffffffffffffffff
je 0x1800a1e58
xor eax, eax
mov dword [r9], eax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a1e58
mov al, 1
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret

Function at 0x1800a1ea0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
test rcx, rcx
je 0x1800a1efe
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1800a1efe
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800a1ee9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a1efe
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1800a1f00
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800a2220
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call fcn.1800038c0
nop
mov ecx, 1
call fcn.1800d8074
mov qword [rbx], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call fcn.1800f7810
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800a2298
cmp dword [rsp + 0x34], 6
setae dl
mov rcx, qword [rbx]
mov byte [rcx], dl
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x160
pop rbx
ret
Function at 0x1800a51d0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r8d
mov r14, rdx
mov r12, rcx
xor esi, esi
mov qword [rsp + 0x48], rsi
mov ebx, esi
mov qword [rsp + 0x48], rbx
cmp r8d, 0x3fe
jbe 0x1800a5293
lea ecx, [r15 + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800d85d0
mov r14, rax
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800a5268
cmp eax, r15d
ja 0x1800a5268
mov ecx, eax
mov word [rbx + rcx*2], si
lea ecx, [rax + 1]
mov word [rbx + rcx*2], si
mov r15d, eax
jmp 0x1800a52bf
test r14, r14
je 0x1800a5275
mov rcx, r14
call fcn.1800d80b0
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, r15
add rax, rax
cmp rax, 0x800
jae 0x1800a532c
mov word [rax + rdx], si
lea eax, [r15 + 1]
mov ecx, eax
add rcx, rcx
cmp rcx, 0x800
jae 0x1800a5326
mov word [rcx + rdx], si
mov edi, esi
test r15d, r15d
je 0x1800a5312
mov rbp, r14
nop dword [rax]
cmp word [rbp], 0
jne 0x1800a5307
cmp esi, edi
je 0x1800a5307
mov eax, esi
lea rdx, [r14 + rax*2]
lea rcx, [rsp + 0x28]
call fcn.180003bb0
nop
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.18000dee0
nop
lea rcx, [rsp + 0x28]
call fcn.180003b80
lea esi, [rdi + 1]
inc edi
add rbp, 2
cmp edi, r15d
jb 0x1800a52d0
test rbx, rbx
je 0x1800a531f
mov rcx, rbx
call fcn.1800d80b0
mov al, 1
jmp 0x1800a5277
call fcn.1800d86e0
int3
call fcn.1800d86e0
int3

Function at 0x1800ac300
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1800ac345
mov ebx, 1
jmp 0x1800ac396
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800ac38c
test ecx, ecx
je 0x1800ac391
add rsi, rcx
sub edi, ecx
jne 0x1800ac350
jmp 0x1800ac391
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800ac3af
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret
Function at 0x1800acd40
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800acd7b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800acd7b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.1800b52c0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1800ae7e0
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rdi, rcx
and ebx, 0xffffb1af
call fcn.180003a80
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800ae826
mov al, 1
jmp 0x1800ae86e
lea rcx, [rsp + 0x28]
call fcn.180003c60
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1800aec70
test al, al
je 0x1800ae85f
lea rcx, [rsp + 0x28]
call fcn.180003a80
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800ae85f
mov bl, 1
jmp 0x1800ae861
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.180003b80
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1800ae890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800ae908
lea rcx, [rsp + 0x28]
call fcn.180003c60
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1800aec70
test al, al
je 0x1800ae8fc
lea rcx, [rsp + 0x28]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.180003b80
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1800b52c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x1800b531e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800b5309
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800b531e
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1800b5320
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800b54e0
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, r9
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
xor edi, edi
test rax, rax
je 0x1800b552e
mov dword [rax], edi
mov dword [r9], edi
cmp qword [rcx], 0xffffffffffffffff
je 0x1800b568c
mov eax, 0x100000
mov ebp, r12d
cmp r12d, eax
cmova ebp, eax
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
cmp qword [rsi + 0x28], 0
je 0x1800b5659
test edx, edx
je 0x1800b5659
mov ecx, dword [rsp + 0x68]
cmp ecx, ebp
jae 0x1800b565d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rbx, rdi
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x1800b55a9
xor dil, dil
jmp 0x1800b55dc
mov dword [rsp + 0x6c], edi
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800b55ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800b55ce
xor dil, dil
jmp 0x1800b55dc
mov ebx, dword [rsp + 0x6c]
shl rbx, 0x20
add rbx, rdi
mov dil, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x48]
call fcn.1800096b0
nop
mov rcx, qword [rsi + 0x28]
mov r10, qword [rcx]
mov r9, r14
xor r8d, r8d
test dil, dil
cmovne r8, rbx
mov rdx, rax
call qword [r10 + 0x30]
mov edx, eax
xor edi, edi
test eax, eax
jne 0x1800b5659
mov dword [rsp + 0x70], edi
mov edx, dword [rsp + 0x68]
add rdx, r15
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
mov ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x70]
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x1800b5587
jmp 0x1800b565d
mov ecx, dword [rsp + 0x68]
add dword [r13], ecx
test edx, edx
jne 0x1800b5680
test ecx, ecx
je 0x1800b567c
mov eax, ecx
add r15, rax
sub r12d, ecx
mov eax, 0x100000
jne 0x1800b5540
mov al, 1
jmp 0x1800b568e
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1800b568c
mov dword [rax], edx
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret