Function at 0x6fb130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x6fb388
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6fb388
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 [esp + 0x18], esi
mov dword [0x829488], eax
jl 0x6fb199
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 0x6fb370
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6fb1e7
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6fb1fa
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6fb214
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 0x6fb228
sub eax, ecx
jmp 0x6fb230
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6fb250
mov edx, ecx
or edx, eax
je 0x6fb250
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6fb370
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6fb370
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6fb2da
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
jmp 0x6fb288
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x6fb2c2
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x6fb2c2
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x6fb2c2
cmp esi, ebp
jle 0x6fb2c2
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6fb2bc
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6fb2b4
mov edx, dword [edx + 4]
dec ebp
jne 0x6fb2a7
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6fb286
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp eax, dword [0x8294d8]
je 0x6fb2ed
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x6fb369
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x6fb32f
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6fb324
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6fb324
cmp dword [eax], 0x29874362
je 0x6fb32f
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x6fb369
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6fb35e
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6fb35e
cmp dword [eax], 0xbad0bad
je 0x6fb369
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp esi, ebp
je 0x6fb388
cmp dword [esi], ebp
setl al
test al, al
je 0x6fb388
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov ecx, dword [0x85c6bc]
cmp ecx, ebp
je 0x6fb3cb
mov eax, dword [ecx]
push 2
call dword [eax + 8]
test al, al
je 0x6fb3cb
mov eax, dword [edi + 0xc]
cmp eax, ebp
je 0x6fb3a9
mov eax, dword [eax + 4]
jmp 0x6fb3ab
xor eax, eax
mov ecx, dword [0x855e48]
cmp ecx, ebp
je 0x6fb3ba
mov ecx, dword [ecx + 4]
jmp 0x6fb3bc
xor ecx, ecx
cmp eax, ecx
jne 0x6fb3cb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x6fb8b8
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6fb8b8
mov ecx, dword [0x829488]
push ebp
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x18], esi
mov dword [0x829488], eax
jl 0x6fb426
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 0x6fb676
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6fb474
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6fb487
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6fb4a1
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 0x6fb4b5
sub eax, ecx
jmp 0x6fb4bd
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6fb4dd
mov edx, eax
or edx, ecx
je 0x6fb4dd
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6fb676
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6fb676
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6fb559
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x6fb54b
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6fb54b
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6fb54b
test esi, esi
jle 0x6fb54b
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6fb545
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6fb53d
mov edx, dword [edx + 4]
dec ebp
jne 0x6fb530
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6fb511
cmp eax, dword [0x8294d8]
je 0x6fb56c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x6fb665
mov eax, dword [0x829464]
cmp eax, edi
je 0x6fb5f0
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6fb5e5
mov edx, dword [0x829488]
push edi
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 0x6fb5cb
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6fb5e5
cmp dword [esi], 0x29874362
je 0x6fb5f0
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x6fb665
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6fb65a
mov ecx, dword [0x829488]
push edi
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
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 0x6fb640
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6fb65a
cmp dword [esi], 0xbad0bad
je 0x6fb665
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov byte [0x81c6fc], 0
xor ebp, ebp
cmp esi, ebp
je 0x6fb8b8
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x6fb8ac
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6fb8ac
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 edi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x1c], edi
mov dword [0x829488], eax
jl 0x6fb6d8
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 0x6fb8a0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6fb720
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6fb72d
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6fb757
mov edx, eax
or edx, ecx
je 0x6fb757
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6fb8a0
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6fb8a0
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, ebp
mov dword [esp + 0x14], ebp
not esi
jle 0x6fb7fe
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6fb7dc
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x6fb7dc
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x6fb7dc
xor ebx, ebx
test ecx, ecx
jle 0x6fb7dc
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x6fb7cd
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x6fb7c3
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x6fb7b1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x6fb78e
mov edi, dword [esp + 0x1c]
cmp esi, dword [0x8294d8]
je 0x6fb80b
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x6fb893
mov ecx, 0x829464
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x6fb855
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x6fb850
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6fb850
cmp dword [eax], 0x29874362
je 0x6fb855
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x6fb893
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6fb88e
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6fb88e
cmp dword [eax], 0xbad0bad
je 0x6fb893
call fcn.00406630
mov esi, dword [esp + 0x18]
mov byte [0x81c6fc], 0
xor ebp, ebp
cmp edi, ebp
je 0x6fb8ac
mov ecx, dword [edi]
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
mov eax, dword [eax]
pop ebx
add esp, 0x10
ret
mov eax, 0x8294f4
pop edi
pop esi
pop ebp
mov eax, dword [eax]
pop ebx
add esp, 0x10
ret