Function at 0x70b700
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
mov dword [ebx + 0x7c8], eax
mov eax, dword [eax + 0x20]
mov dl, byte [0x83ec0c]
mov cl, byte [eax]
cmp cl, dl
je 0x70b72c
mov ecx, dword [ebx + 0x774]
push eax
call fcn.00640ab0
mov esi, dword [esp + 0x30]
push ebp
push edi
lea ecx, [ebx + 0x7b4]
push esi
call fcn.00708af0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov ecx, ebx
mov dword [ebx + 0x7cc], edx
call fcn.006a5ef0
mov eax, dword [ebx + 0x774]
mov byte [ebx + 0x7d0], 0
mov byte [ebx + 0x7f8], 0
mov byte [ebx + 0x7d1], 0
mov ecx, dword [eax + 0x38]
xor ebp, ebp
and ecx, 0xfffffff0
cmp esi, ebp
mov dword [eax + 0x38], ecx
mov dword [ebx + 0x7c4], ebp
je 0x70b7c1
mov edx, dword [esi]
mov edi, dword [ebx]
mov ecx, esi
call dword [edx + 0x68]
push eax
mov ecx, ebx
call dword [edi + 0x6c]
mov eax, dword [esi + 0x960]
mov dword [ebx + 0x7c4], eax
mov al, byte [0x855ec8]
test al, al
je 0x70b7c1
cmp dword [0x856518], 1
je 0x70b7c1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x68]
push eax
call fcn.0070da10
add esp, 4
mov eax, dword [ebx + 0x7c8]
add eax, 0x8c
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x70ba0b
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x70ba0b
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 + 0x14], esi
mov dword [0x829488], eax
jl 0x70b825
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 0x70ba03
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x70b873
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x70b886
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x70b8a0
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 0x70b8b4
sub eax, ecx
jmp 0x70b8bc
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x70b8dc
mov edx, ecx
or edx, eax
je 0x70b8dc
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x70ba03
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x70ba03
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x70b96d
mov dword [esp + 0x38], 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
cmp ecx, ebp
je 0x70b953
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x70b953
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x70b953
cmp esi, ebp
jle 0x70b953
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x70b94b
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x70b943
mov edx, dword [edx + 4]
dec ebp
jne 0x70b936
xor ebp, ebp
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
add edx, 4
dec ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], ecx
jne 0x70b913
mov esi, dword [esp + 0x14]
cmp eax, dword [0x8294d8]
je 0x70b980
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x70b9fc
mov eax, dword [0x829464]
mov dword [esp + 0x38], ebp
cmp eax, ebp
je 0x70b9c2
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x70b9b7
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x70b9b7
cmp dword [eax], 0x29874362
je 0x70b9c2
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x38], ebp
cmp eax, ebp
je 0x70b9fc
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x70b9f1
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x70b9f1
cmp dword [eax], 0xbad0bad
je 0x70b9fc
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp esi, ebp
je 0x70ba0b
mov eax, dword [esi]
jmp 0x70ba10
mov eax, dword [0x89fe34]
mov ecx, dword [esp + 0x34]
cmp eax, 1
je 0x70ba4d
mov eax, dword [esp + 0x3c]
fld dword [ecx + 0x90]
cmp eax, 2
jne 0x70ba38
fstp st(0)
fld dword [ecx + 0x94]
fstp dword [ebx + 0x7b0]
jmp 0x70ba51
cmp eax, 3
jne 0x70ba45
fstp st(0)
fld dword [ecx + 0x98]
fstp dword [ebx + 0x7b0]
jmp 0x70ba51
mov eax, dword [esp + 0x3c]
fild dword [ecx + 0xa8]
cmp eax, 2
fst dword [esp + 0x34]
jne 0x70ba66
fstp dword [esp + 0x34]
jmp 0x70ba73
cmp eax, 3
jne 0x70ba71
fstp dword [esp + 0x34]
jmp 0x70ba73
fstp st(0)
fld dword [esp + 0x34]
fcomp dword [0x7cd7b4]
fnstsw ax
test ah, 0x40
jne 0x70bb1f
push 0x18
call fcn.00672b70
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x70bae1
lea edi, [esi + 0x10]
mov byte [esi + 4], 0
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [edi + 4], 1
mov dword [edi], 0x7cec1c
mov dword [esi], 0x7e3678
mov dword [edi], 0x7e3670
mov eax, dword [ebx + 0x7bc]
cmp eax, ebp
je 0x70bad5
mov eax, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00708af0
jmp 0x70bae5
xor eax, eax
mov ecx, esi
push eax
call fcn.00708af0
jmp 0x70bae5
xor esi, esi
xor edi, edi
mov ebp, dword [0x830294]
push 2
push 0
push edi
mov ecx, ebx
call fcn.006a5f10
fld dword [esp + 0x40]
push eax
call fcn.0078c320
push eax
mov ecx, ebp
call fcn.005137a0
test esi, esi
je 0x70bb1d
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
dec eax
mov dword [ecx + 4], eax
jne 0x70bb1d
mov edx, dword [ecx]
call dword [edx]
xor ebp, ebp
mov ecx, dword [ebx + 0x774]
mov eax, dword [ecx]
call dword [eax + 0xbc]
mov esi, eax
pop edi
cmp esi, ebp
pop ebp
je 0x70bb89
mov eax, dword [esp + 0x38]
mov ecx, ebx
fld dword [eax]
fstp dword [esp + 0x10]
fld dword [eax + 0x10]
fstp dword [esp + 0x14]
fld dword [eax + 0x20]
fstp dword [esp + 0x18]
call fcn.007204c0
fld dword [eax + 0xb0]
fld dword [esp + 0x10]
fmul st(1)
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
call dword [edx + 0xf8]
mov edx, dword [ebx + 8]
lea ecx, [ebx + 8]
push 1
push 7
call dword [edx + 0x38]
pop esi
pop ebx
add esp, 0x20
ret 0x10