Function at 0x407b70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call fcn.0045c0b0
xor esi, esi
add esp, 4
cmp eax, esi
jne 0x407b88
xor al, al
pop esi
ret
mov ecx, dword [0x829488]
push esi
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
call fcn.0045cba0
mov eax, dword [0x829488]
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [eax*4 + 0x82948c]
mov dword [edx], ecx
mov eax, dword [0x829488]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x407bcd
mov dword [0x829488], esi
push esi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x40827a
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], esi
sub edx, ecx
cmp edx, eax
jne 0x407c1b
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x407c2e
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x407c48
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 0x407c5c
sub eax, ecx
jmp 0x407c64
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x407c84
mov edx, ecx
or edx, eax
je 0x407c84
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x40827a
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x40827a
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
push ebx
push ebp
cmp ecx, esi
push edi
mov byte [0x81c6fc], 1
not eax
jle 0x407d03
mov ebx, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x407cf5
mov esi, dword [ecx + 4]
test esi, esi
jle 0x407cf5
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x407cf5
test esi, esi
jle 0x407cf5
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x407cef
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x407ce7
mov edx, dword [edx + 4]
dec ebp
jne 0x407cda
mov ecx, dword [esp + 0x14]
add ebx, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x407cbb
cmp eax, dword [0x8294d8]
je 0x407d16
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x408270
mov eax, dword [0x829464]
cmp eax, edi
je 0x407fb4
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x407fa9
push edi
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 0x407d80
mov dword [0x829488], edi
push edi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x407f9b
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x407dce
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x407de1
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x407dfb
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 0x407e0f
sub eax, ecx
jmp 0x407e17
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x407e37
mov edx, ecx
or edx, eax
je 0x407e37
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x407f9b
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x407f9b
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x407eb3
mov ebx, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x407ea5
mov esi, dword [ecx + 4]
test esi, esi
jle 0x407ea5
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x407ea5
test esi, esi
jle 0x407ea5
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x407e9f
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x407e97
mov edx, dword [edx + 4]
dec ebp
jne 0x407e8a
mov ecx, dword [esp + 0x14]
add ebx, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x407e6b
cmp eax, dword [0x8294d8]
je 0x407ec6
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x407f90
mov eax, dword [0x829464]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x407f56
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, esi
je 0x407f4b
mov edx, dword [0x829488]
push esi
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 ecx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], ecx
mov dword [0x829488], eax
jl 0x407f2d
mov dword [0x829488], esi
push esi
call fcn.0045d120
add esp, 4
call fcn.004059e0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x407f4b
cmp dword [eax], 0x29874362
je 0x407f56
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x407f90
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x407f85
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x407f85
cmp dword [eax], 0xbad0bad
je 0x407f90
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x18]
mov byte [0x81c6fc], 0
xor edi, edi
cmp esi, edi
je 0x407fa9
cmp dword [esi], 0x29874362
je 0x407fb4
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x408270
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x408265
push edi
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 0x40800f
mov dword [0x829488], edi
push edi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x408259
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x40805d
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x408070
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x40808a
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 0x40809e
sub eax, ecx
jmp 0x4080a6
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x4080c6
mov edx, eax
or edx, ecx
je 0x4080c6
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x408259
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x408259
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x408142
mov ebx, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x408134
mov esi, dword [ecx + 4]
test esi, esi
jle 0x408134
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x408134
test esi, esi
jle 0x408134
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x40812e
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x408126
mov edx, dword [edx + 4]
dec ebp
jne 0x408119
mov ecx, dword [esp + 0x14]
add ebx, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4080fa
cmp eax, dword [0x8294d8]
je 0x408155
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x40824e
mov eax, dword [0x829464]
cmp eax, edi
je 0x4081d9
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x4081ce
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 0x4081b4
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x4081ce
cmp dword [esi], 0x29874362
je 0x4081d9
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x40824e
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x408243
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 0x408229
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x408243
cmp dword [esi], 0xbad0bad
je 0x40824e
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x18]
mov byte [0x81c6fc], 0
test esi, esi
je 0x408265
cmp dword [esi], 0xbad0bad
je 0x408270
inc dword [0x8294f0]
call fcn.0045dca0
pop edi
pop ebp
mov byte [0x81c6fc], 0
pop ebx
mov al, 1
pop esi
ret