Function at 0x1002a230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1027bf54]
imul eax, dword [0x1027bf58]
add eax, 0xba22679
mov ecx, 0x3bf190a
xor edx, edx
div ecx
sub eax, 0xae935806
cmp eax, 0x2f2b2926
jbe 0x1002a7ce
mov esi, dword [ebp - 0x10]
mov eax, dword [0x1027bf5c]
mov ecx, dword [0x1027bf60]
or eax, ecx
mov ecx, eax
and ecx, 0x1ebae2b7
mov edx, eax
xor edx, 0xe1451d48
add eax, edx
sub eax, ecx
xor eax, 0x67ef8648
mov ecx, 0xc846d48d
mul ecx
shr edx, 0x1f
push eax
mov ecx, esp
push eax
mov eax, esp
mov dword [ebp - 0x20], eax
push eax
mov edi, esp
mov dword [ebp - 0x1c], edi
push eax
mov edi, esp
mov dword [ebp - 0x18], edi
mov dword [ecx], esi
mov esi, dword [ecx]
add esi, 0x23
mov dword [eax], esi
mov eax, dword [eax]
cmp eax, dword [ecx]
setbe al
mov byte [ebp - 0x11], al
cmp edx, 0xbae6521a
je 0x1002a269
mov al, byte [ebp - 0x11]
test al, 1
jne 0x1002a2e0
jmp 0x1002a3a0
mov eax, dword [0x1027bf64]
mov edx, dword [0x1027bf68]
mov esi, eax
xor esi, edx
xor esi, 0xffffffff
mov ecx, edx
and ecx, esi
shl ecx, 1
sub ecx, edx
sub eax, ecx
and eax, 0x70102ffb
mov ecx, eax
and ecx, 0x1293390e
shl ecx, 1
xor eax, 0x1293390e
add eax, ecx
imul eax, eax, 0x84ae4963
cmp eax, 0x3f1c6604
jb 0x1002a7e5
mov eax, dword [0x1027bf6c]
mov edx, dword [0x1027bf70]
mov ecx, eax
xor ecx, 0xffffffff
and ecx, edx
xor edx, 0xffffffff
and eax, edx
sub eax, ecx
mov ecx, 0x9312a712
xor edx, edx
div ecx
mov esi, eax
mov eax, 0xffffffff
xor eax, 0x9cd08283
add esi, eax
add esi, 1
mov eax, esi
xor eax, 0xffffffff
and eax, 0x6b9d65b3
mov edx, 0xffffffff
xor edx, 0x6b9d65b3
and esi, edx
mov ecx, 0xffffffff
xor ecx, 0x4c556418
and ecx, 0x6b9d65b3
and edx, 0x4c556418
or eax, esi
or ecx, edx
xor eax, ecx
mov dword [ebp - 0x24], eax
call fcn.1002a9d0
mov eax, dword [ebp - 0x24]
cmp eax, 0x52ca4768
je 0x1002a7e5
mov eax, dword [0x1027bf74]
xor edx, edx
div dword [0x1027bf78]
or eax, 0x7dfea030
sub eax, 0x9c305f53
xor ecx, ecx
sub ecx, 0x5b0d6c07
add eax, ecx
cmp eax, 0x5c3e7b0a
jb 0x1002a7ef
mov eax, dword [0x1027bf7c]
add eax, dword [0x1027bf80]
mov edx, eax
xor edx, 0xffffffff
and edx, 0xcde356a0
mov esi, 0xffffffff
xor esi, 0xcde356a0
mov ecx, eax
and ecx, esi
imul ecx, edx
mov edx, eax
and edx, 0xcde356a0
or eax, 0xcde356a0
imul eax, edx
add eax, ecx
mov ecx, 0x25f2518f
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp - 0x20]
xor ecx, 0x3c92c3e4
mov dword [ebp - 0x28], ecx
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.1002a830
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ecx], edx
cmp eax, 0xff0f1bac
jae 0x1002a3cc
jmp 0x1002a447
mov eax, dword [0x1027bf84]
sub eax, dword [0x1027bf88]
mov ecx, 0xb5ed23f3
xor edx, edx
div ecx
imul ecx, eax, 0xdc35e6f7
mov eax, ecx
xor eax, 0xffffffff
mov edx, ecx
xor edx, 0xffffffff
or eax, edx
and eax, 0x3144c09e
xor eax, 0xffffffff
mov edx, 0x3144c09e
and edx, 0x3144c09e
xor edx, 0xffffffff
and ecx, edx
xor ecx, 0xffffffff
xor eax, 0xffffffff
xor ecx, 0xffffffff
or eax, ecx
cmp eax, 0x6600565a
jb 0x1002a80e
mov ecx, dword [0x1027bf8c]
add ecx, dword [0x1027bf90]
mov edx, ecx
xor edx, 0xffffffff
mov edi, 0xffffffff
xor edi, 0xfd02bb1a
mov esi, 0xffffffff
xor esi, 0x607de83f
mov eax, edx
and eax, 0x607de83f
mov dword [ebp - 0x34], eax
and ecx, esi
mov ebx, edi
and ebx, 0x607de83f
mov eax, esi
and eax, 0xfd02bb1a
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
or eax, ecx
mov ecx, dword [ebp - 0x30]
or ebx, ecx
mov ecx, dword [ebp - 0x1c]
xor eax, ebx
or edx, edi
xor edx, 0xffffffff
or esi, 0x607de83f
and edx, esi
or eax, edx
mov esi, 0x5e7f7aa3
xor edx, edx
div esi
mov edx, eax
add edx, 1
xor eax, 0xffffffff
or eax, 0xb637b430
add eax, edx
cmp dword [ecx], 0
setne cl
mov byte [ebp - 0x29], cl
cmp eax, 0x4b38d673
ja 0x1002a49b
mov al, byte [ebp - 0x29]
test al, 1
jne 0x1002a53a
jmp 0x1002a629
mov eax, dword [0x1027bf94]
xor edx, edx
div dword [0x1027bf98]
mov ecx, 0x1ee1d473
xor edx, edx
div ecx
mov ecx, eax
xor ecx, 0xffffffff
and ecx, 0x80807c2c
mov edx, 0xffffffff
xor edx, 0x80807c2c
and eax, edx
or ecx, eax
mov eax, ecx
xor eax, 0xffffffff
mov edx, ecx
xor edx, 0xffffffff
and eax, edx
mov edx, 0x34839ebe
or edx, 0x34839ebe
xor edx, 0xffffffff
xor eax, 0xffffffff
xor edx, 0xffffffff
and eax, edx
or ecx, 0x34839ebe
xor ecx, 0xffffffff
xor eax, 0xffffffff
xor ecx, 0xffffffff
and eax, ecx
cmp eax, 0x2a23d41b
jbe 0x1002a813
mov ecx, dword [0x1027bf9c]
mov esi, dword [0x1027bfa0]
mov edi, esi
xor edi, 0xffffffff
mov edx, ecx
and edx, edi
mov eax, ecx
or eax, edi
xor eax, 0xffffffff
imul eax, edx
mov edx, ecx
and edx, esi
or ecx, esi
imul ecx, edx
add ecx, eax
mov eax, ecx
and eax, 0x75b26ba2
xor ecx, 0x75b26ba2
or eax, ecx
mov ecx, 0x8ccdb031
xor edx, edx
div ecx
mov edx, eax
xor edx, 0xffffffff
and edx, 0x87eb619
mov esi, 0xffffffff
xor esi, 0x87eb619
mov ecx, eax
and ecx, esi
imul ecx, edx
mov edx, eax
and edx, 0x87eb619
or eax, 0x87eb619
imul eax, edx
add eax, ecx
cmp eax, 0x4024d7e6
ja 0x1002a813
jmp 0x1002a6c3
jmp 0x1002a62e
mov eax, dword [0x1027bfa4]
xor eax, dword [0x1027bfa8]
mov ecx, eax
xor ecx, 0xc2337525
xor ecx, 0xffffffff
and ecx, 0xc2337525
shl ecx, 1
sub ecx, 0xc2337525
sub eax, ecx
mov ecx, eax
xor ecx, 0xc5e84c84
xor ecx, 0xffffffff
and ecx, 0xc5e84c84
shl ecx, 1
sub ecx, 0xc5e84c84
sub eax, ecx
xor eax, 0xec0b43c3
cmp eax, 0x320a9b83
je 0x1002a818
mov eax, dword [0x1027bfac]
sub eax, dword [0x1027bfb0]
xor eax, 0xce283e97
mov ecx, 0xda33bf92
xor edx, edx
div ecx
mov ecx, eax
and ecx, 0x80fd7e47
xor ecx, 0xffffffff
add eax, 0x80fd7e47
add eax, 1
add eax, ecx
mov dword [ebp - 0x38], eax
call fcn.101fd702
mov eax, dword [ebp - 0x38]
cmp eax, 0x3a4a4c45
je 0x1002a67f
mov esi, dword [0x1027bfc4]
mov edx, dword [0x1027bfc8]
mov ecx, esi
xor ecx, 0xffffffff
and ecx, 0x6ee034ea
mov edi, 0xffffffff
xor edi, 0x6ee034ea
and esi, edi
mov eax, edx
xor eax, 0xffffffff
and eax, 0x6ee034ea
and edx, edi
or ecx, esi
or eax, edx
xor ecx, eax
mov eax, ecx
xor eax, 0xffffffff
and eax, 0x8950f25e
mov edx, 0xffffffff
xor edx, 0x8950f25e
and ecx, edx
or eax, ecx
sub eax, 0x6508ba70
mov ecx, eax
and ecx, 0xf8ff6023
xor ecx, 0xffffffff
add eax, 0xf8ff6023
add eax, 1
add eax, ecx
cmp eax, 0x9a132da8
jbe 0x1002a822
mov eax, dword [0x1027bfcc]
mov edx, dword [0x1027bfd0]
mov ecx, eax
and ecx, edx
shl ecx, 1
xor eax, edx
add eax, ecx
mov ecx, 0x7a96f569
xor edx, edx
div ecx
and eax, eax
xor eax, 0xffffffff
mov ecx, 0x9e811f64
and ecx, 0x9e811f64
xor ecx, 0xffffffff
xor eax, 0xffffffff
xor ecx, 0xffffffff
or eax, ecx
imul eax, eax, 0x30c079eb
cmp eax, 0x520eaa96
je 0x1002a737
jmp 0x1002a786
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
xor esi, esi
sub esi, 0x23
sub edx, esi
xor edx, 0xffffffff
mov edi, 0xffffffff
xor edi, 0xffffffe0
mov esi, 0xffffffff
xor esi, 0xa1e92b2b
or edx, edi
or esi, 0xa1e92b2b
xor edx, 0xffffffff
and edx, esi
mov dword [eax], edx
mov edx, dword [ecx]
mov ecx, dword [eax]
mov dword [ecx - 4], edx
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x10]
push eax
mov ecx, esp
push eax
mov eax, esp
mov dword [ecx], edx
mov ecx, dword [ecx]
add ecx, 0x23
mov dword [eax], ecx
jmp 0x1002a269
call fcn.1002a9d0
jmp 0x1002a323
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.1002a830
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x1002a3cc
jmp 0x1002a49b
jmp 0x1002a5a8
call fcn.101fd702
jmp 0x1002a67f
jmp 0x1002a737