Function at 0x51d0f0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30c], edx
test ecx, ecx
je 0x51d8d0
mov eax, dword [edx]
mov dword [ebp - 0x2e0], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x2e4], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2f4], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2ec], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2d4], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x2d0], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x2d8], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x2dc], eax
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x2fc], eax
mov eax, dword [edx + 0x2c]
push ebx
mov ebx, dword [edx + 8]
mov dword [ebp - 0x300], eax
mov eax, dword [edx + 0x30]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x304], eax
add esi, 2
mov eax, dword [edx + 0x34]
push edi
mov edi, dword [edx + 0x20]
mov dword [ebp - 0x308], eax
mov eax, dword [edx + 0x38]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x2e8], edi
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f4]
dec ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], esi
jmp 0x51d226
mov edi, dword [ebp - 0x2e8]
movzx eax, byte [esi - 2]
cdq
mov ebx, eax
mov dword [ecx + 0x20], edi
mov eax, dword [ebp - 0x2f0]
mov esi, edx
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax - 1]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2f0]
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2f0]
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax + 1]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2f0]
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax + 2]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2f0]
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax + 3]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2f0]
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax + 4]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2f0]
shld esi, ebx, 8
shl ebx, 8
movzx eax, byte [eax + 5]
cdq
or ebx, eax
or esi, edx
mov eax, dword [ebp - 0x2e0]
mov edx, dword [ebp - 0x2dc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ecx + 4], eax
mov eax, edi
mov dword [ebp - 0x2d4], esi
mov dword [ecx + 0x44], esi
mov esi, edx
mov dword [ecx + 0x24], edx
shld edx, eax, 0x17
shr esi, 9
shl eax, 0x17
or esi, eax
mov dword [ebp - 0x2ec], ebx
mov eax, dword [ebp - 0x2e8]
mov dword [ecx + 0x40], ebx
xor ebx, ebx
or ebx, edx
mov dword [ebp - 0x2d0], esi
mov edx, dword [ebp - 0x2dc]
xor esi, esi
shrd eax, edx, 0x12
shl edi, 0xe
shr edx, 0x12
or esi, eax
or edi, edx
xor dword [ebp - 0x2d0], esi
xor ebx, edi
mov eax, dword [ebp - 0x2e8]
xor esi, esi
mov edx, dword [ebp - 0x2dc]
mov edi, eax
shrd eax, edx, 0xe
shl edi, 0x12
or esi, eax
shr edx, 0xe
xor dword [ebp - 0x2d0], esi
or edi, edx
mov esi, dword [ebp - 0x2dc]
xor ebx, edi
mov edi, dword [ebp - 0x2e8]
not esi
and esi, dword [ecx + 0x34]
not edi
and edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x2c]
and eax, dword [ebp - 0x2dc]
mov edx, dword [ecx + 0x28]
xor esi, eax
and edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2d0]
xor edi, edx
mov edx, dword [ebp - 0x2f4]
add eax, edi
adc ebx, esi
add eax, dword [edx*8 + 0x65bde0]
adc ebx, dword [edx*8 + 0x65bde4]
add eax, dword [ecx + 0x38]
mov edx, dword [ebp - 0x2ec]
adc ebx, dword [ecx + 0x3c]
add edx, eax
mov eax, dword [ebp - 0x2d4]
adc eax, ebx
mov dword [ebp - 0x2ec], edx
mov ebx, dword [ecx + 0x18]
add ebx, edx
mov dword [ebp - 0x2d4], eax
mov edx, dword [ecx + 0x1c]
adc edx, eax
mov dword [ebp - 0x2e8], ebx
mov eax, dword [ebp - 0x2e0]
xor esi, esi
mov dword [ebp - 0x2dc], edx
mov edi, eax
mov edx, dword [ebp - 0x2e4]
shrd eax, edx, 0x1c
mov ebx, dword [ecx + 0xc]
or esi, eax
shl edi, 4
mov eax, dword [ebp - 0x2e0]
shr edx, 0x1c
or edi, edx
mov dword [ebp - 0x2d0], esi
mov edx, dword [ebp - 0x2e4]
xor esi, esi
mov dword [ebp - 0x2d8], edi
mov edi, edx
shld edx, eax, 0x1e
shr edi, 2
shl eax, 0x1e
or esi, edx
mov edx, dword [ebp - 0x2e4]
or edi, eax
xor dword [ebp - 0x2d0], edi
mov edi, edx
mov eax, dword [ebp - 0x2e0]
xor dword [ebp - 0x2d8], esi
xor esi, esi
shld edx, eax, 0x19
shr edi, 7
shl eax, 0x19
or esi, edx
or edi, eax
xor dword [ebp - 0x2d0], edi
xor dword [ebp - 0x2d8], esi
mov esi, dword [ecx + 8]
mov edx, esi
xor edx, dword [ecx + 0x10]
mov eax, ebx
xor eax, dword [ecx + 0x14]
and eax, dword [ebp - 0x2e4]
and edx, dword [ebp - 0x2e0]
and esi, dword [ecx + 0x10]
and ebx, dword [ecx + 0x14]
xor edx, esi
mov esi, dword [ebp - 0x2f0]
xor eax, ebx
mov ebx, dword [ebp - 0x2d0]
add ebx, edx
mov edx, dword [ebp - 0x2f4]
adc eax, dword [ebp - 0x2d8]
add ebx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2e0], ebx
adc eax, dword [ebp - 0x2d4]
inc edx
add esi, 8
mov dword [ebp - 0x2e4], eax
sub ecx, 8
mov dword [ebp - 0x2f4], edx
mov dword [ebp - 0x2f0], esi
cmp edx, 0x10
jl 0x51d220
cmp edx, 0x50
jge 0x51d7d4
lea eax, [edx*8 + 0x65bde0]
mov dword [ebp - 0x2f4], eax
mov ebx, dword [ecx + 0x54]
xor esi, esi
mov eax, dword [ecx + 0x50]
mov edx, ebx
mov edi, eax
shrd eax, edx, 0x13
shl edi, 0xd
or esi, eax
shr edx, 0x13
mov eax, dword [ecx + 0x50]
or edi, edx
mov edx, ebx
mov dword [ebp - 0x2d0], edi
shld edx, eax, 3
mov dword [ebp - 0x2d8], esi
mov edi, ebx
shl eax, 3
xor esi, esi
or esi, edx
shr edi, 0x1d
mov edx, dword [ebp - 0x2d8]
or edi, eax
mov eax, dword [ecx + 0x50]
xor edx, edi
mov edi, dword [ebp - 0x2d0]
shrd eax, ebx, 6
xor edi, esi
xor edx, eax
shr ebx, 6
xor edi, ebx
mov dword [ebp - 0x2d8], edx
mov edx, dword [ecx + 0xbc]
xor ebx, ebx
mov dword [ebp - 0x2d0], edi
mov edi, dword [ecx + 0xb8]
mov eax, edi
shrd eax, edx, 8
mov esi, edi
shl edi, 0x1f
or ebx, eax
shr edx, 8
mov eax, dword [ecx + 0xb8]
shl esi, 0x18
or esi, edx
mov edx, dword [ecx + 0xbc]
shrd eax, edx, 1
mov dword [ebp - 0x2f8], esi
xor esi, esi
or esi, eax
shr edx, 1
mov eax, dword [ebp - 0x2f8]
xor ebx, esi
mov esi, dword [ecx + 0xb8]
or edi, edx
mov edx, dword [ecx + 0xbc]
xor eax, edi
mov edi, dword [ebp - 0x2e8]
shrd esi, edx, 7
mov dword [ecx + 0x20], edi
shr edx, 7
xor ebx, esi
xor eax, edx
mov edx, dword [ebp - 0x2d8]
add edx, ebx
mov ebx, dword [ebp - 0x2d0]
adc ebx, eax
add edx, dword [ecx + 0xc0]
mov eax, dword [ebp - 0x2e0]
adc ebx, dword [ecx + 0xc4]
add edx, dword [ecx + 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2e4]
adc ebx, dword [ecx + 0x7c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x2dc]
mov esi, eax
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2d0], ebx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x40], edx
mov dword [ecx + 0x44], ebx
mov edx, dword [ebp - 0x2dc]
mov eax, edi
shld edx, eax, 0x17
shr esi, 9
xor ebx, ebx
or ebx, edx
shl eax, 0x17
mov edx, dword [ebp - 0x2dc]
or esi, eax
mov eax, dword [ebp - 0x2e8]
shrd eax, edx, 0x12
shl edi, 0xe
shr edx, 0x12
or edi, edx
mov dword [ebp - 0x2d4], esi
mov edx, dword [ebp - 0x2dc]
xor ebx, edi
xor esi, esi
or esi, eax
mov eax, dword [ebp - 0x2e8]
xor dword [ebp - 0x2d4], esi
mov edi, eax
shrd eax, edx, 0xe
shl edi, 0x12
xor esi, esi
or esi, eax
shr edx, 0xe
xor dword [ebp - 0x2d4], esi
or edi, edx
mov esi, dword [ebp - 0x2dc]
xor ebx, edi
mov edi, dword [ebp - 0x2e8]
not esi
and esi, dword [ecx + 0x34]
not edi
and edi, dword [ecx + 0x30]
mov eax, dword [ecx + 0x2c]
and eax, dword [ebp - 0x2dc]
mov edx, dword [ecx + 0x28]
xor esi, eax
and edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2d4]
xor edi, edx
mov edx, dword [ebp - 0x2f4]
add eax, edi
adc ebx, esi
add eax, dword [ecx + 0x38]
adc ebx, dword [ecx + 0x3c]
add eax, dword [edx]
adc ebx, dword [edx + 4]
mov edx, dword [ebp - 0x2d8]
add edx, eax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d8], edx
adc eax, ebx
mov ebx, dword [ecx + 0x18]
add ebx, edx
mov dword [ebp - 0x2d0], eax
mov edx, dword [ecx + 0x1c]
adc edx, eax
mov dword [ebp - 0x2e8], ebx
mov eax, dword [ebp - 0x2e0]
xor esi, esi
mov ebx, dword [ecx + 0xc]
mov edi, eax
mov dword [ebp - 0x2dc], edx
mov edx, dword [ebp - 0x2e4]
shrd eax, edx, 0x1c
shl edi, 4
shr edx, 0x1c
or esi, eax
mov eax, dword [ebp - 0x2e0]
or edi, edx
mov edx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2ec], edi
mov edi, edx
shld edx, eax, 0x1e
mov dword [ebp - 0x2d4], esi
xor esi, esi
shr edi, 2
shl eax, 0x1e
or esi, edx
or edi, eax
xor dword [ebp - 0x2d4], edi
xor dword [ebp - 0x2ec], esi
xor esi, esi
mov edx, dword [ebp - 0x2e4]
mov edi, edx
mov eax, dword [ebp - 0x2e0]
shld edx, eax, 0x19
shr edi, 7
or esi, edx
shl eax, 0x19
xor dword [ebp - 0x2ec], esi
or edi, eax
mov esi, dword [ecx + 8]
mov eax, ebx
xor eax, dword [ecx + 0x14]
mov edx, esi
xor edx, dword [ecx + 0x10]
and edx, dword [ebp - 0x2e0]
and eax, dword [ebp - 0x2e4]
and ebx, dword [ecx + 0x14]
and esi, dword [ecx + 0x10]
xor eax, ebx
xor dword [ebp - 0x2d4], edi
xor edx, esi
mov ebx, dword [ebp - 0x2d4]
add ebx, edx
mov edx, dword [ebp - 0x2ec]
adc edx, eax
add ebx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2e0], ebx
adc edx, dword [ebp - 0x2d0]
sub ecx, 8
mov eax, edx
mov dword [ebp - 0x2e4], edx
mov edx, dword [ebp - 0x2f4]
add edx, 8
mov dword [ebp - 0x2f4], edx
cmp edx, 0x65c060
jl 0x51d4e5
mov edx, dword [ebp - 0x30c]
add dword [edx], ebx
mov esi, dword [edx]
adc dword [edx + 4], eax
mov eax, dword [ecx + 8]
add dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
adc dword [edx + 0xc], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2f4], eax
mov eax, dword [ecx + 0x10]
add dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
adc dword [edx + 0x14], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2ec], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ecx + 0x18]
add dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [edx + 0x1c], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x2d0], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2e8]
add dword [edx + 0x20], eax
mov eax, dword [ebp - 0x2dc]
adc dword [edx + 0x24], eax
mov eax, dword [edx + 0x24]
mov ebx, dword [edx + 4]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ecx + 0x28]
add dword [edx + 0x28], eax
mov eax, dword [ecx + 0x2c]
adc dword [edx + 0x2c], eax
mov eax, dword [edx + 0x28]
mov edi, dword [edx + 0x20]
mov dword [ebp - 0x2fc], eax
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x300], eax
mov eax, dword [ecx + 0x30]
add dword [edx + 0x30], eax
mov eax, dword [ecx + 0x34]
adc dword [edx + 0x34], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x304], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x308], eax
mov eax, dword [ecx + 0x38]
add dword [edx + 0x38], eax
mov eax, dword [ecx + 0x3c]
adc dword [edx + 0x3c], eax
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2e4], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x2e0], esi
mov esi, dword [ebp - 0x2f0]
mov dword [ebp - 0x2e8], edi
mov dword [ebp - 0x2f8], eax
test ecx, ecx
jne 0x51d1a3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret