Function at 0x694100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x69455d
mov eax, dword [0x81c700]
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6944e3
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
xor ebp, ebp
sub edx, ecx
mov dword [0x81c700], ebp
cmp edx, eax
jne 0x69415d
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x694170
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x69418a
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x69419e
sub eax, ecx
jmp 0x6941a6
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6941c6
mov edx, ecx
or edx, eax
je 0x6941c6
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6944e3
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6944e3
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x694248
mov ebx, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x694236
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x694236
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x694236
cmp esi, ebp
jle 0x694236
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x69422e
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x694226
mov edx, dword [edx + 4]
dec ebp
jne 0x694219
xor ebp, ebp
mov ecx, dword [esp + 0x14]
add ebx, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x6941fa
mov edi, dword [esp + 0x1c]
cmp eax, dword [0x8294d8]
je 0x69425b
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x6944dc
mov eax, dword [0x829464]
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x6944a2
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x694497
push ebp
add eax, 0x14
push 4
push eax
mov eax, dword [0x829488]
lea ecx, [eax*4 + 0x82948c]
push ecx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea edx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], edx
mov dword [0x829488], eax
jl 0x6942c6
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x694487
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x69430e
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x69431b
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x694345
mov edx, ecx
or edx, eax
je 0x694345
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x694487
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x694487
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, ebp
mov dword [esp + 0x18], ebp
not esi
jle 0x6943ee
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, ebp
je 0x6943cc
mov ecx, dword [eax + 4]
cmp ecx, ebp
jle 0x6943cc
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x6943ca
xor ebx, ebx
test ecx, ecx
jle 0x6943ca
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x6943bb
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x6943b1
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x69439f
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x69437c
mov edi, dword [esp + 0x1c]
cmp esi, dword [0x8294d8]
je 0x6943fb
call fcn.00406630
cmp dword [0x8294e8], ebp
je 0x694480
mov ecx, 0x829464
mov dword [esp + 0x10], ebp
call fcn.00406620
test eax, eax
je 0x694442
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x69443d
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x69443d
cmp dword [eax], 0x29874362
je 0x694442
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], ebp
call fcn.00406620
test eax, eax
je 0x694480
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x69447b
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x69447b
cmp dword [eax], 0xbad0bad
je 0x694480
call fcn.00406630
mov byte [0x81c6fc], 0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x694497
cmp dword [eax], 0x29874362
je 0x6944a2
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x6944dc
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6944d1
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x6944d1
cmp dword [eax], 0xbad0bad
je 0x6944dc
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov ebp, dword [0x820dd0]
push edi
xor ebp, edi
mov dword [esp + 0x20], ebp
mov ebx, ebp
mov esi, dword [esp + 0x22]
and ebx, 0xff
and esi, 0xffff
call fcn.0045c0b0
mov edi, eax
add esp, 4
test edi, edi
je 0x69455d
mov edx, dword [0x8294d8]
mov eax, dword [0x829478]
xor edx, eax
push 1
push eax
mov eax, dword [esi*4 + 0x820e44]
xor edx, ebp
mov dword [0x8294d8], edx
mov eax, dword [eax + 8]
lea ecx, [eax + eax*2]
lea eax, [edi + 0x14]
mov edx, dword [ecx*4 + 0x828e68]
push edx
push eax
call fcn.0045cc80
push edi
push esi
call fcn.0045d050
push ebx
push esi
call fcn.0045dc80
push edi
call fcn.00672c80
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret