Function at 0x1400017d0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x688
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
xor r9d, r9d
lea r8, [rsp + 0x170]
mov edx, 0x104
mov ecx, 0x73
call qword [0x140006438]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x140001830
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x88]
lea rcx, [0x1400062d0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1400018de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [0x140006490]
test eax, eax
jne 0x14000191e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140001c11
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x78]
call qword [0x140006488]
test eax, eax
jne 0x14000196d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [0x140006498]
mov eax, dword [rsp + 0x44]
jmp 0x140001c11
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x140001a02
cmp dword [rsp + 0x58], 0
jne 0x1400019a8
jmp 0x140001a02
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x70]
call qword [0x140006470]
test eax, eax
jne 0x1400019fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [0x140006498]
mov rcx, qword [rsp + 0x70]
call qword [0x140006480]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140001c11
jmp 0x14000196d
cmp dword [rsp + 0x5c], 0
jne 0x140001a3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [0x140006498]
mov rcx, qword [rsp + 0x70]
call qword [0x140006480]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140001c11
lea rax, [rsp + 0x118]
mov rdi, rax
xor eax, eax
mov ecx, 0x21
rep stosb byte [rdi], al
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x21
rep stosb byte [rdi], al
lea rax, [rsp + 0xc8]
lea rcx, str.4bfd1fa8df30c2285af62c9524153df8
mov rdi, rax
mov rsi, rcx
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
lea rcx, str.3a93dad6445f880efaf3f3c1022fd6db
mov rdi, rax
mov rsi, rcx
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x60], 0x21
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0xa0]
mov edx, 2
mov rcx, qword [rsp + 0x70]
call qword [0x140006478]
test eax, eax
je 0x140001be2
mov dword [rsp + 0x48], 0
jmp 0x140001af8
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x48], eax
jae 0x140001bc7
mov eax, dword [rsp + 0x48]
movzx eax, byte [rsp + rax + 0xa0]
sar eax, 4
cdqe
movzx eax, byte [rsp + rax + 0x88]
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x48]
movzx eax, byte [rsp + rax + 0xa0]
and eax, 0xf
cdqe
movzx eax, byte [rsp + rax + 0x88]
mov byte [rsp + 0x41], al
cmp dword [rsp + 0x64], 0
je 0x140001b81
movsx eax, byte [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
shl ecx, 1
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xc8]
cmp eax, ecx
je 0x140001b81
movsx eax, byte [rsp + 0x41]
mov ecx, dword [rsp + 0x48]
inc ecx
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xc8]
cmp eax, ecx
je 0x140001b81
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x68], 0
je 0x140001bc2
movsx eax, byte [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
shl ecx, 1
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
je 0x140001bc2
movsx eax, byte [rsp + 0x41]
mov ecx, dword [rsp + 0x48]
inc ecx
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
je 0x140001bc2
mov dword [rsp + 0x68], 0
jmp 0x140001aee
cmp dword [rsp + 0x64], 0
jne 0x140001bd5
cmp dword [rsp + 0x68], 0
je 0x140001be0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x140001bec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x70]
call qword [0x140006480]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [0x140006498]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x688
pop rdi
pop rsi
ret