Function at 0x675958
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
call fcn.004058f8
xor eax, eax
push ebp
push 0x675ea3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6e53f4]
cmp dword [eax], 0
jne 0x675a04
mov ecx, dword [0x7efcf8]
mov dl, 1
mov eax, dword [0x595534]
call fcn.00486bf4
mov edx, dword [0x6e53f4]
mov dword [edx], eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov edx, dword [0x7efcf8]
mov ecx, dword [edx + 0x1d8]
mov dword [eax + 0x1d8], ecx
mov ecx, dword [edx + 0x1dc]
mov dword [eax + 0x1dc], ecx
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov edx, dword [0x7efcf8]
mov ecx, dword [edx + 0x1e0]
mov dword [eax + 0x1e0], ecx
mov ecx, dword [edx + 0x1e4]
mov dword [eax + 0x1e4], ecx
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov byte [eax + 0x1f8], 1
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
mov eax, dword [eax + 0xc]
mov edx, dword [0x6e5114]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x7efcf8]
cmp byte [eax + 0x22b], 2
jne 0x675a7a
mov eax, dword [0x6e5114]
mov eax, dword [eax]
call fcn.0042de5c
mov edx, dword [0x6e3aa8]
add eax, dword [edx]
push eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042de78
mov dl, 1
mov eax, dword [0x4946e0]
call fcn.00495798
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dl, 0xa
mov eax, dword [ebp - 8]
call fcn.005f1bdc
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
call fcn.004052d8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x675b12
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
call fcn.0042ed70
mov edx, eax
pop eax
call fcn.005d7994
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jle 0x675b0e
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
inc ebx
dec esi
jne 0x675ab5
mov eax, dword [0x6e55a0]
mov eax, dword [eax]
add eax, eax
mov edx, dword [0x6e3c44]
mov edx, dword [edx + 0x36c]
add edx, edx
add eax, edx
mov ebx, dword [0x6e4de8]
mov ebx, dword [ebx + 0x40]
sub ebx, eax
cmp ebx, dword [ebp - 0x14]
jge 0x675bcb
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
mov eax, dword [eax + 0xc]
call fcn.0042ddb8
cdq
xor eax, edx
sub eax, edx
dec eax
neg eax
push eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042ddc0
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
call fcn.0042ed70
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.005d7994
mov dword [ebp - 0x14], eax
cmp ebx, dword [ebp - 0x14]
jl 0x675b3f
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
mov eax, dword [eax + 0xc]
call fcn.0042ddb8
cdq
xor eax, edx
sub eax, edx
add eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [0x6e3c44]
mov ebx, dword [eax + 0x36c]
add ebx, ebx
add ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
imul dword [ebp - 0x18]
mov edx, dword [0x6e3c44]
mov edx, dword [edx + 0x370]
add edx, edx
add eax, edx
push ebx
push eax
mov edx, dword [0x7efcf8]
mov ecx, dword [edx + 0x44]
mov edx, dword [0x6e4de8]
add ecx, dword [edx + 0x3c]
mov edx, dword [0x6e4de8]
mov edx, dword [edx + 0x44]
sub edx, eax
sar edx, 1
jns 0x675c4c
adc edx, 0
add ecx, edx
mov eax, dword [0x7efcf8]
mov edx, dword [eax + 0x40]
mov eax, dword [0x6e4de8]
add edx, dword [eax + 0x38]
mov eax, dword [0x6e4de8]
mov eax, dword [eax + 0x40]
sub eax, ebx
sar eax, 1
jns 0x675c6f
adc eax, 0
add edx, eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
mov edx, dword [0x6e53f4]
mov edx, dword [edx]
mov edx, dword [edx + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
mov edx, dword [0x6e53f4]
mov edx, dword [edx]
mov edx, dword [edx + 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
mov edx, dword [0x6e55cc]
mov dl, byte [edx]
call fcn.00434854
mov eax, dword [0x6e5698]
mov dword [eax], 3
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
push eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
call fcn.00473d08
mov edx, eax
mov eax, dword [0x7efcf8]
pop ecx
call fcn.006a7028
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
xor eax, eax
mov al, byte [ebp - 4]
push eax
xor eax, eax
mov al, byte [ebp - 3]
push eax
xor eax, eax
mov al, byte [ebp - 2]
push eax
mov eax, dword [0x6e3c44]
mov eax, dword [eax + 0x360]
push eax
push 0
push 0
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
xor ecx, ecx
xor edx, edx
call fcn.0060a6a0
mov eax, dword [0x6e3838]
cmp byte [eax], 1
jne 0x675dd7
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov dl, 0xe8
call fcn.0048b95c
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov dl, 1
call fcn.0048b948
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
add eax, 0x2fc
mov edx, dword [ebp - 8]
call fcn.00405314
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [eax + 0x300], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x675e6c
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x6e3750]
mov al, byte [eax]
push eax
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00430d2c
call fcn.004338a0
mov ecx, dword [0x6e3c44]
mov ecx, dword [ecx + 0x370]
mov edx, ebx
imul edx, dword [ebp - 0x18]
add ecx, edx
mov edx, dword [0x6e3c44]
mov edx, dword [edx + 0x36c]
call fcn.005f36bc
inc ebx
dec esi
jne 0x675e0d
mov eax, dword [ebp - 0xc]
call fcn.00403c70
mov eax, dword [0x6e53f4]
mov eax, dword [eax]
call fcn.0048b07c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x675eaa
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004052f0
lea eax, [ebp - 8]
call fcn.004052d8
ret