Function at 0x412280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea eax, [ebp - 0xc8]
push eax
call dword [0x425180]
mov eax, dword [ebp - 0xb4]
test al, 0x20
je 0x4122ae
mov eax, 0x20
mov dword [ebp - 0xb4], eax
add eax, eax
mov dword [0x4259a0], eax
lea esi, [eax*4]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
jne 0x4122ee
nop
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
je 0x4122d0
push 0
push 0
push 0
push 0
mov dword [0x4259cc], eax
call dword [0x4253f0]
push 0
push 0
push 0
push 0
mov dword [0x4259ac], eax
call dword [0x4253f0]
mov dword [0x4259c0], eax
test eax, eax
je 0x412c3b
cmp dword [0x4259ac], 0
je 0x412c3b
push 0x80000001
call dword [0x425370]
cmp dword [0x4256f4], 0
jne 0x412363
push dword [0x4259a0]
push 0
push 0
push 0xffffffffffffffff
call dword [0x4252a4]
mov dword [0x4259c8], eax
mov edi, 0x411970
jmp 0x4123f9
mov eax, dword [0x4259a0]
push 0x4259e8
lea edi, [eax*8]
call dword [0x425298]
lea esi, [edi*4]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
jne 0x4123b2
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
je 0x412394
push 0
push edi
push edi
push 0
mov dword [0x4259d0], eax
call dword [0x425214]
push 0
push edi
push 0
push 0
mov dword [0x4259d4], eax
call dword [0x425214]
mov dword [0x4259e4], edi
mov edi, 0x4118e0
mov dword [0x4259d8], eax
mov dword [0x4259dc], 0
mov dword [0x4259e0], 0
xor esi, esi
cmp dword [0x4259a0], esi
jbe 0x412430
push 0
push 0
push 0
push edi
push 0
push 0
call dword [0x425348]
mov ecx, dword [0x4259cc]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x412427
inc dword [0x4259c4]
inc esi
cmp esi, dword [0x4259a0]
jb 0x412403
mov edi, 0xf6
mov dword [ebp - 0x3a], 0x9a00d3
mov dword [ebp - 0x36], 0xd60083
xor eax, eax
mov dword [ebp - 0x32], 0xd900bf
mov dword [ebp - 0x2e], 0xd600b9
mov dword [ebp - 0x2a], 0x9900a1
mov dword [ebp - 0x26], 0x9d0084
mov dword [ebp - 0x22], 0x840093
mov dword [ebp - 0x1e], 0xd60085
mov dword [ebp - 0x1a], 0x9700ba
mov dword [ebp - 0x16], 0x980083
mov dword [ebp - 0x12], 0x9e0095
mov dword [ebp - 0xe], 0x920093
mov word [ebp - 0xa], di
nop
xor word [ebp + eax*2 - 0x3a], di
inc eax
cmp eax, 0x19
jb 0x412490
push dword [0x4259c4]
lea eax, [ebp - 0x3a]
push eax
push 0
call fcn.0040b980
mov eax, dword [0x42543c]
add esp, 0xc
test eax, eax
je 0x412832
push eax
call dword [0x425408]
test eax, eax
je 0x4124d7
mov ecx, dword [0x42543c]
call fcn.00414d00
jmp 0x412819
push dword [0x42543c]
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
call dword [0x4251a0]
test eax, eax
je 0x41252f
xor esi, esi
cmp dword [0x425a48], ebx
jbe 0x412819
lea ebx, [ebx]
mov ebx, dword [esi*4 + 0x425a50]
mov ecx, ebx
mov edx, dword [0x42543c]
mov dword [ebp - 0x5c], ebx
call fcn.00414110
cmp eax, 1
je 0x41258e
inc esi
cmp esi, dword [0x425a48]
jb 0x412500
test eax, eax
je 0x412819
jmp 0x41258e
push 0
push 4
push dword [0x42543c]
mov dword [ebp - 8], ebx
push 0x4140e0
push 0
push 0
call dword [0x425348]
mov esi, eax
test esi, esi
je 0x412585
push esi
call dword [0x425354]
push 0xbb8
push esi
call dword [0x42523c]
test eax, eax
je 0x412573
push 0
push esi
call dword [0x425328]
jmp 0x41257e
lea eax, [ebp - 8]
push eax
push esi
call dword [0x425360]
push esi
call dword [0x4251e0]
cmp dword [ebp - 8], ebx
je 0x4127ab
mov edi, dword [0x42543c]
mov ecx, edi
mov dword [ebp - 0x58], edi
cmp word [edi + 2], 0x3a
lea edx, [ecx + 2]
jne 0x412633
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4125a7
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0x18]
push eax
push 8
push dword [0x425ba8]
mov dword [ebp - 0x40], eax
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x412603
mov edi, dword [ebp - 0x40]
jmp 0x4125e0
push 0x80
call dword [0x425428]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x4125e0
mov edi, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x4a], 0x5c005c
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x4a]
push eax
push esi
mov dword [ebp - 0x46], 0x5c003f
call dword [0x425278]
push edi
push esi
call dword [0x425410]
mov byte [ebp - 1], 0
jmp 0x4126cb
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412633
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0x30]
push eax
push 8
push dword [0x425ba8]
mov dword [ebp - 0x40], eax
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x412687
mov edi, dword [ebp - 0x40]
push 0x80
call dword [0x425428]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x412664
mov edi, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x52], 0x5c005c
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x52]
push eax
push esi
mov dword [ebp - 0x4e], 0x5c003f
mov dword [ebp - 0x4a], 0x4e0055
mov dword [ebp - 0x46], 0x5c0043
call dword [0x425278]
cmp dword [edi], 0x5c005c
jne 0x4126bf
add edi, 4
push edi
push esi
call dword [0x425410]
mov byte [ebp - 1], 1
push esi
call dword [0x4252e0]
lea eax, [eax*2 + 0x10]
push eax
push 8
push dword [0x425ba8]
mov dword [ebp - 0x40], eax
call dword [0x425358]
mov edi, eax
test edi, edi
jne 0x412717
mov ebx, dword [ebp - 0x40]
push 0x80
call dword [0x425428]
push ebx
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
test edi, edi
je 0x4126f4
mov ebx, dword [ebp - 0x5c]
lea eax, [edi + 8]
push esi
push eax
call dword [0x425278]
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
test ebx, ebx
je 0x41273e
push ebx
push 0
call dword [0x425060]
mov al, byte [ebp - 1]
lea esi, [edi + 8]
push esi
mov byte [edi + 2], al
call dword [0x42524c]
test al, 0x10
je 0x41278a
push esi
call dword [0x4252ec]
movzx eax, byte [0x425974]
mov byte [edi], al
movzx eax, byte [0x4256ec]
push edi
mov byte [edi + 1], al
call fcn.0040fcc0
cmp byte [edi + 1], 0
je 0x412782
push edi
mov byte [edi + 1], 0
call fcn.0040fcc0
cmp byte [edi], 0
je 0x412790
mov byte [edi], 0
push edi
call fcn.0040fcc0
test ebx, ebx
je 0x41279a
call dword [0x4251b4]
push edi
push 0
push dword [0x425ba8]
call dword [0x425290]
jmp 0x412819
mov dword [ebp - 0x34], 0x9800bf
xor eax, eax
mov dword [ebp - 0x30], 0x970080
mov dword [ebp - 0x2c], 0x9f009a
mov dword [ebp - 0x28], 0xd60092
mov dword [ebp - 0x24], 0xb700a6
mov dword [ebp - 0x20], 0xbe00a2
mov dword [ebp - 0x1c], 0xb700d6
mov dword [ebp - 0x18], 0x910084
mov dword [ebp - 0x14], 0x9b0083
mov dword [ebp - 0x10], 0x980093
mov dword [ebp - 0xc], 0xf60082
lea ebx, [ebx]
xor word [ebp + eax*2 - 0x34], di
inc eax
cmp eax, 0x16
jb 0x412800
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0040b980
add esp, 8
push dword [0x42543c]
push 0
push dword [0x425ba8]
call dword [0x425290]
jmp 0x4129bf
push 0
mov dword [0x4259bc], 0x4259b8
mov dword [0x4259b8], 0x4259b8
call fcn.00410ef0
cmp dword [0x425468], 0
je 0x4128b8
xor esi, esi
cmp dword [0x425a48], esi
jbe 0x4128b8
mov edi, dword [esi*4 + 0x425a50]
push 0
push 4
push edi
push fcn.00410ef0
push 0
push 0
call dword [0x425348]
mov dword [ebp - 8], eax
test eax, eax
je 0x4128af
test edi, edi
je 0x412894
push edi
lea eax, [ebp - 8]
push eax
call dword [0x425060]
mov eax, dword [ebp - 8]
push eax
call dword [0x425354]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [0x42523c]
push dword [ebp - 8]
call dword [0x4251e0]
inc esi
cmp esi, dword [0x425a48]
jb 0x412860
xor ebx, ebx
xor edi, edi
cmp dword [0x425820], ebx
je 0x4128de
push ebx
push ebx
push ebx
push 0x4038a0
push ebx
push ebx
call dword [0x425348]
mov edi, eax
call dword [0x425420]
mov ebx, eax
xor esi, esi
cmp dword [0x42546c], esi
je 0x4128fa
push esi
push esi
push esi
push 0x416eb0
push esi
push esi
call dword [0x425348]
mov esi, eax
call fcn.00410880
test esi, esi
je 0x412913
push 0xffffffffffffffff
push esi
call dword [0x42523c]
push esi
call dword [0x4251e0]
cmp dword [0x425820], 0
je 0x412965
test edi, edi
je 0x412930
push 0xffffffffffffffff
push edi
call dword [0x42523c]
push edi
call dword [0x4251e0]
call dword [0x425420]
sub eax, ebx
push eax
mov eax, dword [0x4259b4]
push eax
mov eax, dword [0x4259b0]
mov edx, dword [0x425a04]
add edx, dword [0x4259a8]
mov ecx, dword [0x425a00]
add ecx, dword [0x4259a4]
push eax
call fcn.004041e0
add esp, 0xc
mov esi, dword [0x4259b8]
cmp esi, 0x4259b8
je 0x4129bf
test esi, esi
je 0x4129b7
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
cmp dword [esi + 0x1c], 0
jne 0x412991
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx]
call fcn.004172a0
push dword [esi + 0x20]
push 0
push dword [0x425ba8]
call dword [0x425290]
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
mov esi, dword [0x4259b8]
cmp esi, 0x4259b8
jne 0x412973
mov dword [ebp - 0xa4], 0x8300a6
mov edi, 0xf6
mov dword [ebp - 0xa0], 0x9e0085
xor eax, eax
mov dword [ebp - 0x9c], 0x98009f
mov dword [ebp - 0x98], 0xd60091
mov dword [ebp - 0x94], 0x9900b8
mov dword [ebp - 0x90], 0x9f0082
mov dword [ebp - 0x8c], 0x9f0090
mov dword [ebp - 0x88], 0x970095
mov dword [ebp - 0x84], 0x9f0082
mov dword [ebp - 0x80], 0x980099
mov dword [ebp - 0x7c], 0xa200d6
mov dword [ebp - 0x78], 0xd60099
mov dword [ebp - 0x74], 0xd900bf
mov dword [ebp - 0x70], 0xd600b9
mov dword [ebp - 0x6c], 0x9900a1
mov dword [ebp - 0x68], 0x9d0084
mov dword [ebp - 0x64], 0x840093
mov dword [ebp - 0x60], 0xf60085
nop
xor word [ebp + eax*2 - 0xa4], di
inc eax
cmp eax, 0x24
jb 0x412a60
lea eax, [ebp - 0xa4]
push eax
push 0
call fcn.0040b980
mov eax, dword [0x4259c4]
xor esi, esi
add esp, 8
cmp dword [0x4256f4], esi
jne 0x412ab7
test eax, eax
je 0x412b28
push 0
push 0
push 0
push dword [0x4259c8]
call dword [0x4253e4]
mov eax, dword [0x4259c4]
inc esi
cmp esi, eax
jb 0x412a96
jmp 0x412b28
test eax, eax
je 0x412b28
jmp 0x412ac0
push 0xffffffffffffffff
push dword [0x4259d4]
call dword [0x42523c]
test eax, eax
jne 0x412b1e
push 0x4259e8
call dword [0x42506c]
mov ecx, dword [0x4259dc]
xor edx, edx
mov eax, dword [0x4259d0]
push 0x4259e8
mov dword [eax + ecx*4], 0
mov eax, dword [0x4259dc]
inc eax
div dword [0x4259e4]
mov dword [0x4259dc], edx
call dword [0x425280]
push 0
push 1
push dword [0x4259d8]
call dword [0x425154]
mov eax, dword [0x4259c4]
inc esi
cmp esi, eax
jb 0x412ac0
push 0xffffffffffffffff
push 1
push dword [0x4259cc]
push eax
call dword [0x4250c0]
xor esi, esi
cmp dword [0x4259c4], esi
jbe 0x412b67
jmp 0x412b50
mov eax, dword [0x4259cc]
push dword [eax + esi*4]
call dword [0x4251e0]
inc esi
cmp esi, dword [0x4259c4]
jb 0x412b50
push dword [0x4259c0]
call dword [0x4251e0]
push dword [0x4259ac]
call dword [0x4251e0]
cmp dword [0x4256f4], 0
jne 0x412b94
mov eax, dword [0x4259c8]
test eax, eax
je 0x412bcb
push eax
jmp 0x412bc5
push 0x4259e8
call dword [0x425368]
push dword [0x4259d0]
push 0
push dword [0x425ba8]
call dword [0x425290]
push dword [0x4259d4]
call dword [0x4251e0]
push dword [0x4259d8]
call dword [0x4251e0]
mov dword [ebp - 0x32], 0x9800b3
xor eax, eax
mov dword [ebp - 0x2e], 0x840095
mov dword [ebp - 0x2a], 0x86008f
mov dword [ebp - 0x26], 0x9f0082
mov dword [ebp - 0x22], 0x980099
mov dword [ebp - 0x1e], 0xb500d6
mov dword [ebp - 0x1a], 0x9b0099
mov dword [ebp - 0x16], 0x9a0086
mov dword [ebp - 0x12], 0x820093
mov dword [ebp - 0xe], 0x920093
mov word [ebp - 0xa], di
xor word [ebp + eax*2 - 0x32], di
inc eax
cmp eax, 0x15
jb 0x412c17
lea eax, [ebp - 0x32]
push eax
push 0
call fcn.0040b980
add esp, 8
push 0x80000000
call dword [0x425370]
push dword [0x4259cc]
push 0
push dword [0x425ba8]
call dword [0x425290]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret