Function at 0x410276
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov dword [esp], 0x7e9
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xb4]
cmp eax, 3
ja 0x40e945
nop
nop
nop
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb4]
movzx ecx, byte [esp + ecx]
lea edx, [eax + 0x3cdd0fc1]
lea esi, [eax + ecx]
add esi, 0x3cdd0fc1
add eax, 0xc1
or eax, edx
and eax, ecx
add eax, eax
sub esi, eax
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x48]
add al, 0x3b
mov ecx, dword [esp + 0xb4]
mov byte [esp + ecx], al
inc dword [esp + 0xb4]
mov eax, dword [esp + 0xb4]
cmp eax, 4
jb 0x40e8f0
mov eax, esp
push eax
push dword [ebp + 8]
call fcn.00402fd0
add esp, 8
mov esi, eax
xor ecx, ecx
test eax, eax
sete cl
xor eax, eax
jmp dword [ecx*4 + 0x43b554]
lea ebx, [esp + 0x4a]
xor edi, edi
mov dword [esp + 0x130], esi
jmp 0x40e98f
mov edi, dword [esp + 0x134]
inc edi
mov esi, dword [esp + 0x130]
push esi
call fcn.00403510
add esp, 4
xor ecx, ecx
cmp edi, eax
setb cl
mov al, 1
jmp dword [ecx*4 + 0x43b55c]
mov dword [esp + 0x134], edi
push edi
push esi
call fcn.00403520
add esp, 8
mov esi, eax
mov dword [esp + 0x48], 0xeb70
mov byte [esp + 0x4c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40ea14
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x48]
add eax, 0xfccf6a57
xor eax, ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
add al, 0x4d
mov ecx, dword [esp]
mov byte [esp + ecx + 0x48], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40e9e0
push 3
lea edi, [esp + 0x4c]
push edi
push esi
call fcn.004033f0
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
jmp dword [ecx*4 + 0x43b564]
mov word [esp + 0x48], 0x118c
mov dword [esp + 0x4a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x40ea91
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x48]
lea edx, [eax + ecx]
add eax, 0xc4
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x35a832c4
mov dword [esp + 0xb4], edx
mov eax, dword [esp + 0xb4]
add al, 0x2c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x48], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb case.default.0x40eadb
push edi
push esi
call fcn.00402ea0
add esp, 8
fnstcw word [esp + 0x106]
movzx eax, word [esp + 0x106]
or eax, 0xc00
mov word [esp + 0x116], ax
fldcw word [esp + 0x116]
fistp dword [esp + 0x148]
fldcw word [esp + 0x106]
mov eax, dword [esp + 0x148]
xor ecx, ecx
cmp eax, 2
setl cl
jmp dword [ecx*4 + 0x43b56c]
xor ecx, ecx
cmp eax, 3
setl cl
jmp dword [ecx*4 + 0x43b574]
sete al
movzx eax, al
jmp dword [eax*4 + 0x43b57c]
mov word [esp + 0x48], 0x4bd5
mov byte [ebx + 2], 0
mov word [ebx], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40eb54
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x48]
add eax, 0x874a1a73
xor eax, ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
add al, 0xc1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x48], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40eb20
push 2
push edi
push esi
call fcn.004033f0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43b62c]
mov word [esp + 0xb4], 0xcb5c
lea eax, [esp + 0xb6]
mov word [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, 7
ja 0x40ebd9
nop
nop
nop
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx + 0xb4]
add eax, 0x9e6df33
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
inc al
mov ecx, dword [esp + 0x14]
mov byte [esp + ecx + 0xb4], al
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 8
jb 0x40eba0
push 2
lea eax, [esp + 0xb8]
push eax
push esi
call fcn.004033f0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43b634]
mov word [esp], 0x2793
lea eax, [esp + 2]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, 6
ja 0x40ec51
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx]
add eax, 0xa862fc9
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x13
mov ecx, dword [esp + 0x14]
mov byte [esp + ecx], al
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 7
jb 0x40ec20
push 5
lea eax, [esp + 4]
push eax
push esi
call fcn.004033f0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43b63c]
mov word [esp + 0x38], 0x813a
lea eax, [esp + 0x39]
mov byte [eax + 3], 0
mov word [eax + 1], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, 4
ja 0x40ecd3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx + 0x38]
add eax, 0xbb302ea0
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xe0
mov ecx, dword [esp + 0x14]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 5
jb 0x40eca0
push 2
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004033f0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43b644]
mov dword [esp + 0x110], 0x399c
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, 3
ja 0x40ed5e
nop
nop
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx + 0x110]
lea edx, [eax - 0x5faafe76]
lea edi, [eax + ecx]
add edi, 0xa055018a
add eax, 0x8a
or eax, edx
and eax, ecx
add eax, eax
sub edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
add al, 0x4e
mov ecx, dword [esp + 0x14]
mov byte [esp + ecx + 0x110], al
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 4
jb 0x40ed10
push 3
lea eax, [esp + 0x114]
push eax
push esi
call fcn.004033f0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
lea edi, [esp + 0x48]
jmp dword [ecx*4 + 0x43b64c]
mov eax, dword [case.0x40f06f.1]
nop
nop
nop
nop
nop
nop
nop
nop
jmp eax
xor ecx, ecx
test eax, eax
setle cl
jmp dword [ecx*4 + 0x43b584]
mov word [esp + 0x48], 0x6110
mov word [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40efe4
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x48]
add eax, 0xcbf52668
xor eax, ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
add al, 0xf8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x48], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40efb0
push edi
push esi
call fcn.00402d70
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp], 0x873e
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xb4]
cmp eax, 3
ja 0x40f050
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb4]
movzx ecx, byte [esp + ecx]
add eax, 0x67f15821
xor eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
add al, 0x5b
mov ecx, dword [esp + 0xb4]
mov byte [esp + ecx], al
inc dword [esp + 0xb4]
mov eax, dword [esp + 0xb4]
cmp eax, 4
jb case.default.0x40f06f
mov eax, esp
push eax
push esi
call fcn.00402d70
add esp, 8
mov esi, dword [esp + 0x18]
test esi, esi
sete dl
test eax, eax
sete cl
or cl, dl
movzx ecx, cl
jmp dword [ecx*4 + 0x43b7b4]
mov ecx, esi
mov edx, esi
nop
nop
nop
nop
nop
nop
mov edi, ecx
inc ecx
cmp byte [edi], 0
jne 0x40f080
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp edi, edx
jbe 0x40f0c7
cmp byte [edx], 0
je 0x40f0c7
xor ebx, ebx
mov esi, dword [esp + 0x18]
nop
nop
nop
mov dword [esp + 0x48], 0
lea eax, [esp + 0x48]
push eax
push edi
push esi
call fcn.0040d410
add esp, 0xc
lea ecx, [esi + eax]
inc ebx
cmp ecx, edi
jae 0x40f0c7
cmp byte [esi + eax], 0
mov esi, ecx
jne 0x40f0a0
mov eax, ebx
inc eax
lea eax, [ebx + ebx + 2]
jns 0x40f0d5
mov eax, 0xffffffff
push eax
call fcn.004095a0
add esp, 4
mov dword [esp + 0x48], 0
lea ecx, [eax + ebx*2]
mov ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ecx
cmp eax, ecx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jae 0x40fc4b
mov ebx, dword [esp + 0x20]
cmp esi, edi
jae 0x40fc4b
mov ebx, dword [esp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [esi], 0
je 0x40fc4b
lea eax, [esp + 0x48]
push eax
push edi
push esi
call fcn.0040d410
add esp, 0xc
movzx ecx, word [esp + 0x48]
mov word [ebx], cx
add ebx, 2
cmp ebx, dword [esp + 0xc]
jae 0x40fc47
add esi, eax
cmp esi, edi
mov eax, dword [esp + 0x1c]
jb 0x40f120
jmp 0x40fc4b
mov eax, dword [esp + 0x1c]
mov word [ebx], 0
xor esi, esi
mov edi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edi, 2
cmp byte [eax + esi], 0
lea esi, [esi + 1]
jne 0x40fc60
lea eax, [edi + 2]
test esi, esi
jns 0x40fc78
mov eax, 0xffffffff
push eax
call fcn.004095a0
add esp, 4
mov dword [esp + 0x48], 0
add edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x40], eax
cmp eax, edi
mov ecx, dword [esp + 0x1c]
jae 0x40fcf5
lea ebx, [ecx + esi]
dec ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
cmp ecx, ebx
jae 0x40fcf5
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [ecx], 0
je 0x40fcf5
lea eax, [esp + 0x48]
push eax
push ebx
push ecx
mov esi, ecx
call fcn.0040d410
add esp, 0xc
movzx ecx, word [esp + 0x48]
mov edx, dword [esp + 0xc]
mov word [edx], cx
add edx, 2
mov dword [esp + 0xc], edx
cmp edx, edi
jae 0x40fcf5
add esi, eax
cmp esi, ebx
mov ecx, esi
jb 0x40fcc0
mov eax, dword [esp + 0xc]
mov word [eax], 0
mov word [esp + 0x48], 0x83ff
mov byte [esp + 0x4a], 0xa
mov word [esp + 0x4b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40fd54
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x48]
add eax, 0xbf2ec0c3
xor eax, ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
add al, 0x31
mov ecx, dword [esp]
mov byte [esp + ecx + 0x48], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb case.default.0x40fd83
lea edi, [esp + 0x48]
push edi
push dword [ebp + 8]
call fcn.00402fd0
add esp, 8
xor ecx, ecx
mov dword [esp + 0x34], eax
test eax, eax
setne cl
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ebx, [esp + 0x4a]
jmp dword [ecx*4 + 0x43b7bc]
mov ecx, edi
push 3
call fcn.00409ea0
push dword [esp + 0x28]
mov esi, dword [esp + 0x28]
push esi
push dword [esp + 0x48]
push dword [esp + 0x2c]
push edi
call fcn.00415cf0
add esp, 0x14
mov ecx, edi
call fcn.0040a760
xor eax, eax
test esi, esi
sete al
jmp dword [eax*4 + 0x43b7dc]
push dword [esp + 0x34]
call fcn.00403510
add esp, 4
mov ecx, eax
mov dword [esp + 0x28], eax
mov ecx, 0xc
mul ecx
seto dl
mov ecx, 0xffffffff
mov esi, 0xffffffff
add eax, 4
jb 0x40feb8
mov esi, eax
test dl, dl
jne 0x40febe
mov ecx, esi
push ecx
call fcn.004095a0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x24], eax
xor eax, eax
test ecx, ecx
sete al
jmp dword [eax*4 + 0x43b7c4]
mov eax, dword [esp + 0x28]
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
add ecx, 0xc
xor edx, edx
cmp ecx, eax
sete dl
jmp dword [edx*4 + 0x43b7cc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
add ecx, 0xc
xor edx, edx
cmp ecx, eax
sete dl
jmp dword [edx*4 + 0x43b7cc]
xor ecx, ecx
xor eax, eax
cmp ecx, dword [esp + 0x28]
setb al
jmp dword [eax*4 + 0x43b7d4]
jmp dword [0x43b658]
mov word [esp + 0x2c], 0xe6f6
mov byte [esp + 0x2e], 0x9a
lea eax, [esp + 0x2f]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, 7
ja 0x410243
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx + 0x2c]
add eax, 0xad7cd39b
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xf9
mov ecx, dword [esp + 0x14]
mov byte [esp + ecx + 0x2c], al
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 8
jb 0x410210
push 3
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004033f0
add esp, 0xc
jmp case.0x40ed7c.3
push 3
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004033f0
add esp, 0xc
jmp dword [0x43b65c]
mov word [esp + 0x2c], 0xe6f6
mov byte [esp + 0x2e], 0x9a
lea eax, [esp + 0x2f]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, 7
ja 0x410260
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx + 0x2c]
add eax, 0xad7cd39b
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xf9
mov ecx, dword [esp + 0x14]
mov byte [esp + ecx + 0x2c], al
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 8
jb 0x4102b0
jmp 0x410260
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret