Function at 0x409ce0
Capabilities:
Contain obfuscated stackstrings
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414661
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x174], eax
call fcn.00402330
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40ad96
mov edi, dword [edx]
mov edx, dword [edx + 4]
cmp edi, edx
je 0x40ad96
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x40ad96
lea eax, [edi + 0x64]
cmp byte [eax], 0
jne 0x409d75
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x409d63
jmp 0x40ad96
mov esi, dword [ebp - 0x16c]
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040b510
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e6e0
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov byte [ebp - 0x40], 0
test eax, eax
jne 0x409dce
xor al, al
jmp 0x409dec
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409de6
cmp eax, 0x80
je 0x409de6
xor al, al
jmp 0x409dec
mov byte [ebp - 0x20], 1
mov al, 1
mov byte [ebp - 0x151], al
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x152]
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x152], 0
push eax
push esi
call fcn.0040adc0
test al, al
jne 0x409e53
cmp byte [ebp - 0x152], al
je 0x409e53
mov ecx, esi
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
xor edi, edi
mov byte [ebp - 0x152], al
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40a673
xor ecx, ecx
mov dword [ebp - 0x158], ecx
nop
cmp byte [ecx + esi + 0x64], 0
lea eax, [ecx + esi]
mov dword [ebp - 0x164], eax
je 0x40a22f
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x170], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x18]
xor esi, esi
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409f2c
xor eax, eax
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x164]
add edi, eax
call fcn.00402110
push eax
mov ecx, edi
call fcn.00402110
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409f2a
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov edi, dword [ebp - 0x1c]
sub ecx, edi
inc dword [ebp - 0x170]
add dword [ebp - 0x168], 0x68
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x168]
jb 0x409ed1
jmp 0x409f2c
mov esi, edi
test esi, esi
jne 0x409fc7
lea ecx, [ebp - 0x150]
call fcn.00408d70
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edx
je 0x409f69
call fcn.00401e60
lea ecx, [ebp - 0x150]
push ecx
mov ecx, eax
call fcn.00409b10
mov edx, dword [ebp - 0x18]
add edx, 0x68
mov dword [ebp - 0x18], edx
jmp 0x409f7c
lea eax, [ebp - 0x150]
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040c400
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4ec4ec4f
sub edx, ecx
imul edx
lea esi, [ecx - 0x68]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x68
add esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x120]
call fcn.004021a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x138]
call fcn.004021a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x150]
call fcn.004021a0
push esi
lea ecx, [ebp - 0xe8]
call fcn.00402250
mov byte [ebp - 4], 8
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402250
mov byte [ebp - 4], 9
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402250
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 0x48]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x88], eax
mov al, byte [esi + 0x64]
mov byte [ebp - 0x84], al
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x164]
cmp esi, edi
je 0x40a06f
mov ecx, edi
call fcn.00402330
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40a064
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00402360
lea ecx, [edi + 0x18]
lea edx, [esi + 0x18]
cmp edx, ecx
je 0x40a093
call fcn.00402330
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40a088
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00402360
lea ecx, [edi + 0x30]
lea edx, [esi + 0x30]
cmp edx, ecx
je 0x40a0b7
call fcn.00402330
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40a0ac
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00402360
mov eax, dword [edi + 0x48]
mov ecx, esi
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov al, byte [edi + 0x64]
mov byte [esi + 0x64], al
call fcn.00402330
lea ecx, [ebp - 0xe8]
mov edx, eax
call fcn.00402330
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40a105
mov ecx, dword [eax]
cmp dword [edx + 0x14], 8
mov edi, edx
jb 0x40a10f
mov edi, dword [edx]
mov edx, dword [edx + 0x10]
cmp edx, dword [eax + 0x10]
jne 0x40a1e1
test edx, edx
je 0x40a136
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40a1e1
add ecx, 2
sub edx, 1
jne 0x40a121
lea ecx, [esi + 0x18]
call fcn.00402330
lea ecx, [ebp - 0xd0]
mov edx, eax
call fcn.00402330
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40a155
mov ecx, dword [eax]
cmp dword [edx + 0x14], 8
mov edi, edx
jb 0x40a15f
mov edi, dword [edx]
mov edx, dword [edx + 0x10]
cmp edx, dword [eax + 0x10]
jne 0x40a1e1
test edx, edx
je 0x40a182
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40a1e1
add ecx, 2
sub edx, 1
jne 0x40a171
mov eax, dword [esi + 0x48]
cmp eax, dword [ebp - 0xa0]
jne 0x40a1e1
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebp - 0x9c]
jne 0x40a1e1
mov eax, dword [esi + 0x50]
cmp eax, dword [ebp - 0x98]
jne 0x40a1e1
mov eax, dword [esi + 0x54]
cmp eax, dword [ebp - 0x94]
jne 0x40a1e1
mov eax, dword [esi + 0x58]
cmp eax, dword [ebp - 0x90]
jne 0x40a1e1
mov eax, dword [esi + 0x5c]
cmp eax, dword [ebp - 0x8c]
jne 0x40a1e1
lea edx, [ebp - 0xb8]
lea ecx, [esi + 0x30]
call fcn.0040c010
test al, al
jne 0x40a1e1
mov eax, dword [esi + 0x60]
cmp eax, dword [ebp - 0x88]
je 0x40a1ec
mov byte [ebp - 0x152], 1
mov byte [esi + 0x64], 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb8]
call fcn.004021a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xd0]
call fcn.004021a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.004021a0
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x15c]
mov esi, dword [eax]
jmp 0x40a235
mov eax, dword [ebp - 0x160]
add ecx, 0x68
inc edi
mov dword [ebp - 0x158], ecx
mov ecx, dword [eax + 4]
mov eax, 0x4ec4ec4f
sub ecx, esi
mov dword [ebp - 0x15c], edi
imul ecx
mov ecx, dword [ebp - 0x158]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409e90
cmp byte [ebp - 0x152], 0
je 0x40a673
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x40a673
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0xf
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov edi, dword [ebp - 0x1c]
sub ecx, edi
imul ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x15c], eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x15c], eax
jbe 0x40a32f
mov dword [ebp - 0x164], 0x418937
call fcn.00401e70
lea edx, [ebp - 0x164]
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x158]
call fcn.00402550
mov ecx, dword [ebp - 0x15c]
mov eax, dword [eax]
cmp ecx, eax
ja 0x40adb5
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040bb60
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x168], 0
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40a601
xor ecx, ecx
mov dword [ebp - 0x160], ecx
nop dword [eax]
mov eax, dword [ecx + edi + 0x60]
lea esi, [ecx + edi]
mov dword [ebp - 0x15c], esi
cmp eax, 1
je 0x40a380
cmp eax, 2
je 0x40a380
cmp eax, 3
jne 0x40a5c7
push 0x280
xorps xmm0, xmm0
mov dword [ebp - 0x55c], 0
lea eax, [ebp - 0x558]
movlpd qword [ebp - 0x190], xmm0
push 0
push eax
movlpd qword [ebp - 0x188], xmm0
movlpd qword [ebp - 0x180], xmm0
mov dword [ebp - 0x178], 0
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x2d8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x48
lea eax, [ebp - 0x1d8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x2c]
add esp, 0x24
cmp dword [ebp - 0x28], edx
je 0x40a418
call fcn.00401e60
mov ecx, 0xfa
lea esi, [ebp - 0x55c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x2c]
add edx, 0x3e8
mov dword [ebp - 0x2c], edx
mov esi, dword [ebp - 0x15c]
jmp 0x40a42b
lea eax, [ebp - 0x55c]
push eax
push edx
lea ecx, [ebp - 0x30]
call fcn.0040c230
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov eax, 0x10624dd3
sub edx, ecx
add ecx, 0xfffffc18
imul edx
push 0x280
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
add eax, ecx
push 0
mov dword [ebp - 0x158], eax
lea edi, [eax + 4]
mov dword [eax], 0x23ab45db
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x158]
push 0x100
add eax, 0x284
push 0
push eax
mov dword [ebp - 0x15c], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x158]
push 0x48
add eax, 0x384
push 0
push eax
mov dword [ebp - 0x164], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov ecx, esi
call fcn.00402330
mov eax, dword [eax + 0x10]
cmp eax, 0x13f
ja 0x40a4d9
call fcn.00402110
mov ecx, eax
sub edi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x40a4c1
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp 0x40a4f0
push 0x13e
call fcn.00402110
push eax
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
call edi
add esp, 0xc
lea ecx, [esi + 0x18]
call fcn.00402330
mov eax, dword [eax + 0x10]
cmp eax, 0x7f
ja 0x40a522
call fcn.00402110
mov edx, dword [ebp - 0x15c]
mov ecx, eax
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40a510
jmp 0x40a535
push 0x7e
call fcn.00402110
push eax
push dword [ebp - 0x15c]
call edi
add esp, 0xc
lea ecx, [esi + 0x30]
call fcn.00402330
mov eax, dword [eax + 0x10]
cmp eax, 0x23
ja 0x40a566
call fcn.00402110
mov edx, dword [ebp - 0x164]
mov ecx, eax
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40a554
jmp 0x40a579
push 0x23
call fcn.00402110
push eax
push dword [ebp - 0x164]
call edi
add esp, 0xc
mov ecx, dword [ebp - 0x158]
mov eax, dword [esi + 0x48]
mov dword [ecx + 0x3cc], eax
mov eax, dword [esi + 0x4c]
mov dword [ecx + 0x3d0], eax
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x3d4], eax
mov eax, dword [esi + 0x54]
mov dword [ecx + 0x3d8], eax
mov eax, dword [esi + 0x58]
mov dword [ecx + 0x3dc], eax
mov eax, dword [esi + 0x5c]
mov dword [ecx + 0x3e0], eax
mov eax, dword [esi + 0x60]
mov dword [ecx + 0x3e4], eax
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x168]
add ecx, 0x68
mov dword [ebp - 0x160], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x18]
inc esi
sub ecx, edi
mov dword [ebp - 0x168], esi
imul ecx
mov ecx, dword [ebp - 0x160]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40a360
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jne 0x40a6d2
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40a673
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x40a654
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a654
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40ad42
mov edx, dword [ebp - 0x18]
push ecx
call fcn.0040c5f0
mov ecx, dword [ebp - 0x14]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x40ad23
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ad23
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x10
mov ecx, 1
movaps xmm2, xmmword [0x4172d0]
xor eax, eax
mov dword [ebp - 0x68], 0x2d2d4352
mov dword [ebp - 0x64], 0x35343332
mov dword [ebp - 0x60], 0x61534350
mov dword [ebp - 0x5c], 0x2d302e32
mov dword [ebp - 0x58], 0x2d736843
mov dword [ebp - 0x54], 0x61435243
mov dword [ebp - 0x50], 0x38313031
mov dword [ebp - 0x4c], 0x35313032
movd xmm3, ecx
nop dword [eax]
nop dword [eax + eax]
movd xmm0, eax
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ebp + eax*4 - 0x68]
paddd xmm1, xmm2
pslld xmm0, xmm3
paddd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x68], xmm1
add eax, 4
cmp eax, 8
jl 0x40a750
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x30]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x3c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push ecx
lea ecx, [ebp - 0x68]
push eax
push esi
call fcn.004100c0
test al, al
jne 0x40a84e
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x40a7fb
mov edx, dword [ebp - 0x34]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40a7dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a7dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40a673
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x40a654
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a654
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x38]
jne 0x40a88a
mov byte [ebp - 4], 0xf
test esi, esi
je 0x40a7fb
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40a883
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a883
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
jmp 0x40a7de
push ecx
push 0x80
push 4
push ecx
mov ecx, dword [ebp - 0x16c]
push 0
call fcn.00402110
mov edx, 0x40000000
mov ecx, eax
call fcn.004084b0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x40a8ba
test edi, edi
jne 0x40a921
push ecx
mov ecx, dword [ebp - 0x16c]
push 0x4169d0
call fcn.004080f0
cmp eax, 0xffffffff
je 0x40a921
mov ecx, dword [ebp - 0x16c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.00407350
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x60]
call fcn.00407e80
push ecx
push 0x80
push 4
push ecx
mov ecx, dword [ebp - 0x16c]
push 0
call fcn.00402110
mov edx, 0x40000000
mov ecx, eax
call fcn.004084b0
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x60]
call fcn.004021a0
cmp edi, 0xffffffff
je 0x40aceb
test edi, edi
je 0x40aceb
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
push 0
push ecx
sub eax, esi
mov dword [ebp - 0x48], 0
push eax
push esi
push edi
mov dword [ebp - 0x15c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x15c]
cmp dword [ebp - 0x48], eax
jne 0x40ab90
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 0x1c]
cmp edx, eax
je 0x40a9ae
mov ecx, dword [edx]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [edx + 4]
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40aa17
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x174]
lea esi, [esi + 0x68]
inc dword [ebp - 0x158]
mov byte [esi + edi - 4], 0
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x158], eax
jb 0x40a9e0
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xf
test esi, esi
je 0x40aa61
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40aa42
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40aac5
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x40aaa6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40ab35
mov edx, dword [ebp - 0x18]
push ecx
call fcn.0040c5f0
mov ecx, dword [ebp - 0x14]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x40ab16
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x151], 0
je 0x40ab54
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40ab50
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40ab74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004021a0
mov al, 1
jmp 0x40ad98
mov byte [ebp - 4], 0xf
test esi, esi
je 0x40abda
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40abbb
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40ac3e
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x40ac1f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40acae
mov edx, dword [ebp - 0x18]
push ecx
call fcn.0040c5f0
mov ecx, dword [ebp - 0x14]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x40ac8f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x151], 0
je 0x40accd
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40acc9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40ad81
push eax
call edi
jmp 0x40ad7a
mov byte [ebp - 4], 0xf
test esi, esi
je 0x40a7fb
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40a883
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a883
jmp 0x40a848
push ecx
push esi
call fcn.00411f57
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x151], 0
je 0x40ad61
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40ad5d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40ad81
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004021a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411f16
mov esp, ebp
pop ebp
ret 0xc
call fcn.00403d20
int3