joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009580
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400119e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400095a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400095a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400095a0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400095f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400095e7
test rcx, rcx
je 0x1400095a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400095d8
xor eax, eax
ret

Function at 0x140009600
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400119e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000961f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140009628
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140009640
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400119e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140009660
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140009668
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140009660
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140009660
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400096b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400096c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400096a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400096d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400119e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400096f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140009700
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400096f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400096f2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400096f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140009755
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140009768
add rdx, 0x28
cmp rdx, r10
jne 0x140009740
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140009777
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140009787
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000975e
test ecx, ecx
jg 0x140009770
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2fc4d5e30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d6832
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d68ca
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d68ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d68a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d68a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6868
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d68cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d69d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d69f8
mov eax, 0
jmp 0x2fc4d6a46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6a21
mov eax, 0
jmp 0x2fc4d6a46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6a41
mov eax, 0
jmp 0x2fc4d6a46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6a4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d6aca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6ac1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6ac1
mov rax, qword [rbp - 8]
jmp 0x2fc4d6adf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6a94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009f8c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, r8d
mov rbx, rdx
xor edi, edi
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140009fea
test byte [rcx + 0x1c], 4
je 0x140009fea
cmp byte [rcx + 0x19], 5
jb 0x140009fea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xea
call fcn.140001024
lea rcx, str.SentItems
test esi, esi
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140088010]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14000a06a
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000a052
test byte [rcx + 0x1c], 4
je 0x14000a052
cmp byte [rcx + 0x19], 2
jb 0x14000a052
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xeb
mov r9d, eax
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
jmp 0x14000a0c5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a0c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000a0c3
test byte [rcx + 0x1c], 4
je 0x14000a0c3
cmp byte [rcx + 0x19], 2
jb 0x14000a0c3
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xec
mov dword [rsp + 0x20], eax
lea r8, [0x140088520]
call fcn.140001328
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec30
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a0f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
mov rsi, r9
mov ebp, r8d
mov rbx, rdx
mov rcx, qword [0x14009b028]
lea r15, [0x14009b028]
lea r12, [0x140088520]
cmp rcx, r15
je 0x14000a15d
test byte [rcx + 0x1c], 4
je 0x14000a15d
cmp byte [rcx + 0x19], 5
jb 0x14000a15d
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r12
call fcn.140001024
lea rcx, str.SentItems
test ebp, ebp
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140088010]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14000a1da
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a1c1
test byte [rcx + 0x1c], 4
je 0x14000a1c1
cmp byte [rcx + 0x19], 2
jb 0x14000a1c1
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r12
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x14000a2c6
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a2b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
jne 0x14000a285
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a237
test byte [rcx + 0x1c], 4
je 0x14000a237
cmp byte [rcx + 0x19], 5
jb 0x14000a237
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r12
call fcn.1400011fc
lea rdx, [rsp + 0x30]
call fcn.140009eb8
test eax, eax
jne 0x14000a281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a2c6
test byte [rcx + 0x1c], 4
je 0x14000a2c6
cmp byte [rcx + 0x19], 2
jb 0x14000a2c6
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r12
call fcn.140001050
jmp 0x14000a2c6
xor eax, eax
jmp 0x14000a2be
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a2c6
test byte [rcx + 0x1c], 4
je 0x14000a2c6
cmp byte [rcx + 0x19], 2
jb 0x14000a2c6
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140001328
jmp 0x14000a2c6
mov eax, 1
xor ebx, ebx
cmp dword [rdi], ebx
je 0x14000a2c6
mov dword [rdi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec30
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a618
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
cmp rcx, r12
je 0x14000a679
test byte [rcx + 0x1c], 4
je 0x14000a679
cmp byte [rcx + 0x19], 5
jb 0x14000a679
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfa
call fcn.140001024
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a703
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a6d9
test byte [rcx + 0x1c], 4
je 0x14000a6d9
cmp byte [rcx + 0x19], 3
jb 0x14000a6d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfb
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001094
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14007ec30
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a703
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
je 0x14000a775
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a775
test byte [rcx + 0x1c], 4
je 0x14000a775
cmp byte [rcx + 0x19], 2
jb 0x14000a775
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfc
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001094
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14000a7bd
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a7bd
test byte [rcx + 0x1c], 4
je 0x14000a7bd
cmp byte [rcx + 0x19], 2
jb 0x14000a7bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfd
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call fcn.140001094
cmp ebx, 0x12
jne 0x14000a6d9
mov qword [r14], rbp
xor eax, eax
jmp 0x14000a6db
Function at 0x1400239f4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140023a3d
test byte [rcx + 0x1c], 4
je 0x140023a3d
cmp byte [rcx + 0x19], 5
jb 0x140023a3d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov edx, 0x2b
call fcn.140001024
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006b230
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140023ab5
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140023bbc
test byte [rax + 0x1c], 4
je 0x140023bbc
cmp byte [rax + 0x19], 2
jb 0x140023bbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rdi + 0x2c]
mov r9d, eax
lea r8, [0x140088ab0]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140023bbc
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400781d8
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x140023b89
test eax, eax
je 0x140023b3f
test rbx, rbx
lea r8, [0x140087fe8]
mov rcx, rdi
cmovne r8, rbx
call fcn.140077e00
test eax, eax
jne 0x140023b89
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140023b3f
test byte [rax + 0x1c], 4
je 0x140023b3f
cmp byte [rax + 0x19], 2
jb 0x140023b3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088ab0]
mov r9d, eax
mov edx, 0x2d
mov rcx, qword [rcx + 0x10]
call fcn.140001050
lea rdx, str.Password
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140023b89
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140023b89
test byte [rcx + 0x1c], 4
je 0x140023b89
cmp byte [rcx + 0x19], 2
jb 0x140023b89
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov edx, 0x2e
mov r9d, eax
call fcn.140001050
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rbx, rbx
je 0x140023bbc
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140023ba1
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.1400671c4
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400278dc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, rdx
mov r14, rcx
xor ebx, ebx
mov edi, ebx
lea r12, [0x14009b028]
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140027947
test byte [rcx + 0x1c], 4
je 0x140027947
cmp byte [rcx + 0x19], 5
jb 0x140027947
lea edx, [rbx + 0xa]
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp dword [0x14009f294], ebx
jne 0x140027967
jmp 0x140027b03
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, r14
call fcn.140028804
test eax, eax
jne 0x1400279b0
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x1400279a6
test byte [rcx + 0x1c], 4
je 0x1400279a6
cmp byte [rcx + 0x19], 2
jb 0x1400279a6
lea edx, [rax + 0xb]
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov edi, 0xe
jmp 0x140027acc
xor ecx, ecx
call fcn.14002b58c
test eax, eax
je 0x140027a4a
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x1400279ec
test byte [rcx + 0x1c], 4
je 0x1400279ec
cmp byte [rcx + 0x19], 5
jb 0x1400279ec
mov edx, 0xd
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
xor ecx, ecx
call fcn.14002b794
mov edi, eax
test eax, eax
je 0x140027a4a
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140027a29
test byte [rcx + 0x1c], 4
je 0x140027a29
cmp byte [rcx + 0x19], 2
jb 0x140027a29
mov edx, 0xe
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
cmp dword [0x14009f294], ebx
je 0x140027ac8
mov rcx, qword [0x14009f080]
cmp rcx, 0xffffffffffffffff
je 0x140027ac8
mov edi, ebx
jmp 0x140027a51
mov rcx, qword [0x14009f080]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x60]
add r8d, r8d
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140027ac8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140027ac8
test byte [rcx + 0x1c], 4
je 0x140027ac8
cmp byte [rcx + 0x19], 2
jb 0x140027ac8
mov edx, 0xf
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140027ac8
test edi, edi
je 0x140027af1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
nop
cmp qword [rsp + 0x68], 8
jb 0x140027aed
mov rcx, qword [rsp + 0x50]
call fcn.14007e784
xor eax, eax
jmp 0x140027b08
cmp qword [rsp + 0x68], 8
jb 0x140027b03
mov rcx, qword [rsp + 0x50]
call fcn.14007e784
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007ec30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140027b38
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rcx
xor ebx, ebx
mov edi, ebx
lea r15, [0x14009b028]
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140027ba0
test byte [rcx + 0x1c], 4
je 0x140027ba0
cmp byte [rcx + 0x19], 5
jb 0x140027ba0
lea edx, [rbx + 0x10]
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp dword [0x14009f298], ebx
jne 0x140027bc0
jmp 0x140027d5f
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140029148
test eax, eax
jne 0x140027c06
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140027bfc
test byte [rcx + 0x1c], 4
je 0x140027bfc
cmp byte [rcx + 0x19], 2
jb 0x140027bfc
lea edx, [rax + 0x11]
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov edi, 0xe
jmp 0x140027d28
mov ecx, 1
call fcn.14002b58c
test eax, eax
je 0x140027ca6
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140027c45
test byte [rcx + 0x1c], 4
je 0x140027c45
cmp byte [rcx + 0x19], 5
jb 0x140027c45
mov edx, 0x13
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov ecx, 1
call fcn.14002b794
mov edi, eax
test eax, eax
je 0x140027ca6
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140027c85
test byte [rcx + 0x1c], 4
je 0x140027c85
cmp byte [rcx + 0x19], 2
jb 0x140027c85
mov edx, 0x14
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
cmp dword [0x14009f298], ebx
je 0x140027d24
mov rcx, qword [0x14009f0b0]
cmp rcx, 0xffffffffffffffff
je 0x140027d24
mov edi, ebx
jmp 0x140027cad
mov rcx, qword [0x14009f0b0]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x60]
add r8d, r8d
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140027d24
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140027d24
test byte [rcx + 0x1c], 4
je 0x140027d24
cmp byte [rcx + 0x19], 2
jb 0x140027d24
mov edx, 0x15
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140027d24
test edi, edi
je 0x140027d4d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
nop
cmp qword [rsp + 0x68], 8
jb 0x140027d49
mov rcx, qword [rsp + 0x50]
call fcn.14007e784
xor eax, eax
jmp 0x140027d64
cmp qword [rsp + 0x68], 8
jb 0x140027d5f
mov rcx, qword [rsp + 0x50]
call fcn.14007e784
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007ec30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x14002b58c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, ecx
mov rcx, qword [0x14009b028]
lea rsi, [0x14009b028]
cmp rcx, rsi
je 0x14002b5e2
test byte [rcx + 0x1c], 4
je 0x14002b5e2
cmp byte [rcx + 0x19], 5
jb 0x14002b5e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088d60]
mov edx, 0x5c
call fcn.140001024
mov eax, dword [0x14009f2a8]
test eax, eax
je 0x14002b663
mov rcx, qword [0x14009f0b0]
test ebx, ebx
cmove rcx, qword [0x14009f080]
cmp eax, 1
jne 0x14002b697
xor eax, eax
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x14002b682
mov rax, qword [0x14009b028]
cmp rax, rsi
je 0x14002b663
test byte [rax + 0x1c], 4
je 0x14002b663
cmp byte [rax + 0x19], 2
jb 0x14002b663
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x5d
mov rcx, qword [0x14009b028]
lea r8, [0x140088d60]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14007ec30
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
mov eax, dword [0x14009f2ac]
shl rax, 0x14
cmp qword [rbp - 0x30], rax
jl 0x14002b663
jmp 0x14002b781
cmp eax, 2
jne 0x14002b663
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetFileTime]
nop dword [rax + rax]
test eax, eax
jne 0x14002b6e4
mov rax, qword [0x14009b028]
cmp rax, rsi
je 0x14002b663
test byte [rax + 0x1c], 4
je 0x14002b663
cmp byte [rax + 0x19], 2
jb 0x14002b663
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x5e
jmp 0x14002b649
xorps xmm0, xmm0
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
movups xmmword [rbp - 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
nop dword [rax + rax]
test eax, eax
jne 0x14002b73d
mov rax, qword [0x14009b028]
cmp rax, rsi
je 0x14002b663
test byte [rax + 0x1c], 4
je 0x14002b663
cmp byte [rax + 0x19], 2
jb 0x14002b663
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x5f
jmp 0x14002b649
xorps xmm0, xmm0
lea rcx, [rbp - 0x18]
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
nop dword [rax + rax]
movzx ecx, word [rbp - 0x28]
movzx edx, word [rbp - 0x18]
sub edx, ecx
movzx ecx, word [rbp - 0x26]
lea r8d, [rdx + rdx*2]
shl r8d, 2
sub r8d, ecx
movzx ecx, word [rbp - 0x16]
add r8d, ecx
cmp r8d, dword [0x14009f2b0]
jb 0x14002b663
mov eax, 1
jmp 0x14002b665