joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001af10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rax, r9
mov rcx, qword [rcx + 8]
mov esi, r8d
mov rdi, rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001ef00
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001af90
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rax, r9
mov rcx, qword [rcx + 8]
mov esi, r8d
mov rdi, rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001ef00
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001a64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aae
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ab0
xor al, al
add rsp, 0x28
ret
Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003974
cmp word [rcx], 0x5a4d
jne 0x140003974
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003974
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003974
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003990
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038f0
test rax, rax
je 0x140003985
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004148
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004040
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fe0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000eb58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000eb54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004502
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045e9
inc ebx
add rax, 0x28
jmp 0x1400044da
mov rcx, r12
call fcn.140004ce1
mov rbp, rax
test rax, rax
jne 0x140004521
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004450
movsxd rbx, ebx
mov rax, qword [0x14000eb58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d8f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000eb58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004583
mov rax, qword [0x14000eb58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004450
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045e3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045e3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000eb58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004450
inc dword [0x14000eb54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000ebc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000eba0]
test rbx, rbx
je 0x140004a5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a56
test eax, eax
jne 0x140004a56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004c33
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004c33
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004c34
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c6e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c65
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c70
inc r8d
add rax, 0x28
jmp 0x140004c4c
xor eax, eax
ret

Function at 0x140004ce1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000acb0]
mov r8, rcx
mov rcx, r9
call fcn.140004c10
test eax, eax
je 0x140004d0d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c34
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001210
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0xb0]
mov r12, rdx
xor edx, edx
mov qword [rsp + 0x30], r8
movzx r13d, r9b
mov r15, r8
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [rsp + 0xb8]
test ebx, ebx
je 0x140001265
cmp eax, ebx
cmova eax, ebx
xor esi, esi
mov dword [rsp + 0x38], 0
mov bpl, 1
test r13b, r13b
je 0x14000129a
cmp eax, ebx
jbe 0x1400012e2
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare__size_is_too_few_error
call fcn.140005b00
xor al, al
jmp 0x140001385
lea ebx, [rax + 1]
mov ecx, ebx
mov r15d, ebx
call fcn.14001f854
mov qword [r12], rax
test rax, rax
jne 0x1400012cf
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare__no_memory
call fcn.140005b00
xor al, al
jmp 0x140001385
mov rdi, rax
mov rcx, r15
mov r15, qword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov rdi, qword [r12]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000132f
nop
mov eax, dword [rsp + 0x38]
add esi, eax
sub ebx, eax
test eax, eax
je 0x14000134a
mov edx, esi
lea r9, [rsp + 0x38]
add rdx, rdi
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001300
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare_fail
call fcn.1400068e0
xor bpl, bpl
test r13b, r13b
jne 0x140001366
test bpl, bpl
jne 0x14000136b
mov rcx, rdi
mov qword [r12], 0
call fcn.14001f574
jmp 0x14000136e
test bpl, bpl
je 0x14000136e
mov dword [r15], esi
cmp byte [rsp + 0xc0], 0
je 0x140001381
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001f550
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400013b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x68
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001409
xor al, al
jmp 0x14000151a
mov qword [rsp + 0xa8], rbx
xor edx, edx
mov qword [rsp + 0x60], rsi
mov rcx, rbp
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], edi
mov r14b, 1
mov ebx, edi
lea esi, [rax + 1]
mov ecx, esi
mov r15d, esi
call fcn.14001f854
mov qword [r12], rax
test rax, rax
jne 0x14000146a
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare__no_memory
call fcn.140005b00
xor r14b, r14b
jmp 0x1400014ff
mov rdi, rax
lea r9, [rsp + 0x40]
xor eax, eax
mov rcx, r15
rep stosb byte [rdi], al
mov rdi, qword [r12]
xor r15d, r15d
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400014cf
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
add ebx, eax
sub esi, eax
test eax, eax
je 0x140001532
mov edx, ebx
lea r9, [rsp + 0x40]
add rdx, rdi
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400014a0
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare_fail
call fcn.1400068e0
mov rcx, rdi
mov qword [r12], r15
xor r14b, r14b
call fcn.14001f574
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x50]
movzx eax, r14b
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rbp
ret
mov dword [r13], ebx
jmp 0x1400014f6
Function at 0x140001540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000175f
test al, 0x10
jne 0x14000175f
mov rcx, rbp
call fcn.140015200
mov rdi, rax
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], sil
test rax, rax
jne 0x1400015c7
mov qword [rsp + 0x60], rax
mov byte [rsp + rax + 0x50], sil
jmp 0x1400015f8
lea rcx, [rsp + 0x50]
cmp rdi, 0xf
ja 0x1400015e8
mov qword [rsp + 0x60], rdi
mov r8, rdi
xor edx, edx
call fcn.1400220d0
mov byte [rsp + rdi + 0x50], 0
jmp 0x1400015f8
mov byte [rsp + 0x20], 0
mov r9, rdi
mov rdx, rdi
call fcn.140001d90
lea r14, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r14, qword [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140001707
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9b, 1
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.140001210
test al, al
je 0x140001707
mov eax, dword [rsp + 0x40]
cmp qword [rsp + 0x60], rax
je 0x1400016f4
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.File_size_error
call fcn.140005b00
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
xor r8d, r8d
lea rdx, [0x140059338]
mov rcx, rbx
call fcn.140001bd0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001782
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017aa
call fcn.14001f574
jmp 0x140001782
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140001782
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
xor r8d, r8d
lea rdx, [0x140059338]
mov rcx, rbx
call fcn.140001bd0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001782
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017b0
jmp 0x1400016ea
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
xor r8d, r8d
lea rdx, [0x140059338]
mov rcx, rbx
call fcn.140001bd0
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001f550
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140028ec4
int3
call fcn.140028ec4
int3
Function at 0x1400017c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400017ff
mov rcx, qword [rcx]
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14000188b
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.CreateFile_fail
call fcn.1400068e0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001884
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000187f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001948
mov rcx, r8
call fcn.14001f574
xor al, al
jmp 0x14000191d
mov dword [rsp + 0x48], r12d
mov r14d, edi
mov esi, r12d
nop word [rax + rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400018d6
mov eax, dword [rsp + 0x48]
sub edi, eax
add esi, eax
cmp esi, r14d
ja 0x1400018d1
add rbp, rax
test edi, edi
jne 0x1400018a0
mov dil, 1
jmp 0x1400018d9
xor dil, dil
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001919
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001914
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000194e
mov rcx, r8
call fcn.14001f574
movzx eax, dil
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140028ec4
int3
call fcn.140028ec4
int3
Function at 0x140005810
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push r15
sub rsp, 0xab8
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x208
call fcn.1400220d0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1400220d0
xor edx, edx
lea rcx, [rsp + 0x470]
mov r8d, 0x208
call fcn.1400220d0
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.140014b30
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x260]
lea rdx, str._s_s.log
lea rcx, [rsp + 0x470]
call fcn.140001d30
mov rax, qword [rbp + 8]
xor r15d, r15d
cmp rax, 0xffffffffffffffff
jne 0x140005902
mov qword [rsp + 0x30], r15
lea r8d, [rax + 8]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x470]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140005a1a
mov qword [rsp + 0xab0], rbx
lea rcx, [rsp + 0x680]
mov qword [rsp + 0xaa8], rsi
lea rbx, [rsp + 0xae0]
mov qword [rsp + 0xaa0], rdi
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0xa98], r14
call fcn.1400220d0
call fcn.1400011a0
mov r9, qword [rsp + 0xad8]
lea rdx, [rsp + 0x680]
mov qword [rsp + 0x28], rbx
mov r8d, 0x400
mov qword [rsp + 0x20], r15
mov rcx, qword [rax]
call fcn.140028acc
lea r8, [0x140059984]
mov edx, 0x400
lea rcx, [rsp + 0x680]
call fcn.14002a7f4
lea rax, [rsp + 0x680]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140005994
mov rbp, qword [rbp + 8]
lea rsi, [rsp + 0x680]
mov dword [rsp + 0x40], r15d
mov r14d, ebx
mov edi, r15d
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400059fa
mov eax, dword [rsp + 0x40]
sub ebx, eax
add edi, eax
cmp edi, r14d
ja 0x1400059f1
add rsi, rax
test ebx, ebx
jne 0x1400059c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rdi, qword [rsp + 0xaa0]
mov rsi, qword [rsp + 0xaa8]
mov rbx, qword [rsp + 0xab0]
mov r14, qword [rsp + 0xa98]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14001f550
add rsp, 0xab8
pop r15
pop rbp
ret
Function at 0x140005a40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test r9, r9
jne 0x140005a7c
lea rcx, str.error_argument_is_null
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.1400011a0
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rax]
or rcx, 2
call fcn.140028ac4
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
inc eax
cmp eax, 0x800
jb 0x140005ad5
lea rcx, str.error_argument_is_too_big
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r9, rbx
mov r8, rdi
mov edx, 0x800
mov rcx, rsi
call fcn.140002190
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140005b00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x1048
call fcn.140020360
sub rsp, rax
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov eax, dword [rcx + 0x14]
mov rdi, rdx
mov rbx, rcx
test eax, eax
je 0x140005c28
cmp eax, 2
jl 0x140005b50
cmp qword [rcx], 0xffffffffffffffff
je 0x140005c28
mov qword [rsp + 0x1040], rsi
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], 0
mov r8d, 0x800
lea rsi, [rsp + 0x1070]
call fcn.1400220d0
mov r9, rsi
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.140005a40
mov rsi, qword [rsp + 0x1040]
test al, al
je 0x140005c28
mov ecx, dword [rbx + 0x14]
sub ecx, 1
je 0x140005bad
sub ecx, 1
je 0x140005bef
cmp ecx, 1
jne 0x140005c28
xor edx, edx
lea rcx, [rsp + 0x830]
mov r8d, 0x800
call fcn.1400220d0
lea r8, [rsp + 0x30]
lea rdx, str._s_r_n
lea rcx, [rsp + 0x830]
call fcn.140007610
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rbx + 0x14], 3
jne 0x140005c28
lea r8, [0x140059984]
mov edx, 0x800
lea rcx, [rsp + 0x30]
call fcn.14002a7f4
lea rax, [rsp + 0x30]
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], 0
jne 0x140005c11
mov rdx, qword [rbx]
lea r8, [rsp + 0x30]
call fcn.140005e30
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x1048
pop rdi
pop rbx
ret
Function at 0x140005c50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.140020360
sub rsp, rax
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov eax, dword [rcx + 0x14]
mov rdi, rdx
mov rbx, rcx
test eax, eax
je 0x140005e07
cmp eax, 2
jl 0x140005ca8
cmp qword [rcx], 0xffffffffffffffff
je 0x140005e07
mov qword [rsp + 0x1098], rsi
lea rcx, [rbp + 0x780]
xor edx, edx
mov qword [rsp + 0x50], 0
mov r8d, 0x800
lea rsi, [rbp + 0xfd0]
call fcn.1400220d0
mov r9, rsi
lea rcx, [rbp + 0x780]
mov r8, rdi
call fcn.140005a40
mov rsi, qword [rsp + 0x1098]
test al, al
je 0x140005e07
lea rcx, [rsp + 0x50]
call fcn.140029d58
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14002993c
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x800
call fcn.1400220d0
mov ecx, dword [rbx + 0x14]
sub ecx, 1
je 0x140005d36
sub ecx, 1
je 0x140005d96
cmp ecx, 1
jne 0x140005e07
mov r9d, dword [rsp + 0x68]
lea rax, [rbp + 0x780]
mov r8d, dword [rsp + 0x6c]
lea rdx, str._04d__02d__02d__02d:_02d:_02d__s_r_n
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x80]
mov eax, dword [rsp + 0x58]
inc r9d
mov dword [rsp + 0x38], eax
add r8d, 0x76c
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
call fcn.140007610
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rbx + 0x14], 3
jne 0x140005e07
mov r9d, dword [rsp + 0x68]
lea rax, [rbp + 0x780]
mov r8d, dword [rsp + 0x6c]
lea rdx, str._04d__02d__02d__02d:_02d:_02d___s_r_n
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x80]
mov eax, dword [rsp + 0x58]
inc r9d
mov dword [rsp + 0x38], eax
add r8d, 0x76c
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
call fcn.140007610
lea rax, [rbp - 0x80]
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], 0
jne 0x140005df1
mov rdx, qword [rbx]
lea r8, [rbp - 0x80]
call fcn.140005e30
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x10a0
pop rdi
pop rbx
pop rbp
ret

Function at 0x140005e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov ebx, r9d
mov dword [rsp + 0x30], r15d
mov edi, r15d
mov rsi, r8
mov r14, rdx
mov ebp, r9d
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005ea9
mov eax, dword [rsp + 0x30]
sub ebx, eax
add edi, eax
cmp edi, ebp
ja 0x140005ea0
add rsi, rax
test ebx, ebx
jne 0x140005e70
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001f550
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret