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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6738
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x550
mov eax, dword [0x100f101c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x178], eax
call fcn.10004040
test eax, eax
je 0x1002f93d
mov edi, dword [esi]
mov edx, dword [esi + 4]
cmp edi, edx
je 0x1002f93d
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x1002f93d
lea eax, [edi + 0x64]
cmp byte [eax], 0
jne 0x1002e826
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x1002e814
jmp 0x1002f93d
mov esi, dword [ebp - 0x170]
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.10030110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 8
call fcn.10015240
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007ad0
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x16c], xmm0
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x168], 0
test eax, eax
jne 0x1002e88a
xor al, al
jmp 0x1002e8a8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002e8a2
cmp eax, 0x80
je 0x1002e8a2
xor al, al
jmp 0x1002e8a8
mov byte [ebp - 0x24], 1
mov al, 1
mov byte [ebp - 0x141], al
mov byte [ebp - 0x168], al
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x142]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 0x142], 0
push eax
push esi
call fcn.1002f980
test al, al
jne 0x1002e912
cmp byte [ebp - 0x142], al
je 0x1002e912
mov ecx, esi
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
xor edi, edi
mov byte [ebp - 0x142], al
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x14c], 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 0x1002f1e0
xor ecx, ecx
mov dword [ebp - 0x148], ecx
nop
cmp byte [ecx + esi + 0x64], 0
lea eax, [ecx + esi]
mov dword [ebp - 0x150], eax
je 0x1002ed77
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x174], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x1c]
xor esi, esi
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002e9eb
xor eax, eax
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x150]
add edi, eax
call fcn.10003830
push eax
mov ecx, edi
call fcn.10003830
push eax
call fcn.10087eb8
add esp, 8
test eax, eax
je 0x1002e9e9
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4ec4ec4f
mov edi, dword [ebp - 0x20]
sub ecx, edi
inc dword [ebp - 0x174]
add dword [ebp - 0x154], 0x68
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x154]
jb 0x1002e991
jmp 0x1002e9eb
mov esi, edi
test esi, esi
jne 0x1002ead6
lea ecx, [ebp - 0x140]
call fcn.10003990
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x128]
call fcn.10003990
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.10003990
mov byte [ebp - 4], 6
xorps xmm0, xmm0
movlpd qword [ebp - 0xf8], xmm0
movlpd qword [ebp - 0xf0], xmm0
movlpd qword [ebp - 0xe8], xmm0
mov dword [ebp - 0xe0], esi
mov byte [ebp - 0xdc], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
je 0x1002ea78
push eax
push 0x68
call fcn.10002170
add esp, 8
lea ecx, [ebp - 0x140]
push ecx
mov ecx, eax
call fcn.1002e5b0
mov edx, dword [ebp - 0x1c]
add edx, 0x68
mov dword [ebp - 0x1c], edx
jmp 0x1002ea8b
lea ecx, [ebp - 0x140]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.10030fa0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
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], 9
lea ecx, [ebp - 0x110]
call fcn.100038a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x128]
call fcn.100038a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.100038a0
push esi
lea ecx, [ebp - 0xd8]
call fcn.10006740
mov byte [ebp - 4], 0xb
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0xc0]
call fcn.10006740
mov byte [ebp - 4], 0xc
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0xa8]
call fcn.10006740
mov byte [ebp - 4], 0xd
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x78], eax
mov al, byte [esi + 0x64]
mov byte [ebp - 0x74], al
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x150]
push edi
call fcn.10003ec0
add esp, 4
cmp esi, eax
je 0x1002eb7b
mov ecx, edi
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1002eb70
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.100039c0
lea eax, [edi + 0x18]
push eax
call fcn.10003ec0
lea ecx, [esi + 0x18]
add esp, 4
cmp ecx, eax
je 0x1002ebac
lea ecx, [edi + 0x18]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1002eba0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esi + 0x18]
call fcn.100039c0
lea eax, [edi + 0x30]
push eax
call fcn.10003ec0
lea ecx, [esi + 0x30]
add esp, 4
cmp ecx, eax
je 0x1002ebdd
lea ecx, [edi + 0x30]
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1002ebd1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esi + 0x30]
call fcn.100039c0
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.100039b0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x150], eax
call fcn.100039b0
mov dword [ebp - 0x154], eax
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1002ec35
mov ecx, dword [eax]
mov eax, dword [ebp - 0x150]
mov edi, eax
cmp dword [eax + 0x14], 8
jb 0x1002ec45
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x154]
cmp edx, dword [eax + 0x10]
jne 0x1002ed29
test edx, edx
je 0x1002ec75
sub edi, ecx
nop dword [eax]
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x1002ed29
add ecx, 2
sub edx, 1
jne 0x1002ec60
lea ecx, [esi + 0x18]
call fcn.100039b0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x150], eax
call fcn.100039b0
mov dword [ebp - 0x154], eax
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1002ec9e
mov ecx, dword [eax]
mov eax, dword [ebp - 0x150]
mov edi, eax
cmp dword [eax + 0x14], 8
jb 0x1002ecae
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x154]
cmp edx, dword [eax + 0x10]
jne 0x1002ed29
test edx, edx
je 0x1002ecd3
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x1002ed29
add ecx, 2
sub edx, 1
jne 0x1002ecc2
mov eax, dword [esi + 0x48]
cmp eax, dword [ebp - 0x90]
jne 0x1002ed29
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebp - 0x8c]
jne 0x1002ed29
mov eax, dword [esi + 0x50]
cmp eax, dword [ebp - 0x88]
jne 0x1002ed29
mov eax, dword [esi + 0x54]
cmp eax, dword [ebp - 0x84]
jne 0x1002ed29
mov eax, dword [esi + 0x58]
cmp eax, dword [ebp - 0x80]
jne 0x1002ed29
mov eax, dword [esi + 0x5c]
cmp eax, dword [ebp - 0x7c]
jne 0x1002ed29
lea edx, [ebp - 0xa8]
lea ecx, [esi + 0x30]
call fcn.10030b90
test al, al
jne 0x1002ed29
mov eax, dword [esi + 0x60]
cmp eax, dword [ebp - 0x78]
je 0x1002ed34
mov byte [ebp - 0x142], 1
mov byte [esi + 0x64], 1
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa8]
call fcn.100038a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc0]
call fcn.100038a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.100038a0
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x148]
mov edi, dword [ebp - 0x14c]
mov esi, dword [eax]
jmp 0x1002ed7d
mov eax, dword [ebp - 0x164]
add ecx, 0x68
inc edi
mov dword [ebp - 0x148], ecx
mov ecx, dword [eax + 4]
mov eax, 0x4ec4ec4f
sub ecx, esi
mov dword [ebp - 0x14c], edi
imul ecx
mov ecx, dword [ebp - 0x148]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1002e950
cmp byte [ebp - 0x142], 0
je 0x1002f1e0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x1002f1e0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0x12
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edi, dword [ebp - 0x20]
sub ecx, edi
imul ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14c], eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14c], eax
jbe 0x1002ee7c
mov dword [ebp - 0x150], 0x418937
call fcn.10002190
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.10003be0
mov ecx, dword [ebp - 0x14c]
add esp, 8
mov eax, dword [eax]
cmp ecx, eax
ja 0x1002f95f
push ecx
lea ecx, [ebp - 0x34]
call fcn.100306f0
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x154], 0
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002f170
xor ecx, ecx
mov dword [ebp - 0x164], ecx
nop dword [eax]
mov eax, dword [ecx + edi + 0x60]
lea esi, [ecx + edi]
mov dword [ebp - 0x14c], esi
cmp eax, 1
je 0x1002eed0
cmp eax, 2
je 0x1002eed0
cmp eax, 3
jne 0x1002f136
push 0x280
xorps xmm0, xmm0
mov dword [ebp - 0x560], 0
lea eax, [ebp - 0x55c]
movlpd qword [ebp - 0x194], xmm0
push 0
push eax
movlpd qword [ebp - 0x18c], xmm0
movlpd qword [ebp - 0x184], xmm0
mov dword [ebp - 0x17c], 0
call fcn.10081e90
add esp, 0xc
lea eax, [ebp - 0x2dc]
push 0x100
push 0
push eax
call fcn.10081e90
add esp, 0xc
lea eax, [ebp - 0x1dc]
push 0x48
push 0
push eax
call fcn.10081e90
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x2c], eax
je 0x1002ef77
push eax
push 0x3e8
call fcn.10002170
mov ecx, 0xfa
lea esi, [ebp - 0x560]
mov edi, eax
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x30]
add edx, 0x3e8
mov dword [ebp - 0x30], edx
mov esi, dword [ebp - 0x14c]
jmp 0x1002ef8a
lea ecx, [ebp - 0x560]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10030db0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
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 - 0x148], eax
lea edi, [eax + 4]
mov dword [eax], 0x23ab45db
push edi
call fcn.10081e90
mov eax, dword [ebp - 0x148]
add esp, 0xc
add eax, 0x284
mov dword [ebp - 0x14c], eax
push 0x100
push 0
push eax
call fcn.10081e90
mov eax, dword [ebp - 0x148]
add esp, 0xc
add eax, 0x384
mov dword [ebp - 0x150], eax
push 0x48
push 0
push eax
call fcn.10081e90
add esp, 0xc
mov ecx, esi
call fcn.10004040
mov ecx, esi
cmp eax, 0x13f
ja 0x1002f037
call fcn.10003830
mov ecx, eax
sub edi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x1002f025
jmp 0x1002f04b
push 0x13e
call fcn.10003830
push eax
push edi
call fcn.100add5d
add esp, 0xc
lea ecx, [esi + 0x18]
call fcn.10004040
lea ecx, [esi + 0x18]
cmp eax, 0x7f
ja 0x1002f082
call fcn.10003830
mov edx, dword [ebp - 0x14c]
mov ecx, eax
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1002f070
jmp 0x1002f098
push 0x7e
call fcn.10003830
push eax
push dword [ebp - 0x14c]
call fcn.100add5d
add esp, 0xc
lea ecx, [esi + 0x30]
call fcn.10004040
lea ecx, [esi + 0x30]
cmp eax, 0x23
ja 0x1002f0d2
call fcn.10003830
mov edx, dword [ebp - 0x150]
mov ecx, eax
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1002f0c0
jmp 0x1002f0e8
push 0x23
call fcn.10003830
push eax
push dword [ebp - 0x150]
call fcn.100add5d
add esp, 0xc
mov ecx, dword [ebp - 0x148]
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 - 0x20]
mov ecx, dword [ebp - 0x164]
mov esi, dword [ebp - 0x154]
add ecx, 0x68
mov dword [ebp - 0x164], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x1c]
inc esi
sub ecx, edi
mov dword [ebp - 0x154], esi
imul ecx
mov ecx, dword [ebp - 0x164]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1002eeb0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jne 0x1002f23e
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x1002f1e0
mov ecx, dword [ebp - 0x2c]
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 0x1002f1c1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f964
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1002f8e6
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.100311a0
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x20]
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 0x1002f8c7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f969
jmp 0x1002f8c7
xorps xmm0, xmm0
mov dword [ebp - 0x158], 0
movq qword [ebp - 0x160], xmm0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 0x13
mov ecx, 1
movaps xmm2, xmmword [0x100da990]
xor eax, eax
mov dword [ebp - 0x58], 0x2d2d4352
mov dword [ebp - 0x54], 0x35343332
mov dword [ebp - 0x50], 0x61534350
mov dword [ebp - 0x4c], 0x2d302e32
mov dword [ebp - 0x48], 0x2d736843
mov dword [ebp - 0x44], 0x61435243
mov dword [ebp - 0x40], 0x38313031
mov dword [ebp - 0x3c], 0x35313032
movd xmm3, ecx
nop
movd xmm0, eax
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ebp + eax*4 - 0x58]
paddd xmm1, xmm2
pslld xmm0, xmm3
paddd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x58], xmm1
add eax, 4
cmp eax, 8
jl 0x1002f2c0
mov ecx, dword [ebp - 0x30]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x34]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x160]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push ecx
lea ecx, [ebp - 0x58]
push eax
push esi
call fcn.10050f90
test al, al
jne 0x1002f3cd
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x160]
test ecx, ecx
je 0x1002f37b
mov edx, dword [ebp - 0x158]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1002f353
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f96e
push edx
push ecx
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x1002f1e0
mov ecx, dword [ebp - 0x2c]
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 0x1002f1c1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
jmp 0x1002f1c1
mov esi, dword [ebp - 0x160]
cmp esi, dword [ebp - 0x15c]
jne 0x1002f410
mov byte [ebp - 4], 0x12
test esi, esi
je 0x1002f37b
mov ecx, dword [ebp - 0x158]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1002f409
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f978
push ecx
push esi
jmp 0x1002f355
push ecx
push 0x80
push 4
push ecx
mov ecx, dword [ebp - 0x170]
push 0
call fcn.10003830
mov edx, 0x40000000
mov ecx, eax
call fcn.1000e380
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x1002f440
test edi, edi
jne 0x1002f4a7
push ecx
mov ecx, dword [ebp - 0x170]
push 0x100d58e8
call fcn.10007700
cmp eax, 0xffffffff
je 0x1002f4a7
mov ecx, dword [ebp - 0x170]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.10007610
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x50]
push eax
call fcn.10007190
push 0x80
push 4
push ecx
mov ecx, dword [ebp - 0x170]
push 0
call fcn.10003830
mov edx, 0x40000000
mov ecx, eax
call fcn.1000e380
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
call fcn.100038a0
cmp edi, 0xffffffff
je 0x1002f88c
test edi, edi
je 0x1002f88c
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x38]
push 0
push ecx
sub eax, esi
mov dword [ebp - 0x38], 0
push eax
push esi
push edi
mov dword [ebp - 0x14c], 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 - 0x14c]
cmp dword [ebp - 0x38], eax
jne 0x1002f722
mov edx, dword [ebp - 0x178]
lea eax, [ebp - 0x20]
cmp edx, eax
je 0x1002f537
mov ecx, dword [edx]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 0x18], ecx
mov edi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x148], 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 0x1002f59a
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp - 0x178]
lea esi, [esi + 0x68]
inc dword [ebp - 0x148]
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 - 0x148], eax
jb 0x1002f560
mov esi, dword [ebp - 0x160]
mov byte [ebp - 4], 0x12
test esi, esi
je 0x1002f5f0
mov ecx, dword [ebp - 0x158]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1002f5c8
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x1002f654
mov ecx, dword [ebp - 0x2c]
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 0x1002f635
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1002f6c4
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.100311a0
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x20]
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 0x1002f6a5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x141], 0
je 0x1002f6e3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f6df
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x16c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f706
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.100038a0
mov al, 1
jmp 0x1002f93f
mov byte [ebp - 4], 0x12
test esi, esi
je 0x1002f778
mov ecx, dword [ebp - 0x158]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1002f750
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x1002f7dc
mov ecx, dword [ebp - 0x2c]
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 0x1002f7bd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1002f84c
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.100311a0
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp - 0x20]
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 0x1002f82d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x141], 0
je 0x1002f86b
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f867
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x16c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f928
push eax
call edi
jmp 0x1002f921
mov byte [ebp - 4], 0x12
test esi, esi
je 0x1002f37b
mov ecx, dword [ebp - 0x158]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1002f409
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002f409
jmp 0x1002f973
push ecx
push esi
call fcn.1007fceb
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x141], 0
je 0x1002f905
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f901
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x16c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f928
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.100038a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007f947
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.100056c0
call fcn.10083a12
call fcn.10083a12
call fcn.10083a12
call fcn.10083a12
call fcn.10083a12
int3