joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001dc0
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x4f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1800f7050]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x228]
call fcn.1800644c0
mov r8d, 0x104
lea rdx, [rsp + 0x2d0]
mov rcx, qword [0x180103c38]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebp, ebp
test eax, eax
je 0x180001e44
cmp eax, 0x104
ja 0x180001e44
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov word [rax], bp
jmp 0x180001e5a
call fcn.1800030e0
test eax, eax
js 0x180001ff1
cmp eax, 1
je 0x180001ff1
lea rdx, str.PlugFormat_
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x80]
call fcn.1800644c0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x28]
call fcn.180002750
nop
mov r8d, 5
lea rdx, str..dll
lea rcx, [rsp + 0x28]
call fcn.180002610
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180001f20
cmp qword [rsp + 0x48], 8
jb 0x180001f13
mov rcx, qword [rsp + 0x30]
call fcn.1800620e0
xor eax, eax
jmp 0x180001ff1
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbp
mov word [rsp + 0x58], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x50]
call fcn.180002750
nop
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xac]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x50]
call fcn.180002610
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8d, 1
mov rcx, rsi
call fcn.180001ca0
nop
cmp qword [rsp + 0x70], 8
jb 0x180001fba
mov rcx, qword [rsp + 0x58]
call fcn.1800620e0
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180001f20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x48], 8
jb 0x180001fef
mov rcx, qword [rsp + 0x30]
call fcn.1800620e0
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180062100
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800039e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
xor r13d, r13d
mov r10, r9
mov rbp, rdx
mov r12, rcx
test rbx, rbx
je 0x180003a0f
mov dword [rbx], r13d
mov edi, dword [rsp + 0x70]
test edi, edi
jne 0x180003a1e
xor eax, eax
jmp 0x180003b36
mov qword [rsp + 0x50], rsi
cmp rdx, 0xffffffffffffffff
je 0x180003b2c
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x180003b2c
mov rax, qword [r9]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180003b13
test edi, 0x1ff
jne 0x180003b13
mov rdx, qword [r10]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003aee
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003b04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180003abd
cmp eax, 0x3e6
je 0x180003abd
test eax, eax
jle 0x180003b31
movzx eax, ax
or eax, 0x80070000
jmp 0x180003b31
mov edx, edi
mov rcx, r12
call fcn.180003cc0
test eax, eax
js 0x180003b31
cmp eax, 1
je 0x180003b31
mov rdx, qword [r12]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003af5
call fcn.1800030e0
jmp 0x180003b31
mov rdx, qword [r12]
mov r8, rdi
mov rcx, rsi
call fcn.180063290
test rbx, rbx
je 0x180003b0f
mov eax, dword [rsp + 0x70]
mov dword [rbx], eax
xor eax, eax
jmp 0x180003b31
mov r9, rsi
mov r8, r10
mov rdx, rbp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.180003d30
jmp 0x180003b31
mov eax, 0x80070057
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180003b50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
xor r13d, r13d
mov r10, r9
mov rsi, rdx
mov r12, rcx
test rbx, rbx
je 0x180003b7f
mov dword [rbx], r13d
mov edi, dword [rsp + 0x70]
test edi, edi
jne 0x180003b8e
xor eax, eax
jmp 0x180003caa
mov qword [rsp + 0x50], rbp
mov rbp, qword [rsp + 0x78]
test rbp, rbp
je 0x180003ca0
cmp rdx, 0xffffffffffffffff
je 0x180003ca0
mov rax, qword [r9]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180003c87
test edi, 0x1ff
jne 0x180003c87
mov rdx, qword [r10]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003c71
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180003c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180003c31
cmp eax, 0x3e6
je 0x180003c31
test eax, eax
jle 0x180003ca5
movzx eax, ax
or eax, 0x80070000
jmp 0x180003ca5
mov edx, edi
mov rcx, r12
call fcn.180003cc0
test eax, eax
js 0x180003ca5
cmp eax, 1
je 0x180003ca5
mov rcx, qword [r12]
mov r8, rdi
mov rdx, rbp
call fcn.180063290
mov rdx, qword [r12]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180003c78
call fcn.1800030e0
jmp 0x180003ca5
test rbx, rbx
je 0x180003c83
mov eax, dword [rsp + 0x70]
mov dword [rbx], eax
xor eax, eax
jmp 0x180003ca5
mov r9, rbp
mov r8, r10
mov rdx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.180003e90
jmp 0x180003ca5
mov eax, 0x80070057
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180003d30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0x88]
xor edi, edi
mov r14, r9
mov r13, r8
mov r12, rdx
mov r15, rcx
test rbp, rbp
je 0x180003d65
mov dword [rbp], edi
mov esi, dword [rsp + 0x80]
test esi, esi
jne 0x180003d77
xor eax, eax
jmp 0x180003e37
test r9, r9
je 0x180003e89
cmp rdx, 0xffffffffffffffff
je 0x180003e89
test r8, r8
je 0x180003e89
mov rcx, qword [r8]
mov qword [rsp + 0x60], rbx
mov rax, rcx
cqo
and edx, 0x1ff
lea rbx, [rdx + rax]
mov rax, rsi
sar rbx, 9
shl rbx, 9
sub rax, rbx
lea rax, [rax + rcx + 0x1ff]
mov rcx, r15
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0xfffffe00
mov edx, eax
mov qword [rsp + 0x88], rax
call fcn.180003cc0
test eax, eax
js 0x180003e32
cmp eax, 1
je 0x180003e32
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003e2d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [r15]
lea r9, [rsp + 0x80]
mov rcx, r12
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003e4f
call fcn.1800030e0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [r13]
mov ecx, dword [rsp + 0x80]
sub eax, ebx
cmp ecx, eax
jbe 0x180003e7d
sub ecx, eax
cmp ecx, esi
cmovb esi, ecx
mov edi, esi
test esi, esi
je 0x180003e7d
mov edx, eax
mov r8, rdi
mov rcx, r14
add rdx, qword [r15]
call fcn.180063290
test rbp, rbp
je 0x180003e85
mov dword [rbp], edi
xor eax, eax
jmp 0x180003e32
mov eax, 0x80070057
jmp 0x180003e37
Function at 0x180003e90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [rsp + 0x98]
xor edi, edi
mov r15, r9
mov r13, r8
mov r12, rdx
mov r14, rcx
test rbp, rbp
je 0x180003ec5
mov dword [rbp], edi
mov esi, dword [rsp + 0x90]
test esi, esi
jne 0x180003ed7
xor eax, eax
jmp 0x180003ff4
test r9, r9
je 0x180004031
cmp rdx, 0xffffffffffffffff
je 0x180004031
test r8, r8
je 0x180004031
mov rcx, qword [r8]
mov qword [rsp + 0x70], rbx
mov rax, rcx
cqo
and edx, 0x1ff
lea rbx, [rdx + rax]
mov rax, rsi
sar rbx, 9
shl rbx, 9
sub rax, rbx
lea rax, [rax + rcx + 0x1ff]
mov rcx, r14
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0xfffffe00
mov edx, eax
mov qword [rsp + 0x30], rax
call fcn.180003cc0
test eax, eax
js 0x180003fef
cmp eax, 1
je 0x180003fef
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003fea
mov r8d, dword [rsp + 0x30]
mov rdx, qword [r14]
lea r9, [rsp + 0x98]
mov rcx, r12
mov dword [rsp + 0x98], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180003fea
mov r13d, dword [r13]
mov r8, rsi
mov rdx, r15
sub r13d, ebx
mov ecx, r13d
add rcx, qword [r14]
call fcn.180063290
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003fea
mov r8d, dword [rsp + 0x30]
mov rdx, qword [r14]
lea r9, [rsp + 0x90]
mov rcx, r12
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000400f
call fcn.1800030e0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rbp, rbp
je 0x18000402d
mov eax, dword [rsp + 0x90]
cmp eax, r13d
jbe 0x18000402a
sub eax, r13d
cmp eax, esi
cmovb esi, eax
mov edi, esi
mov dword [rbp], edi
xor eax, eax
jmp 0x180003fef
mov eax, 0x80070057
jmp 0x180003ff4
Function at 0x18000a8b0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800f7050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x18000a9a1
cmp word [rdx], 0
je 0x18000a9a1
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x18000a8f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18000a936
call fcn.1800030e0
jmp 0x18000a9a6
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18000a92f
mov rax, qword [rsp + 0x40]
cqo
and edx, 0x1ff
add rax, rdx
mov rcx, rax
and eax, 0x1ff
sar rcx, 9
cmp rax, rdx
je 0x18000a970
mov eax, 0xe00e1001
jmp 0x18000a9a6
mov qword [rsp + 0x40], rcx
mov dword [rdi + 0x80], ecx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x50], 0
call fcn.1800644c0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.18000a9d0
jmp 0x18000a9a6
mov eax, 0x80070057
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180062100
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x18000a9d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x70]
xor ebx, ebx
mov rdi, rdx
lea rsi, [rcx + 0x10]
cmp rbp, 0xffffffffffffffff
je 0x18000ab04
test rdx, rdx
je 0x18000ab04
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18000aab1
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000aabf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18000aa64
cmp eax, 0x3e6
je 0x18000aa64
test eax, eax
jle 0x18000aab8
movzx eax, ax
or eax, 0x80070000
jmp 0x18000aab6
mov edx, 0x200
mov rcx, rsi
call fcn.180003cc0
test eax, eax
js 0x18000ab09
cmp eax, 1
je 0x18000aab6
mov rdx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000aab1
mov rdx, qword [rsi]
mov r8d, 0x200
mov rcx, rdi
call fcn.180063290
jmp 0x18000aabf
call fcn.1800030e0
test eax, eax
js 0x18000ab09
cmp eax, 1
je 0x18000ab09
cmp dword [rdi], 0x5120372
je 0x18000aace
mov eax, 0xe00e1001
jmp 0x18000ab09
cmp dword [rdi + 4], 2
jne 0x18000aafd
test byte [rdi + 8], 1
je 0x18000aafd
mov r11d, dword [rdi + 0xc]
mov edx, 0x200
mov rcx, rdi
mov dword [rdi + 0xc], ebx
call fcn.18000e8c0
mov ecx, 0xe0037001
cmp r11d, eax
cmovne ebx, ecx
mov eax, ebx
jmp 0x18000ab09
mov eax, 0xe0037003
jmp 0x18000ab09
mov eax, 0x80070057
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18000d930
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
sub rsp, 0x278
mov rax, qword [0x1800f7050]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp dword [rcx + 0x88], 0
mov r12d, r8d
mov rbp, rcx
mov dword [rsp + 0x34], r8d
jne 0x18000d9c4
mov r8d, dword [rcx + 0x378]
mov eax, edx
add rcx, 0x10
lea rdx, [r8 + rax*4]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rcx + 0x60]
cmp rdx, 0xffffffffffffffff
je 0x18000d9ba
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.180003e90
test eax, eax
js 0x18000db7d
cmp eax, 1
je 0x18000db7d
xor eax, eax
jmp 0x18000db7d
mov eax, 0x80070057
jmp 0x18000db7d
mov qword [rsp + 0x270], rbx
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x260], rdi
mov edi, edx
mov rdx, qword [rcx + 0x380]
lea rcx, [rsp + 0x50]
shl rdi, 2
mov r8d, 0x200
mov rsi, rdi
and esi, 0xfffffe00
mov ebx, esi
add rdx, rbx
call fcn.180063290
sub rdi, rbx
shr rbx, 9
mov dword [rsp + rdi + 0x50], r12d
add rbx, qword [rbp + 0x368]
lea rcx, [rbp + 0x8c]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov r9, rbx
call fcn.18000e540
mov r10d, dword [rbp + 0x378]
mov rdi, qword [rbp + 0x70]
add r10d, esi
mov rsi, qword [rsp + 0x268]
mov qword [rsp + 0x40], r10
cmp rdi, 0xffffffffffffffff
je 0x18000db66
mov rax, r10
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x18000daa0
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x10]
mov rdx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003e90
mov ebx, eax
jmp 0x18000db6b
xor r9d, r9d
xor r8d, r8d
mov rdx, r10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18000db5d
xor ebx, ebx
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rdi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000db6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18000db09
cmp eax, 0x3e6
je 0x18000db09
test eax, eax
jle 0x18000da99
movzx ebx, ax
or ebx, 0x80070000
jmp 0x18000db6b
lea rcx, [rbp + 0x10]
mov edx, 0x200
call fcn.180003cc0
test eax, eax
js 0x18000da99
cmp eax, 1
je 0x18000da99
mov rcx, qword [rbp + 0x10]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
call fcn.180063290
mov rdx, qword [rbp + 0x10]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000db6b
call fcn.1800030e0
mov ebx, eax
jmp 0x18000db6b
mov ebx, 0x80070057
mov rdi, qword [rsp + 0x260]
mov eax, ebx
mov rbx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180062100
add rsp, 0x278
pop r12
pop rbp
ret
Function at 0x18000dba0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rdi, r9
mov rax, rdx
test r9, r9
je 0x18000dce4
mov qword [rsp + 0x68], rsi
xor esi, esi
mov dword [r9], esi
test r8d, r8d
jne 0x18000dc06
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x18000dbf6
lea rdx, str..wmt
mov rcx, rax
call fcn.180062c7c
test eax, eax
jne 0x18000dbf6
mov dword [rdi], 8
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 0xe00e1001
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000dc4f
call fcn.1800030e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000dc9b
call fcn.1800030e0
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x78], 0x5120372
jne 0x18000dcc6
mov rcx, rbx
mov dword [rdi], 8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 0xe00e1001
add rsp, 0x50
pop rdi
ret
mov eax, 0x80070057
add rsp, 0x50
pop rdi
ret

