Function at 0x6d4ed0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov ecx, dword [ebp + 8]
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
dec esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov ebx, 0xffffff9a
test ecx, ecx
je 0x6d4f4c
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x6d4f4c
cmp dword [ecx + 0xe0], 0
mov ebx, ecx
jne 0x6d5278
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 0x48]
add eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0x4c]
adc ecx, dword [ebx + 0xdc]
push 0
push ecx
push eax
push dword [ebx + 0x30]
push ebx
call fcn.006d7d80
add esp, 0x14
test eax, eax
je 0x6d4f60
mov ebx, 0xffffff99
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066e1f1
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0x30]
lea edi, [ebp - 0x20]
mov ecx, ebx
push edi
call fcn.0056e020
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
mov edx, dword [ebx + 0x30]
lea edi, [ebp - 0x24]
mov ecx, ebx
push edi
call fcn.0056e560
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0056e560
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0x30]
mov ecx, ebx
push edi
call fcn.0056e560
add esp, 4
mov ecx, esi
test eax, eax
je 0x6d5122
mov dword [ebp - 0x34], ecx
mov edx, dword [ebx + 0x30]
mov ecx, ebx
push edi
call fcn.0056e020
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebx + 0x30]
mov ecx, ebx
push edi
call fcn.0056e020
add esp, 4
mov edi, esi
test eax, eax
je 0x6d517c
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0056e020
add esp, 4
mov ecx, esi
test eax, eax
je 0x6d51b3
mov dword [ebp - 0x34], ecx
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0056e020
add esp, 4
mov edi, esi
test eax, eax
je 0x6d51f3
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0056e560
add esp, 4
test eax, eax
je 0x6d5236
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.0056e560
add esp, 4
mov ecx, dword [ebx + 0xdc]
mov edi, dword [ebx + 0xd8]
add edi, dword [ebp - 0x34]
adc ecx, 0
add edi, 0x1e
adc ecx, 0
or eax, esi
mov ebx, 0xffffff99
jne 0x6d4f4c
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp - 0x30]
push 0xd0
call fcn.00634fd0
add esp, 4
test eax, eax
je 0x6d528f
mov esi, eax
push 0x4000
call fcn.00634fd0
add esp, 4
mov dword [esi], eax
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], ebx
xor ecx, ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc8], ecx
test eax, eax
je 0x6d5286
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x48], 0
test ecx, ecx
mov edi, dword [ebp + 8]
je 0x6d50e3
mov edx, dword [edi + 0x8c]
mov dword [ecx], edx
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x6d52ba
mov dword [eax], 6
mov ecx, dword [edi + 0x88]
and ecx, 6
cmp ecx, 2
je 0x6d52ae
cmp ecx, 6
je 0x6d52b5
cmp ecx, 4
jne 0x6d52ba
mov ecx, 2
jmp 0x6d52b8
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x38]
sete al
mov edx, dword [ebp - 0x34]
jne 0x6d5258
cmp edx, 0x4034b50
jne 0x6d5258
mov eax, dword [ebp - 0x24]
mov ecx, 0xffffff99
mov ebx, dword [ebp + 8]
cmp eax, dword [ebx + 0x8c]
jne 0x6d4fb9
cmp eax, 0xc
ja 0x6d5172
mov ecx, 0x1101
bt ecx, eax
mov ecx, 0
jb 0x6d4fb9
mov ecx, 0xffffff99
jmp 0x6d4fb9
xor edi, edi
neg dword [ebp - 0x38]
sbb edi, edi
or edi, dword [ebp - 0x34]
jne 0x6d4fe5
mov eax, dword [ebp - 0x24]
mov edi, 0
cmp eax, dword [ebx + 0x94]
je 0x6d4fe5
xor eax, eax
test byte [ebp - 0x28], 8
mov edi, 0xffffff99
cmovne edi, eax
jmp 0x6d4fe5
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x6d5299
mov ecx, edi
test edi, edi
mov ebx, dword [ebp + 8]
jne 0x6d5000
xor eax, dword [ebx + 0x98]
xor ecx, ecx
or eax, dword [ebx + 0x9c]
je 0x6d5000
xor eax, eax
test byte [ebp - 0x28], 8
mov ecx, 0xffffff99
cmovne ecx, eax
jmp 0x6d5000
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x6d52a3
mov ecx, dword [ebp - 0x34]
mov edi, ecx
test ecx, ecx
mov ebx, dword [ebp + 8]
jne 0x6d501e
xor eax, dword [ebx + 0xa0]
xor edi, edi
or eax, dword [ebx + 0xa4]
je 0x6d501e
xor eax, eax
test byte [ebp - 0x28], 8
mov edi, 0xffffff99
cmovne edi, eax
jmp 0x6d501e
mov esi, edi
test edi, edi
jne 0x6d5037
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp eax, dword [ebx + 0xa8]
mov esi, 0xffffff99
cmove esi, ecx
jmp 0x6d5037
xor ecx, ecx
cmp edx, 0x4034b50
mov edx, 0xffffff99
cmove edx, ecx
xor ecx, ecx
dec ecx
test al, al
cmovne ecx, edx
mov ebx, dword [ebp + 8]
jmp 0x6d4fb9
push ebx
call fcn.006d4d10
add esp, 4
jmp 0x6d4f12
push esi
call fcn.00635020
add esp, 4
mov ebx, 0xffffff98
jmp 0x6d4f4c
mov ecx, edi
mov ebx, dword [ebp + 8]
jmp 0x6d5000
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp + 8]
jmp 0x6d501e
mov ecx, 9
jmp 0x6d52b8
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x94]
mov dword [esi + 0x74], eax
xor ecx, ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], ecx
mov eax, dword [edi + 0x8c]
mov dword [esi + 0xb8], eax
mov edx, dword [edi + 0x30]
mov dword [esi + 0xb4], edx
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 0x88], xmm0
movups xmmword [esi + 0x98], xmm1
movups xmm0, xmmword [edi + 0x1c]
movups xmmword [esi + 0xa4], xmm0
movsd xmm0, qword [edi + 0x48]
movsd qword [esi + 0xc0], xmm0
mov dword [esi + 0x18], ecx
test ebx, ebx
jne 0x6d5552
cmp eax, 0xc
jne 0x6d5552
mov dword [esi + 0xc8], 1
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x34]
movsd xmm0, qword [edi + 0x98]
movsd qword [esi + 0x78], xmm0
movsd xmm0, qword [edi + 0xa0]
movsd qword [esi + 0x80], xmm0
xor ebx, ebx
add ecx, dword [edi + 0xd8]
mov eax, dword [edi + 0xdc]
adc eax, ebx
add ecx, 0x1e
mov dword [esi + 0x40], ecx
adc eax, ebx
mov dword [esi + 0x44], eax
mov dword [esi + 8], ebx
mov dword [edi + 0xe0], esi
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xe4], ebx
test eax, eax
je 0x6d4f4c
mov esi, eax
call fcn.006c9f10
mov dword [ebp - 0x34], eax
mov dword [edi + 0xf8], eax
mov dword [edi + 0xec], 0x12345678
mov dword [edi + 0xf0], 0x23456789
mov dword [edi + 0xf4], 0x34567890
mov bl, byte [esi]
test bl, bl
je 0x6d5429
mov edx, esi
inc edx
mov ecx, 0x12345678
mov edi, 0x23456789
mov esi, 0x34567890
mov dword [ebp - 0x38], edx
mov bh, cl
xor bh, bl
movzx ebx, bh
shr ecx, 8
mov edx, dword [ebp - 0x34]
xor ecx, dword [edx + ebx*4]
mov ebx, ecx
mov edx, 0xff
and ebx, edx
add ebx, edi
imul edi, ebx, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
mov edx, esi
mov ebx, 0xff
and edx, ebx
xor edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], ecx
mov dword [eax + 0xf0], edi
shr esi, 8
mov ebx, dword [ebp - 0x34]
xor esi, dword [ebx + edx*4]
mov edx, dword [ebp - 0x38]
mov dword [eax + 0xf4], esi
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x6d53cc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xe0]
mov ecx, dword [edi + 0xc0]
add ecx, dword [edi + 0x40]
mov edx, dword [edi + 0xc4]
adc edx, dword [edi + 0x44]
push 0
push edx
push ecx
push dword [esi + 0x30]
push esi
call fcn.006d7d80
add esp, 0x14
test eax, eax
jne 0x6d528f
mov eax, esi
mov esi, dword [esi + 0x30]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0x1c]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push 0xc
push eax
push esi
push edi
call ecx
add esp, 0x10
mov ebx, 0xffffff98
cmp eax, 0xc
jb 0x6d4f4c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0x34], ecx
mov ebx, dword [eax + 0xf4]
mov edx, dword [eax + 0xec]
mov edi, dword [eax + 0xf0]
xor esi, esi
mov dword [ebp - 0x38], esi
mov ecx, ebx
and ecx, 0xfffd
mov eax, ebx
or eax, 2
xor ecx, 3
imul ecx, eax
xor ch, byte [ebp + esi - 0x1c]
mov byte [ebp + esi - 0x1c], ch
mov eax, edx
xor al, ch
movzx eax, al
shr edx, 8
mov ecx, dword [ebp - 0x34]
xor edx, dword [ecx + eax*4]
mov eax, edx
mov ecx, 0xff
and eax, ecx
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
mov ecx, ebx
mov esi, 0xff
and ecx, esi
mov esi, dword [ebp - 0x38]
xor ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], edx
mov dword [eax + 0xf0], edi
shr ebx, 8
mov eax, dword [ebp - 0x34]
xor ebx, dword [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [eax + 0xf4], ebx
inc esi
cmp esi, 0xc
jne 0x6d54a8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov eax, dword [ecx + 0xe0]
add dword [eax + 0x78], 0xfffffff4
adc dword [eax + 0x7c], 0xffffffff
mov dword [ecx + 0xe4], 1
xor ebx, ebx
jmp 0x6d4f4c
test ebx, ebx
jne 0x6d532e
cmp eax, 8
jne 0x6d532e
mov eax, esi
add eax, 4
xor ecx, ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push 0x38
push str.1.2.13
push 0xfffffffffffffff1
push eax
call fcn.0051c440
add esp, 0x10
test eax, eax
je 0x6d559f
mov ebx, eax
push esi
call fcn.00635020
add esp, 4
jmp 0x6d4f4c
mov dword [esi + 0x48], 8
jmp 0x6d532e