Function at 0x140002cd4
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Encode data using xor
Generate random numbers using the delphi lcg
Get file size
Read file via mapping
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
xor ecx, ecx
mov r14d, ecx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], rcx
mov r13d, ecx
mov ebx, ecx
mov qword [rbp + 0x848], rcx
mov qword [rsp + 0x48], rcx
call fcn.1400024f0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [0x140007058]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x11
cmp eax, 0x111
je 0x140002dc3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140007080], eax
mov eax, dword [rbp + 0x830]
mov dword [rbp + 0x830], eax
mov edi, dword [rbp + 0x830]
mov eax, dword [rbp + 0x830]
mov dword [rbp + 0x840], edi
xor edi, edi
mov dword [rbp + 0x838], eax
call fcn.140003c08
mov ecx, eax
mov eax, 0xaaaaaaab
sub ecx, dword [0x140007080]
mul ecx
shr edx, 1
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
test ecx, 0xffff8000
je 0x140002eb6
test edx, edx
je 0x14000363f
cmp edx, 1
je 0x140002d76
mov r15d, dword [rbp + 0x838]
mov r12d, dword [rbp + 0x830]
mov rbx, qword [rbp + 0x848]
jmp 0x140002deb
mov r12d, dword [rbp + 0x830]
mov dword [rbp + 0x830], r12d
mov r15d, dword [rbp + 0x830]
mov eax, dword [rbp + 0x830]
mov dword [rbp + 0x838], r15d
mov dword [rbp + 0x840], eax
mov esi, r12d
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
call fcn.140003c08
mov ecx, eax
mov eax, 0xaaaaaaab
sub ecx, dword [0x140007080]
mul ecx
shr edx, 1
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
test ecx, 0xffff8000
je 0x140002e42
xor edi, edi
test edx, edx
je 0x140003354
cmp edx, 1
je 0x140002d76
jmp 0x140002dee
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x78], r15d
mov qword [rbp - 0x80], rbx
mov dword [rbp - 0x68], r12d
mov qword [rbp - 0x70], rdi
call fcn.140003f40
mov ebx, eax
cmp eax, 1
jne 0x1400036c9
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140003c08
mov ecx, eax
mov eax, 0xaaaaaaab
sub ecx, dword [0x140007080]
mul ecx
shr edx, 1
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
test ecx, 0xffff8000
je 0x1400035e1
xor edi, edi
test edx, edx
je 0x140003354
mov rbx, qword [rbp + 0x848]
jmp 0x140002e37
lea rdx, [0x1400013d0]
mov dword [0x1400074a4], edi
mov word [0x140007090], di
call fcn.140002824
call fcn.140003c08
mov ecx, eax
mov eax, 0xaaaaaaab
sub ecx, dword [0x140007080]
mul ecx
shr edx, 1
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
test ecx, 0xffff8000
jne 0x140002d9f
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
add rbx, 0xfe0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [0x140001460]
mov rcx, rax
call qword [0x140007010]
test rax, rax
setne r12b
test r12b, r12b
je 0x140002f5e
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [0x1400012d8]
mov rcx, rax
call qword [0x140007010]
test rax, rax
je 0x140002f5e
mov rcx, rbx
mov r15b, 1
call fcn.140003858
test al, al
je 0x1400036e2
jmp 0x140002f87
movabs rax, 0x74636a6e696d7678
mov r15b, dil
cmp qword [rbx], rax
je 0x140002f87
mov rcx, rbx
call fcn.140003728
test eax, eax
je 0x1400036e2
cmp eax, 2
cmove rbx, rdi
test rbx, rbx
je 0x14000318f
movsxd rcx, dword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
lea ebx, [r9 + 6]
mov qword [rsp + 0x20], rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x140003536
movsxd rcx, dword [rax + 0x1c]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14000351d
cmp dword [rax + 0x48], 0x3fc
jae 0x140003509
mov r8d, dword [rax + 0x48]
mov edx, dword [rax + 0x4c]
lea rcx, [rbp - 0x18]
add r8, r8
add rdx, rax
call qword [0x140007040]
mov eax, dword [rbx + 0x48]
xor ecx, ecx
mov word [rbp + rax*2 - 0x18], di
mov eax, dword [r14 + 0x40]
mov esi, ecx
test eax, eax
je 0x14000304d
cmp dword [r14 + 0x44], ecx
je 0x14000304d
lea ebx, [rax + 1]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rdi, rax
test rax, rax
jne 0x140003056
lea rdx, [0x1400014f8]
jmp 0x140003628
test r15b, r15b
jne 0x1400034fd
mov eax, dword [r14 + 0x50]
test eax, eax
je 0x140003095
cmp dword [r14 + 0x54], ecx
je 0x140003095
lea ebx, [rax + 1]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r15d, r15d
mov rsi, rax
test rax, rax
jne 0x1400030a1
lea rdx, [0x140001528]
jmp 0x140003628
test r12b, r12b
jne 0x1400034f1
xor r15d, r15d
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x20]
test rdi, rdi
je 0x1400030e4
mov r8d, dword [r14 + 0x40]
mov edx, dword [r14 + 0x44]
mov rcx, rdi
add r8, r8
add rdx, r14
call qword [0x140007040]
mov eax, dword [r14 + 0x40]
lea rcx, [rbx + 0x60]
mov rdx, rdi
mov word [rdi + rax*2], r15w
call qword [0x140007068]
xor edi, edi
test rsi, rsi
je 0x140003174
mov r8d, dword [r14 + 0x50]
mov edx, dword [r14 + 0x54]
mov rcx, rsi
add r8, r8
add rdx, r14
call qword [0x140007040]
mov eax, dword [r14 + 0x50]
mov rdx, rsi
mov word [rsi + rax*2], di
lea rdi, [rbx + 0x70]
mov rcx, rdi
call qword [0x140007068]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rsi
mov rcx, rax
call qword [section..data]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
test rax, rax
je 0x140003172
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x10]
call qword [0x140007038]
lea rcx, [rsp + 0x70]
mov r8b, 1
mov rdx, rdi
call qword [0x140007060]
test eax, eax
js 0x140003188
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call qword [0x140007020]
xor edi, edi
cmp word [rbp - 0x18], 0x5c
jne 0x1400031b8
cmp word [rbp - 0x16], 0x5c
jne 0x1400031b8
lea rbx, [rbp - 0x18]
jmp 0x1400031d3
xor edi, edi
mov byte [rbx], dil
jmp 0x140003174
lea rdx, [rbp - 0x18]
mov r8d, 0x3fc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400031ac
cmp eax, 0x3fc
jne 0x140003174
lea rdx, [0x140001558]
jmp 0x140003524
lea rdx, [0x1400017b0]
lea rcx, [rbp - 0x20]
mov r8d, 8
call qword [0x140007040]
lea rbx, [rbp - 0x20]
call fcn.140003c08
mov r8d, eax
mov eax, 0xaaaaaaab
sub r8d, dword [0x140007080]
mul r8d
mov eax, r8d
shr edx, 1
lea ecx, [rdx + rdx*2]
sub eax, ecx
test r8d, 0xffff8000
je 0x14000320d
test eax, eax
je 0x14000363f
cmp eax, 1
jmp 0x140002daa
mov rdx, rbx
call fcn.140002824
lea rdx, [0x1400013c4]
call fcn.140002824
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8d, [r9 + 7]
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x1400035d5
call fcn.140003c30
test eax, eax
jne 0x140002d76
lea r8d, [rax + 2]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400035c9
xor r9d, r9d
mov r13d, 0x1000
xor r8d, r8d
lea r12d, [r9 + 4]
mov rcx, rax
mov qword [rsp + 0x20], r13
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400035bd
mov rcx, rax
call fcn.140002910
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edi, edi
test eax, eax
je 0x1400035b1
lea rcx, [rbx + r13]
cmp qword [rsp + 0x58], rcx
jle 0x14000358a
lea ecx, [rbx + 0x1000]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, r15
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x140003581
call fcn.140003c08
mov r8d, eax
mov eax, 0xaaaaaaab
sub r8d, dword [0x140007080]
mul r8d
shr edx, 1
lea ecx, [rdx + rdx*2]
mov edx, r8d
sub edx, ecx
test r8d, 0xffff8000
je 0x14000335c
test edx, edx
jne 0x140002da7
mov rsi, rdi
jmp 0x140003644
mov rcx, r13
call fcn.140002910
mov r8d, eax
add r8, r13
mov eax, dword [r8]
add r8, r12
cmp eax, 0x6d7678
jne 0x140003575
mov eax, dword [r8]
add r8, r12
cmp eax, 3
jne 0x140003569
mov edx, dword [r8]
add r8, r12
mov ecx, dword [r8]
mov ebx, edx
add r8, r12
imul ebx, ebx, 0x8088405
inc ebx
mov eax, ebx
xor eax, edx
cmp eax, ecx
jne 0x14000355d
mov ecx, ebx
imul ecx, ecx, 0x8088405
inc ecx
mov eax, ecx
xor eax, ebx
cmp eax, dword [r8]
jne 0x140003551
add r8, 8
imul ecx, ecx, 0x2b9ad7e7
mov r15d, 0x8088406
mov edi, dword [r8]
sub r15d, ecx
add r8, r12
mov r12d, dword [r8]
xor edi, r15d
add r8, 4
imul r15d, r15d, 0x8088405
inc r15d
mov rcx, r13
xor r12d, r15d
mov dword [rbp + 0x830], r12d
imul r15d, r15d, 0x8088405
inc r15d
xor r15d, dword [r8]
sub r8d, r13d
add r8d, 4
mov dword [rbp + 0x838], r15d
add edi, r8d
lea eax, [rdi + r15]
mov dword [rbp + 0x840], eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r13d, r13d
xor r9d, r9d
lea r8d, [r13 + 8]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140003548
mov eax, dword [rbp + 0x840]
lea edx, [r13 + 1]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x14000353f
add rdi, rax
mov qword [rbp + 0x848], rdi
mov rcx, rdi
xor edi, edi
test r15d, r15d
je 0x1400034bf
mov edx, r15d
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov eax, ebx
shr eax, 0x10
xor byte [rcx], al
inc rcx
dec rdx
jne 0x1400034a4
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x78], edi
mov qword [rbp - 0x80], rdi
call fcn.140003e20
mov ebx, eax
test eax, eax
je 0x140002dba
lea rdx, [0x1400016a8]
jmp 0x1400036d0
lea rdx, [0x140001540]
jmp 0x140003628
lea rdx, [0x140001510]
jmp 0x140003628
lea rdx, [0x1400014e0]
call fcn.140002824
mov edx, dword [rbx + 0x48]
jmp 0x1400036d7
lea rdx, [0x1400014c8]
call fcn.140002824
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x1400036d7
lea rdx, [0x1400014b0]
jmp 0x140003524
lea rdx, [0x140001690]
jmp 0x140003524
lea rdx, [0x140001678]
jmp 0x140003524
lea rdx, [0x140001668]
jmp 0x140003628
lea rdx, [0x140001658]
jmp 0x140003628
lea rdx, [0x140001648]
jmp 0x140003628
lea rdx, [0x140001638]
jmp 0x140003628
lea rdx, [0x140001620]
jmp 0x140003524
lea rdx, [0x140001608]
call fcn.140002824
mov edx, dword [rsp + 0x58]
mov r8d, 0xa
call fcn.140002780
lea rdx, [0x1400013c4]
jmp 0x1400036d0
lea rdx, [0x1400015f0]
jmp 0x140003524
lea rdx, [0x1400015d8]
jmp 0x140003524
lea rdx, [0x1400015c0]
jmp 0x140003524
lea rdx, [0x140001570]
jmp 0x140003524
mov rcx, rdi
call fcn.140002a30
mov edx, r12d
mov r8d, 0x8000
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
test rbx, rbx
je 0x1400036e2
mov rcx, rbx
call fcn.140003bc4
mov rcx, rbx
call fcn.140002968
mov rsi, rax
test rax, rax
jne 0x140003632
lea rdx, [0x1400016d0]
call fcn.140002824
jmp 0x1400036e2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r15, rax
jmp 0x140003647
mov rsi, qword [rsp + 0x48]
mov r15, rsi
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x60]
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
jne 0x14000367b
lea rdx, [0x1400016e0]
jmp 0x140003524
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, dword [rbp + 0x840]
mov rax, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
add r9d, 0xffff
mov qword [rsp + 0x28], rax
and r9d, 0xffff0000
mov rdx, rbx
mov rcx, r15
mov qword [rsp + 0x20], r14
call rsi
add rsp, 0x8e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [0x1400016b8]
call fcn.140002824
mov edx, ebx
mov r8d, 0xa
call fcn.140002780
lea rcx, [0x140001708]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [0x1400016f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [0x140001720]
lea rdx, [0x140007090]
mov r9d, 0x10
xor ecx, ecx
call rax
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]