Function at 0x18000e8c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r9d, 0xffffffff
lea r10, [0x1800fd2d0]
nop dword [rax + rax]
movzx r8d, byte [rcx]
mov eax, r9d
inc rcx
xor r8, rax
movzx eax, r8b
mov r8d, r9d
mov r9d, dword [r10 + rax*4]
shr r8d, 8
xor r9d, r8d
sub edx, 1
jne 0x18000e8d0
not r9d
mov eax, r9d
ret
Function at 0x18000f780
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800f7050]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
lea rbx, [rcx + 1]
mov edi, 0xa
xor ebp, ebp
nop word [rax + rax]
mov rax, qword [0x1800c78d0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rcx], rax
mov rax, qword [0x1800c78d8]
mov qword [rcx + 8], rax
mov rax, qword [0x1800c78e0]
lea r8, [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800c78e8]
mov edx, 0x280
mov qword [rcx + 0x18], rax
mov rax, qword [0x1800c78f0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1800c78f8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800c7900]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800c7908]
mov qword [rcx + 0x38], rax
mov rcx, rsi
call fcn.180010d70
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xf0]
mov r8d, 0x40
call fcn.180010e80
mov r11, rbp
movzx eax, byte [rsp + r11 + 0xf0]
add r11, 4
xor byte [rbx + r11 - 5], al
movzx eax, byte [rsp + r11 + 0xed]
xor byte [rbx + r11 - 4], al
movzx eax, byte [rsp + r11 + 0xee]
xor byte [rbx + r11 - 3], al
movzx eax, byte [rsp + r11 + 0xef]
xor byte [rbx + r11 - 2], al
cmp r11, 0x40
jl 0x18000f853
add rbx, 0x40
sub rdi, 1
jne 0x18000f7c0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180062100
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000ff30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x1800f7050]
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.180063290
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.18000f8d0
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8, rsi
call fcn.180063290
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.18000f8d0
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 0x180010010
sub rdi, 1
jne 0x18000ffe0
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 0x180010050
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 0x180010070
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180062100
add rsp, 0x150
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180016950
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 0x180016b4d
test r9, r9
je 0x180016b4d
mov ecx, dword [rsp + 0x90]
cmp ecx, 5
je 0x18001698a
cmp ecx, 6
jne 0x180016b4d
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 0x1800169ea
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 0x180016ac3
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.180002750
cmp qword [rbx + 0x10], 0xffffffffffffffff
mov rdi, qword [rsp + 0x70]
jne 0x180016ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x180016a8b
cmp eax, 0x20
je 0x180016a8b
cmp eax, 0xa7
je 0x180016a8b
cmp eax, 0x21
je 0x180016a8b
cmp eax, 0x13
je 0x180016a8b
test eax, eax
jle 0x180016a7d
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 0x180016ae1
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180016af4
call fcn.1800030e0
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 0x180016b21
mov eax, 0xe003300c
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
cmp dword [rbx + 0x40], 5
jne 0x180016b3d
mov rcx, rbx
call fcn.180016b60
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