Function at 0x1001eb5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1050d74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x103f2c0]
push ebx
push esi
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ecx + 4]
xor esi, esi
sub eax, 1
xor ebx, ebx
cmp ecx, 0x1000000
push edi
mov edi, dword [0x1040e44]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], eax
jb 0x1001366
mov edx, dword [0x100003c]
mov edx, dword [edx + 0x1000050]
add edx, 0x1000000
cmp ecx, edx
jae 0x1001366
mov edx, ecx
sub edx, 0x1000000
cmp eax, ebx
mov dword [ebp - 0xa8], edx
jl 0x1001353
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
shl esi, 5
add esi, 0x104108c
mov ecx, dword [esi + 8]
and ecx, 0xfffffff
mov edx, ecx
xor edx, edi
cmp dword [ebp - 0xa8], edx
jae 0x10012f3
mov esi, dword [ebp - 0xac]
add eax, 0xffffffff
mov dword [ebp - 0xb0], eax
jmp 0x1001316
mov edi, dword [esi]
shr edi, 1
and edi, 0x3fff
add edi, edx
cmp dword [ebp - 0xa8], edi
jb 0x100131e
lea esi, [eax + 1]
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], esi
cmp eax, esi
mov edi, ecx
jge 0x10012bb
jmp 0x100134d
mov ecx, 8
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x130]
mov esi, dword [ebp - 0xac]
xor edx, eax
and edx, 0xfffffff
xor eax, edx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xfc]
mov edx, dword [0x103f2c0]
xor edx, edx
cmp esi, eax
setle dl
mov eax, edx
cmp eax, ebx
jne 0x1001380
mov eax, dword [ebp - 0xd4]
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01035a40
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x124]
shr eax, 1
and ecx, 0x1f
and eax, 0x3fff
mov dword [ebp - 0x13c], ecx
sub ecx, 0x14
mov dword [ebp - 0xd8], eax
je 0x10013b3
sub ecx, 1
je 0x100147f
sub ecx, 9
add eax, 0x11
mov esi, dword [0x1012f80]
lea ecx, [esi + eax - 1]
mov dword [ebp - 0xac], eax
mov eax, ecx
xor edx, edx
div esi
sub ecx, edx
mov dword [ebp - 0xb0], ecx
mov ecx, dword [0x1012f80]
mov edx, dword [0x1017bcc]
mov eax, dword [0x1012f80]
mov ecx, dword [0x1017bcc]
test ecx, ecx
mov dword [ebp - 0xa0], edx
je 0x10014a3
mov eax, dword [0x1017bcc]
sub eax, 1
lea esi, [eax + 1]
xor edi, edi
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0xa8], esi
je 0x100143f
mov ecx, dword [0x104f4c0]
mov edi, edi
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov edx, ecx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0xa8], 0x10
jne 0x100141a
mov dword [0x104f4c0], ecx
xor edx, edx
div esi
cmp dword [ebp - 0xa0], ebx
jbe 0x10014a3
add edi, 1
mov ecx, 0xffffffd6
lea esi, [edx*4 + 0x104e01c]
mov eax, 0x29
lock cmpxchg dword [esi], ecx
cmp eax, 0x29
je 0x1001487
mov ecx, dword [0x1017bcc]
lea eax, [edx + 1]
xor edx, edx
div ecx
cmp edi, dword [ebp - 0xa0]
jb 0x100144b
jmp 0x10014a3
add eax, 6
jmp 0x10013b6
mov eax, dword [0x1012f80]
imul eax, edx
lea eax, [eax + section..data]
cmp eax, ebx
mov dword [ebp - 0x98], eax
jne 0x1001579
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], eax
xor esi, esi
lea ecx, [ecx]
push 0x40
push 0x1000
push edi
push ebx
add esi, 1
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
cmp ecx, ebx
jne 0x10014e5
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x10014b9
mov dword [ebp - 0x98], ebx
jmp 0x1001560
mov edx, dword [0x100003c]
mov eax, dword [edx + 0x1000050]
sub eax, edi
lea esi, [eax + 1]
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa8], esi
je 0x1001533
mov edx, dword [0x104f4c0]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov edi, edx
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr dword [ebp - 0xa8], 0x10
jne 0x100150e
mov dword [0x104f4c0], edx
xor edx, edx
div esi
lea eax, [ecx + 3]
mov ecx, dword [ebp - 0xb0]
and eax, 0xfffffffc
lea edx, [edx + 0x1000003]
and edx, 0xfffffffc
shr ecx, 2
je 0x1001560
sub edx, eax
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x1001553
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x98], ebx
je 0x10013da
mov edi, dword [ebp - 0x130]
mov eax, dword [0x1012f80]
sub eax, dword [ebp - 0xac]
and edi, 0xfffffff
lea ecx, [edi + 0x1000000]
mov dword [ebp - 0xb0], ecx
lea ecx, [eax + 1]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xa8], ecx
je 0x10015df
mov edx, dword [0x104f4c0]
lea esp, [esp]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov esi, edx
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr dword [ebp - 0xa8], 0x10
jne 0x10015ba
mov dword [0x104f4c0], edx
xor edx, edx
div ecx
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x138]
mov byte [ebp - 0x91], 0xa5
add edx, eax
mov eax, dword [ebp - 0xb0]
sub eax, edx
test esi, 0x180000
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], eax
jne 0x100199b
mov ecx, dword [ebp - 0x128]
mov edx, dword [0x1002900]
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x100], edi
mov edi, dword [ebp - 0x12c]
and ecx, 0xfffffff
shr esi, 0x15
and edi, 0xfffffff
add ecx, 0x1000000
mov eax, 0x1000000
and esi, 0x7f
sub eax, edx
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc8], eax
jne 0x10016d6
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
sub esi, eax
lea edx, [ebp - 0xf8]
push edx
mov edx, dword [esi*4 + 0x1038b60]
lea eax, [ecx + edi]
push eax
push ecx
lea ecx, [ebp - 0x104]
push ecx
mov byte [ebp - 0xf8], bl
mov byte [ebp - 0xf7], 1
mov byte [ebp - 0xf6], 2
mov byte [ebp - 0xf5], 3
mov byte [ebp - 0xf4], 4
mov byte [ebp - 0xf3], 5
call edx
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0x100]
jmp 0x10019a7
mov ecx, dword [0x100003c]
mov eax, dword [ecx + 0x10000a0]
mov ecx, dword [ecx + 0x10000a4]
mov edx, dword [ebp - 0xc0]
sub edx, 0x1000000
mov dword [ebp - 0x9c], ecx
mov ecx, edx
and ecx, 0xfffff000
mov edi, edx
sub edi, ecx
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0xa0]
add edx, ecx
mov ecx, edx
and ecx, 0xfffff000
sub edx, ecx
add eax, 0x1000000
mov dword [ebp - 0x114], edx
mov edx, dword [ebp - 0x9c]
add edx, eax
cmp eax, edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], edx
je 0x100175e
mov ecx, dword [ebp - 0x98]
cmp dword [eax], ecx
jae 0x1001758
add eax, dword [eax + 4]
cmp eax, edx
jne 0x100174d
mov dword [ebp - 0x10c], eax
xor edx, edx
cmp eax, dword [ebp - 0x110]
je 0x100179c
mov ecx, dword [ebp - 0x98]
cmp dword [eax], ecx
jne 0x100179c
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x9c], ecx
je 0x100179c
movzx ecx, word [eax + edx*2 + 8]
and ecx, 0xfff
cmp ecx, edi
jae 0x100179c
add edx, 1
cmp edx, dword [ebp - 0x9c]
jne 0x1001782
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x98], ecx
cmp eax, dword [ebp - 0x110]
je 0x1001920
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x118]
ja 0x1001920
lea ebx, [ebx]
mov ecx, dword [eax + 4]
lea edi, [ecx - 8]
shr edi, 1
cmp edx, edi
jne 0x10017f6
add eax, ecx
cmp eax, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
je 0x1001920
mov edx, dword [ebp - 0x118]
cmp dword [eax], edx
ja 0x1001920
xor edx, edx
jmp 0x10017c4
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x118]
jne 0x1001817
movzx edi, word [eax + edx*2 + 8]
and edi, 0xfff
cmp edi, dword [ebp - 0x114]
jae 0x1001920
mov edi, edx
movzx edi, word [eax + edi*2 + 8]
add edx, 1
test edi, 0xf000
mov dword [ebp - 0x108], edx
je 0x10017a8
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
and edi, 0xfff
lea edi, [edi + ecx + 0x1000000]
mov ecx, esi
sub ecx, eax
lea eax, [ecx*4 + 0x1038b60]
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0xe8]
push edx
push edi
push ecx
lea edx, [ebp - 0x104]
mov dword [ebp - 0x9c], eax
mov eax, dword [eax]
push edx
mov byte [ebp - 0xe8], bl
mov byte [ebp - 0xe7], 1
mov byte [ebp - 0xe6], 2
mov byte [ebp - 0xe5], 3
mov byte [ebp - 0xe4], 4
mov byte [ebp - 0xe3], 5
call eax
mov eax, dword [edi]
sub eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x90]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x104]
push ecx
mov byte [ebp - 0xe0], bl
mov byte [ebp - 0xdf], 1
mov byte [ebp - 0xde], 2
mov byte [ebp - 0xdd], 3
mov byte [ebp - 0xdc], 4
mov byte [ebp - 0xdb], 5
call eax
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
add edi, 4
mov dword [ebp - 0x98], edi
jmp 0x10017a8
mov eax, 0x8421085
mul esi
mov eax, dword [ebp - 0xc0]
mov ecx, esi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
imul ecx, ecx, 0x7c
sub esi, ecx
mov ecx, dword [ebp - 0xa0]
lea edx, [ebp - 0xf0]
push edx
mov edx, dword [ebp - 0x98]
add eax, ecx
mov ecx, dword [esi*4 + 0x1038b60]
push eax
push edx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 0xf0], bl
mov byte [ebp - 0xef], 1
mov byte [ebp - 0xee], 2
mov byte [ebp - 0xed], 3
mov byte [ebp - 0xec], 4
mov byte [ebp - 0xeb], 5
call ecx
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0x100]
jmp 0x10019a7
mov edi, dword [ebp - 0x120]
mov esi, dword [ebp - 0x11c]
mov cl, 0x5c
mov al, 0xd3
mov dl, 0x55
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], esi
mov byte [ebp - 0x80], 0x42
mov byte [ebp - 0x7f], 0xe6
mov byte [ebp - 0x7e], 0x77
mov byte [ebp - 0x7d], 0xdb
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], bl
mov byte [ebp - 0x7a], bl
mov byte [ebp - 0x79], bl
mov byte [ebp - 0x78], 0x83
mov byte [ebp - 0x77], 0x3e
mov byte [ebp - 0x76], 0xea
mov byte [ebp - 0x75], 0x3f
mov byte [ebp - 0x74], al
mov byte [ebp - 0x73], 0x3b
mov byte [ebp - 0x72], 0xdd
mov byte [ebp - 0x71], cl
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], bl
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], bl
mov byte [ebp - 0x67], bl
mov byte [ebp - 0x66], bl
mov byte [ebp - 0x65], bl
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x63], bl
mov byte [ebp - 0x62], bl
mov byte [ebp - 0x61], bl
mov byte [ebp - 0x60], bl
mov byte [ebp - 0x5f], bl
mov byte [ebp - 0x5e], bl
mov byte [ebp - 0x5d], bl
mov byte [ebp - 0x5c], bl
mov byte [ebp - 0x5b], bl
mov byte [ebp - 0x5a], bl
mov byte [ebp - 0x59], bl
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], bl
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], bl
mov byte [ebp - 0x53], bl
mov byte [ebp - 0x52], bl
mov byte [ebp - 0x51], bl
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x4f], bl
mov byte [ebp - 0x4e], bl
mov byte [ebp - 0x4d], bl
mov byte [ebp - 0x4c], 0x73
mov byte [ebp - 0x4b], 0xed
mov byte [ebp - 0x4a], 0xa1
mov byte [ebp - 0x49], 0x69
mov byte [ebp - 0x48], bl
mov byte [ebp - 0x47], bl
mov byte [ebp - 0x46], bl
mov byte [ebp - 0x45], bl
mov byte [ebp - 0x44], bl
mov byte [ebp - 0x43], bl
mov byte [ebp - 0x42], bl
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], bl
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], dl
mov byte [ebp - 0x3b], 0xf0
mov byte [ebp - 0x3a], 9
mov byte [ebp - 0x39], cl
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], bl
mov byte [ebp - 0x29], al
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xd8]
mov cl, 0xa
and eax, 7
mov byte [ebp - 0xf], dl
mov edx, dword [ebp - 0xb0]
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], 6
mov byte [ebp - 0x33], 0x2e
mov byte [ebp - 0x32], 0xf2
mov byte [ebp - 0x31], 0xc3
mov byte [ebp - 0x30], 0x5d
mov byte [ebp - 0x2f], 0x98
mov byte [ebp - 0x2e], 0x6a
mov byte [ebp - 0x2d], 0x3c
mov byte [ebp - 0x2c], pe_nt_image_headers32
mov byte [ebp - 0x2b], 0xdf
mov byte [ebp - 0x2a], 0xb7
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0x8d
mov byte [ebp - 0x1b], 0xff
mov byte [ebp - 0x1a], 0xc9
mov byte [ebp - 0x19], 0x84
mov byte [ebp - 0x18], 0x3f
mov byte [ebp - 0x17], 0xb4
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], 0x80
mov byte [ebp - 0x14], 0x9e
mov byte [ebp - 0x13], 0xf8
mov byte [ebp - 0x12], 0x4d
mov byte [ebp - 0x11], 0x35
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xe], 0xcc
mov byte [ebp - 0xd], 0xa6
mov byte [ebp - 0xb], 0xfe
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0x36
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov dword [ebp - 0x9c], eax
je 0x1001e54
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xb4], ecx
jle 0x1001c06
mov ebx, 0x38
mov dword [ebp - 0xa0], ebx
lea esp, [esp]
cmp ecx, 4
jge 0x1001bc8
lea ecx, [ebx - 0x20]
movzx ebx, byte [edx]
shl ebx, cl
or dword [ebp - 0xcc], ebx
jmp 0x1001be1
movzx ecx, byte [edx]
mov dword [ebp - 0x98], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0x98]
shl ebx, cl
or dword [ebp - 0xc8], ebx
mov ecx, dword [ebp - 0xb4]
mov ebx, dword [ebp - 0xa0]
add ecx, 1
sub ebx, 8
add edx, 1
cmp ecx, eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xa0], ebx
jl 0x1001bb3
mov eax, esi
xor eax, edi
mov ecx, eax
xor ecx, esi
sub edi, ecx
xor edi, dword [ebp - 0xc4]
movzx ecx, si
mov dword [ebp - 0xa0], ecx
mov ebx, edi
ror ebx, 1
xor ebx, ecx
movzx ecx, word [ebp - 0xb6]
imul ebx, ecx
xor eax, ebx
movzx ebx, word [ebp - 0xba]
mov ecx, eax
xor ecx, esi
ror ecx, 1
imul ebx, ecx
movzx ecx, word [ebp - 0xbc]
mov dword [ebp - 0xa4], eax
ror eax, 1
xor eax, ebx
xor edi, eax
mov dword [ebp - 0x98], ecx
mov eax, edi
xor eax, esi
ror eax, 1
imul ecx, eax
mov eax, dword [ebp - 0xa4]
mov ebx, edi
ror ebx, 1
sub ecx, ebx
xor eax, ecx
mov ebx, dword [ebp - 0x98]
xor ebx, eax
mov dword [ebp - 0xa4], eax
mov ecx, eax
movzx eax, word [ebp - 0xb6]
imul ebx, eax
ror ecx, 1
add ecx, ebx
xor edi, ecx
xor eax, edi
imul eax, dword [ebp - 0xa0]
mov ecx, edi
shr ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0xa4]
xor ecx, eax
mov eax, ecx
mov dword [ebp - 0xa4], ecx
mov ebx, ecx
movzx ecx, word [ebp - 0xba]
sub eax, esi
ror eax, 1
imul ecx, eax
ror ebx, 1
add ebx, ecx
xor edi, ebx
mov ebx, dword [ebp - 0x98]
mov eax, esi
sub eax, edi
ror eax, 1
imul ebx, eax
movzx eax, word [ebp - 0xb6]
mov ecx, edi
ror ecx, 1
xor ecx, ebx
mov ebx, dword [ebp - 0xa4]
xor ebx, ecx
mov ecx, ebx
ror ecx, 2
sub ecx, eax
mov eax, dword [ebp - 0xa0]
imul ecx, eax
xor edi, ecx
mov ecx, edi
sub ecx, eax
xor ecx, ebx
xor ecx, dword [ebp - 0xbc]
movzx ebx, word [ebp - 0xba]
xor eax, ecx
imul eax, ebx
mov dword [ebp - 0xa4], ecx
shr ecx, 1
xor eax, ecx
mov ecx, dword [ebp - 0x98]
xor edi, eax
mov eax, esi
sub eax, edi
ror eax, 0xe
imul ecx, eax
mov eax, dword [ebp - 0xa4]
mov ebx, edi
xor edi, dword [ebp - 0xc8]
ror ebx, 0x1b
add ebx, ecx
xor ebx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x9c]
xor eax, ebx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc4], eax
xor ebx, ebx
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xb4], eax
jle 0x1001ddb
mov edi, edi
cmp eax, 4
mov ecx, dword [ebp - 0xc0]
jge 0x1001da0
mov eax, dword [ebp - 0xc4]
rol eax, 8
mov byte [ecx], al
add ecx, 1
xor byte [ebp - 0x91], al
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
jmp 0x1001dc2
mov eax, dword [ebp - 0x98]
rol eax, 8
mov byte [ecx], al
add ecx, 1
mov dword [ebp - 0xc0], ecx
mov cl, al
xor byte [ebp - 0x91], cl
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x9c]
add eax, 1
cmp eax, ecx
mov dword [ebp - 0xb4], eax
jl 0x1001d73
add ecx, 0xfffffffc
cmp ecx, ebx
jle 0x1001e2e
mov eax, 4
sub eax, ecx
add eax, eax
add eax, eax
add eax, eax
mov ecx, eax
shr edi, cl
shl edi, cl
mov eax, edi
mov edi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xd8]
shr ecx, 3
je 0x1002067
movzx ebx, word [ebp - 0xb6]
mov dword [ebp - 0xb4], ebx
movzx ebx, word [ebp - 0xba]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ecx
jmp 0x1001e7c
xor eax, eax
cmp ecx, ebx
jge 0x1001df7
mov edi, dword [ebp - 0xa4]
neg ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
shr edi, cl
mov dword [ebp - 0xb4], ecx
shl edi, cl
mov dword [ebp - 0xa4], edi
jmp 0x1001df7
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
xor eax, eax
mov dword [ebp - 0xa4], ebx
jmp 0x1001dfd
mov edi, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xd0]
movzx ebx, byte [edx + 2]
xor ecx, ecx
mov ch, byte [edx]
add edx, 8
mov dword [ebp - 0xd0], edx
mov cl, byte [edx - 7]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [edx - 5]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [edx - 2]
mov dword [ebp - 0xc4], ecx
xor ecx, ecx
mov ch, byte [edx - 4]
mov cl, byte [edx - 3]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [edx - 1]
shl ecx, 8
or ecx, ebx
xor eax, ecx
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0xc4]
xor ecx, eax
xor ecx, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xa0]
xor ecx, esi
xor ecx, edi
mov edx, ecx
xor edx, esi
sub edi, edx
xor eax, edi
mov edi, eax
ror edi, 1
movzx edx, si
xor edi, edx
imul edi, dword [ebp - 0xb4]
xor ecx, edi
mov edx, ecx
xor edx, esi
ror edx, 1
imul ebx, edx
mov edi, ecx
ror edi, 1
xor edi, ebx
xor eax, edi
movzx edi, word [ebp - 0xbc]
mov edx, eax
xor edx, esi
ror edx, 1
imul edi, edx
movzx edx, word [ebp - 0xbc]
mov ebx, eax
ror ebx, 1
sub edi, ebx
xor ecx, edi
mov ebx, edx
mov edx, dword [ebp - 0xb4]
xor ebx, ecx
imul ebx, edx
mov edi, ecx
ror edi, 1
add edi, ebx
xor eax, edi
mov ebx, dword [ebp - 0xa0]
mov edi, edx
xor edi, eax
movzx edx, si
imul edi, edx
mov edx, eax
shr edx, 1
add edi, edx
xor ecx, edi
mov edx, ecx
sub edx, esi
ror edx, 1
imul ebx, edx
mov edi, ecx
ror edi, 1
add edi, ebx
xor eax, edi
movzx edi, word [ebp - 0xbc]
mov edx, esi
sub edx, eax
ror edx, 1
imul edi, edx
mov ebx, eax
ror ebx, 1
xor ebx, edi
xor ecx, ebx
mov edx, ecx
ror edx, 2
sub edx, dword [ebp - 0xb4]
mov ebx, dword [ebp - 0xbc]
movzx edi, si
imul edx, edi
xor eax, edx
mov edx, eax
sub edx, edi
xor edx, ecx
xor edx, ebx
xor edi, edx
imul edi, dword [ebp - 0xa0]
mov ecx, edx
shr ecx, 1
xor edi, ecx
xor eax, edi
mov edi, eax
mov ecx, esi
sub ecx, eax
ror ecx, 0xe
xor eax, dword [ebp - 0xc8]
ror edi, 0x1b
mov dword [ebp - 0xa4], edi
movzx edi, bx
imul edi, ecx
mov ecx, dword [ebp - 0xa4]
add ecx, edi
xor ecx, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xc0]
xor edx, ecx
mov cl, byte [ebp - 0x91]
xor cl, dl
mov byte [edi + 3], dl
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 7], al
ror eax, 8
mov byte [edi + 2], dl
xor cl, al
ror edx, 8
mov byte [edi + 6], al
xor cl, dl
ror eax, 8
mov byte [edi + 1], dl
ror edx, 8
xor cl, al
mov byte [edi + 5], al
ror eax, 8
mov bl, al
xor bl, dl
xor cl, bl
mov byte [edi], dl
ror edx, 8
mov byte [edi + 4], al
mov byte [ebp - 0x91], cl
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa4], edx
mov edx, dword [ebp - 0xc4]
add edi, 8
ror eax, 8
sub dword [ebp - 0x9c], 1
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc0], edi
jne 0x1001e70
xor ebx, ebx
mov edx, dword [0x1002900]
mov eax, 0x1000000
sub eax, edx
mov dword [ebp - 0x9c], eax
jne 0x1002088
cmp dword [ebp - 0xa8], ebx
je 0x1002167
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
mov esi, dword [0x101d0a8]
sub eax, ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xd8]
sub ecx, 0x1000000
add esi, 0xffffffff
lea edx, [ecx + eax]
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0xd0], edx
jl 0x10020eb
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x101d0ac]
and edx, 0xfffffff
cmp ecx, edx
jae 0x10020de
lea esi, [eax - 1]
jmp 0x10020e3
jbe 0x10020e9
lea edi, [eax + 1]
cmp esi, edi
jge 0x10020c0
jmp 0x10020eb
mov edi, eax
cmp edi, dword [0x101d0a8]
jae 0x1002167
mov eax, dword [edi*4 + 0x101d0ac]
mov esi, eax
and esi, 0xfffffff
cmp esi, dword [ebp - 0xd0]
jae 0x1002167
lea ecx, [eax*4]
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
sub ecx, 1
je 0x100213e
sub ecx, 1
je 0x1002136
sub ecx, 1
jne 0x100214a
mov edx, dword [ebp - 0x9c]
jmp 0x100214a
mov edx, dword [ebp - 0xa8]
jmp 0x100214a
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0xa8]
sub eax, 2
jne 0x100215c
mov eax, dword [ebp - 0xa0]
add dword [esi + eax + 0x1000000], edx
add edi, 1
cmp edi, dword [0x101d0a8]
jb 0x10020f3
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x91]
call fcn.01040fd1
test eax, eax
jne 0x1002241
call fcn.01002871
mov esi, dword [ebp - 0xd4]
add esi, 8
push 0x1000
mov edi, eax
and esi, 0xfffffffc
push esi
and edi, 0xfffff000
call fcn.0103139f
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd0], eax
mov dword [ecx + 4], 0x1001218
mov ecx, dword [0x104f4c0]
xor eax, eax
mov dword [ebp - 0x9c], 0xffff
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov edx, ecx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0x9c], 0x10
jne 0x10021ca
mov dword [0x104f4c0], ecx
xor edx, edx
mov ecx, 0xffff
div ecx
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
add edx, 1
cmp esi, ecx
mov dword [eax - 0x18], edx
mov dword [eax - 4], edi
mov dword [ebp - 0x9c], ebx
jae 0x1002228
lea ecx, [ecx]
mov edx, dword [ebp - 0x9c]
mov dword [esi], edx
add esi, 4
cmp esi, ecx
jb 0x1002219
pop edi
mov ecx, 0x1001218
pop esi
mov dword [eax + 4], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01035a40
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x13c]
mov edi, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xac]
mov ecx, esi
sub ecx, 0x14
lea eax, [edi + edx]
je 0x10022d4
sub ecx, 1
je 0x10022ad
sub ecx, 9
je 0x10022d4
mov ecx, dword [ebp - 0x130]
add edi, ecx
xor edi, dword [eax + 0xd]
and edi, 0xfffffff
xor dword [eax + 0xd], edi
mov ecx, dword [eax + 5]
xor ecx, dword [ebp - 0x134]
and ecx, 0xfffffff
xor dword [eax + 5], ecx
mov ecx, dword [eax + 9]
and ecx, 0xffffff80
or ecx, esi
mov dword [eax + 9], ecx
mov ecx, 0x10011d8
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], ecx
jmp 0x100236d
mov ecx, dword [ebp - 0x138]
shr ecx, 0xf
xor cl, byte [eax + 5]
and cl, 0xf
xor byte [eax + 5], cl
mov ecx, 0x10168da
sub ecx, eax
sub ecx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], ecx
jmp 0x100236d
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x124]
mov edi, edx
mov ebx, ecx
shr edi, 0x11
and ebx, 0x1e0
and edi, 0x1800
or edi, ebx
mov ebx, dword [eax + 5]
shl esi, 0xe
and ebx, 0xffe03fff
or ebx, esi
mov esi, edx
and esi, 1
add esi, esi
shr edi, 3
and ebx, 0xfffffcc1
or edi, ebx
or edi, esi
mov esi, dword [ebp - 0x12c]
mov dword [eax + 5], edi
shr esi, 0x1c
xor esi, dword [eax + 0xd]
shr ecx, 5
and edx, 0x78000
and ecx, 0x1000
or ecx, edx
and esi, 1
xor dword [eax + 0xd], esi
mov edx, dword [eax + 5]
and edx, 0xffffc37f
shr ecx, 5
or ecx, edx
mov dword [eax + 5], ecx
mov ecx, dword [ebp - 0x134]
mov edx, 0x1011379
sub edx, eax
mov dword [eax + 9], ecx
sub edx, 5
mov byte [eax], 0xe8
mov dword [eax + 1], edx
mov edx, dword [ebp - 0xac]
sub edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xd4]
add edx, dword [ebp - 0xfc]
mov eax, dword [0x1012f80]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01035a40
mov esp, ebp
pop ebp
ret