Function at 0x6d2f60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x24]
push 0x20
push eax
mov dword [esp + 0x20], edi
call fcn.00784ab0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
cmp eax, 0xffffffff
mov dword [esp + 0x14], ecx
je 0x6d31e2
push eax
call fcn.0045c0b0
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x6d31e4
mov edx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push edx
push 4
push esi
call fcn.0045cc80
push 1
lea eax, [esp + 0x28]
push 4
push eax
push esi
call fcn.0045cb20
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6d31e4
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6d3015
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d3028
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d3042
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 0x6d3056
sub eax, ecx
jmp 0x6d305e
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d307e
mov edx, ecx
or edx, eax
je 0x6d307e
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d31e4
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d31e4
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6d3100
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x6d30ee
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x6d30ee
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x6d30ee
cmp esi, ebp
jle 0x6d30ee
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d30e6
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d30de
mov edx, dword [edx + 4]
dec ebp
jne 0x6d30d1
xor ebp, ebp
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6d30b2
mov edi, dword [esp + 0x18]
cmp eax, dword [0x8294d8]
je 0x6d3113
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x6d31d9
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x6d319f
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d3194
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 + 0x10], edx
mov dword [0x829488], eax
jl 0x6d3176
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6d3194
cmp dword [eax], 0x29874362
je 0x6d319f
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x6d31d9
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6d31ce
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6d31ce
cmp dword [eax], 0xbad0bad
je 0x6d31d9
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
jmp 0x6d31e4
xor ebp, ebp
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push 0x20
push edx
call fcn.00784ab0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x6d3480
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d3480
mov ecx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push ecx
push 4
push esi
call fcn.0045cc80
push 1
lea edx, [esp + 0x30]
push 4
push edx
push esi
call fcn.0045cb20
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6d3480
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6d328a
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d329d
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d32b7
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 0x6d32cb
sub eax, ecx
jmp 0x6d32d3
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d32f3
mov edx, eax
or edx, ecx
je 0x6d32f3
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d3480
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d3480
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6d3371
mov ebx, 0x820e44
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x6d3363
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x6d3363
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x6d3363
cmp esi, ebp
jle 0x6d3363
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d335b
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d3353
mov edx, dword [edx + 4]
dec ebp
jne 0x6d3346
xor ebp, ebp
mov ecx, dword [esp + 0x24]
add ebx, 4
dec ecx
mov dword [esp + 0x24], ecx
jne 0x6d3327
cmp eax, dword [0x8294d8]
je 0x6d3384
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x6d3479
mov eax, dword [0x829464]
cmp eax, ebp
je 0x6d3404
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d33f9
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 esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6d33df
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x6d33f9
cmp dword [esi], 0x29874362
je 0x6d3404
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, ebp
je 0x6d3479
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d346e
mov edx, dword [0x829488]
push ebp
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6d3454
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x6d346e
cmp dword [esi], 0xbad0bad
je 0x6d3479
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4