Function at 0x415c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xchg ebp, ebp
sub esp, 0x688
lea eax, [ebp - 0x230]
sub esp, 4
mov esi, esi
mov dword [esp], 0x68df0b2a
xor dword [esp], 0x393f206a
sub dword [esp], 0x1b2d5428
mov dword [esp - 0x2c], 0x19853e1c
xor dword [esp], 0x2c6acfa3
xor dword [esp], 0x66264277
xor dword [esp], 0x7cfe5bc8
mov dword [esp - 0x24], edx
push eax
mov eax, dword [0x4c0a90]
xor eax, dword [0x4c0968]
mov dword [esp - 0x1c], 0x1e84f164
call eax
test eax, eax
je 0x416456
mov dword [ebp - 0x18], 0x4239e0bd
mov dword [esp - 0x44], 0x4d69b4ef
sub dword [ebp - 0x18], 0x2dcff7ec
add dword [ebp - 0x18], 0x24dd8984
sub dword [ebp - 0x18], 0xc2becb6
mov edi, edi
add dword [ebp - 0x18], 0x1f8c7600
sub dword [ebp - 0x18], 0x13e9c38
xor dword [ebp - 0x18], 0x55b14bca
mov edi, edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0x4397d51f
xchg edi, edi
add dword [ebp - 0x14], 0x306743af
sub dword [ebp - 0x14], 0x25c0fb59
sub dword [ebp - 0x14], 0xbf8b2c7
mov dword [esp - 0x3c], ecx
xor dword [ebp - 0x14], 0x351e3bbe
sub dword [ebp - 0x14], 0x5e7d2f79
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [esp - 0x3c], 0x942b458
mov word [ebp - 0x10], 0x98a
xor word [ebp - 0x10], 0x7067
sub word [ebp - 0x10], 0x1a88
add word [ebp - 0x10], 0x1405
mov dword [esp - 0x30], 0x1becee13
xor word [ebp - 0x10], 0x4465
sub word [ebp - 0x10], 0x191e
sub word [ebp - 0x10], 0x558
mov ax, word [ebp - 0x10]
mov dword [esp - 0x20], 0x701a1734
nop
mov dword [esp - 4], 0x1d75abc3
xor dword [esp - 4], 0x272f7550
mov dword [esp - 0x20], 0x2e0a3fd3
sub dword [esp - 4], 0x1fc9f0c2
add dword [esp - 4], 0x415c1dd6
sub dword [esp - 4], 0x5bed0b93
sub esp, 4
mov dword [esp - 0x30], 0x1cfce98f
mov word [ebp - 0x20], ax
mov dword [ebp - 8], 0x26a9795f
add dword [ebp - 8], 0x38b2f7e
sub dword [ebp - 8], 0xd26111d
mov edx, edx
xor dword [ebp - 8], 0x291e7f59
xor dword [ebp - 8], 0x3410e893
call fcn.00490c90
xchg ecx, ecx
add esp, 4
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [esp - 0x40], ebx
push edi
lea esp, [esp]
movsx cx, byte [ebp + edx - 0x28]
mov word [eax + edx*2], cx
xchg ebp, ebp
inc edx
mov edi, dword [ebp - 8]
cmp edx, edi
jb 0x415de9
mov dword [esp - 0x28], 0x19044490
cmp edi, 2
lea eax, [ebp - 0xc]
pushf
mov dword [esp - 0x18], 0x471d208b
mov ecx, 0x2365ace2
add ecx, 0x5513666
sub ecx, 0x20dbd3a6
xchg ebp, ebp
xor ecx, 0x51d602f6
sub ecx, 0x26a23b7d
sub ecx, 0x2f6ad1d5
popf
mov ebx, ebx
cmova eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea eax, [edi + 1]
mov dword [esp - 0x1c], ebx
mul ecx
push ebx
pushf
mov ecx, 0xa60c055
mov dword [esp - 0x34], 0x38e1a123
xor ecx, 0x3f97c7da
xor ecx, 0x4f1cd1a5
sub ecx, 0x9fcf0a4
sub ecx, 0x2f252d59
mov edi, edi
add ecx, 0xbe3647d2
popf
cmovb eax, ecx
push esi
mov dword [esp - 0x44], 0x642809e8
push eax
call fcn.00490c90
add esp, 4
xchg esi, esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x1c], esi
test edi, edi
mov dword [esp - 0x3c], edi
je 0x415f07
sub dword [ebp - 4], esi
mov edx, esi
mov esi, dword [ebp - 4]
mov ebx, ebx
nop
mov ecx, ebx
lea edx, [edx + 2]
mov dword [esp - 0x10], ebx
and ecx, 3
mov eax, 0x1418e272
add eax, 0x1a68cc9e
mov dword [esp - 0x44], esi
xor eax, 0x79f1b394
sub eax, 0x42fa3a83
add eax, 0x3696c4de
xchg ecx, ecx
xor eax, 0x30a6e22e
shl ecx, 3
inc ebx
mov dword [esp - 0x3c], esp
sar eax, cl
cbw
xor ax, word [edx + esi - 2]
mov edi, edi
mov word [edx - 2], ax
cmp ebx, edi
jb 0x415eb1
mov dword [esp - 0x20], 0x3634a65c
mov esi, dword [ebp - 0x1c]
xor eax, eax
push esi
xchg esp, esp
mov word [esi + edi*2], ax
lea eax, [ebp - 0x230]
sub esp, 4
xchg esi, esi
mov dword [esp], 0x29b02844
add dword [esp], 0x16bb23d5
add dword [esp], 0xc3bab26
xor dword [esp], 0x29223a5b
mov edx, edx
add dword [esp], 0x10d07fc6
xor dword [esp], 0x76554c2e
push eax
mov ebp, ebp
call fcn.004914e0
push esi
call fcn.00490c60
mov dword [esp - 0x34], 0x5aaef44b
add esp, 0x10
cmp edi, 2
jbe 0x415f74
mov dword [esp - 0x10], esi
push dword [ebp - 0xc]
call fcn.00490c60
add esp, 4
lea ecx, [ebp - 0x230]
mov dword [esp - 0x24], edx
mov dword [ebp - 0x28], 0x1c413264
xor dword [ebp - 0x28], 0x19db2b09
add dword [ebp - 0x28], 0x716e554b
sub dword [ebp - 0x28], 0x4ba4787b
mov dword [esp - 0x2c], esp
add dword [ebp - 0x28], 0x78cad93
add dword [ebp - 0x28], 0x2d9bec6a
sub dword [ebp - 0x28], 0x608c903a
mov dword [esp - 0x1c], 0x4d8a2a3d
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
mov dword [esp - 0x44], 0x65c63641
jne 0x415fbe
sub ecx, edx
lea edx, [ebp - 0x28]
sar ecx, 1
mov dword [esp - 0x14], ecx
mov dword [ebp - 0x24], ecx
cmp ecx, 2
jbe 0x416070
mov dword [esp - 0xc], 0x546d5d7d
mov eax, ecx
mov ecx, 0x5a19cb24
xor ecx, 0x97f0e5f
sub ecx, 0x2f949afd
mov dword [esp - 0x28], esp
sub ecx, 0x1ef16e3d
xor ecx, 0x4e0bc43
mul ecx
mov dword [esp - 0x3c], ecx
pushf
mov ecx, 0x2e94150d
add ecx, 0x29f4b9f9
sub ecx, 0x56a1008
mov dword [esp - 0x28], 0x64014886
xor ecx, 0x5129049d
add ecx, 0x2a6d1e9a
xor ecx, 0x690f0015
add ecx, 0xba542717
mov ebx, ebx
popf
cmovb eax, ecx
push eax
mov dword [esp - 0x24], 0x7006e106
call fcn.00490c90
mov ecx, dword [ebp - 0x24]
mov edx, eax
add esp, 4
mov dword [esp - 0x20], edx
mov dword [ebp - 0x28], edx
xor esi, esi
test ecx, ecx
mov dword [esp - 0x24], 0x6799629e
je 0x4160d7
lea edi, [ebp - 0x230]
sub edi, edx
xchg esp, esp
mov ecx, esi
lea edx, [edx + 2]
and ecx, 3
mov eax, 0x1f7390bd
xchg esp, esp
add eax, 0x6598c5d
add eax, 0x1baff6d
xor eax, 0x5354eca
sub eax, 0x1d56974b
mov edi, edi
xor eax, 0x12678db0
add eax, 0x64a90e3f
shl ecx, 3
inc esi
mov dword [esp - 0x40], 0x507b7963
sar eax, cl
cbw
xor ax, word [edi + edx - 2]
xchg ebx, ebx
mov word [edx - 2], ax
cmp esi, dword [ebp - 0x24]
jb 0x416088
mov dword [ebp - 4], 0xf4ea5c2
mov esp, esp
sub dword [ebp - 4], 0xd7488cf
add dword [ebp - 4], 0x51010a43
add dword [ebp - 4], 0xcf6bd9b
sub dword [ebp - 4], 0x17d0efa
mov ecx, ecx
xor dword [ebp - 4], 0x22de00b0
xor dword [ebp - 4], 0x6150bfbc
mov eax, dword [ebp - 4]
mov dword [esp - 0x1c], edi
nop
mov dword [esp - 4], 0x3daaff1a
xor dword [esp - 4], 0x2b98813
add dword [esp - 4], 0xa5dff1f
mov dword [esp - 0x18], 0x2f9921ec
sub dword [esp - 4], 0x3f146f73
add dword [esp - 4], 0x451fa314
xor dword [esp - 4], 0x76e2a990
xor dword [esp - 4], 0x399e0051
mov dword [esp - 0x28], 0x40b439a9
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0x4f371b62
xchg ecx, ecx
sub dword [ebp - 8], 0x1d27e5c9
sub dword [ebp - 8], 0x3c3d2d4
xor dword [ebp - 8], 0x3c271ff2
mov esp, esp
sub dword [ebp - 8], 0x15c8c7c
sub dword [ebp - 8], 0x110ff0b7
call fcn.00490c90
xor ecx, ecx
xchg ecx, ecx
add esp, 4
mov edx, eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], ecx
mov ebp, ebp
jbe 0x4161c5
lea ecx, [ecx]
movsx ax, byte [ebp + ecx - 0x1c]
xchg ebx, ebx
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, dword [ebp - 8]
mov dword [esp - 0x20], 0x6596c696
jb 0x4161ab
lea eax, [ebp - 0xc]
push eax
xchg edi, edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
mov esp, esp
push eax
call fcn.00484df0
mov ebx, eax
add esp, 0xc
mov dword [esp - 0x2c], edi
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
cmp eax, 2
jbe 0x4161f2
xchg ecx, ecx
mov ebx, dword [ebx]
inc eax
mov ecx, 0x57edbfa8
xchg ecx, ecx
xor ecx, 0x4c7cb218
sub ecx, 0xcc304bb
add ecx, 0x486a5e06
mov dword [esp - 0x3c], esi
xor ecx, 0x573866f9
mul ecx
pushf
mov ecx, 0x4e2a00d6
mov ebp, ebp
sub ecx, 0x4d4ca83d
xor ecx, 0x1a29250e
xor ecx, 0x508fe259
add ecx, 0xb5846031
mov dword [esp - 0x24], 0x229bdf3c
popf
cmovb eax, ecx
push eax
mov dword [esp - 0xc], 0x5dd311d0
call fcn.00490c90
mov esi, eax
add esp, 4
mov eax, dword [ebp - 4]
mov esi, esi
xor edi, edi
mov dword [ebp - 0x1c], esi
test eax, eax
mov dword [esp - 0x10], 0x7a0a46b6
je 0x4162ce
mov edx, esi
sub ebx, esi
mov esi, eax
mov edx, edx
mov ecx, edi
lea edx, [edx + 2]
and ecx, 3
mov dword [esp - 0xc], edx
mov eax, 0x493e4bcf
add eax, 0x9ac5ded
add eax, 0x3cf98ea
xor eax, 0x67d67cd6
mov dword [esp - 0x20], 0x42a1cb4
add eax, 0x382577ce
xor eax, 0x123bf2cf
shl ecx, 3
inc edi
mov dword [esp - 0x20], ebp
sar eax, cl
cbw
xor ax, word [edx + ebx - 2]
mov word [edx - 2], ax
mov dword [esp - 0xc], esi
cmp edi, esi
jb 0x416277
mov esi, dword [ebp - 0x1c]
mov ecx, ecx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, esi
lea eax, [ebp - 0x480]
push eax
mov eax, dword [0x4c0a58]
xor eax, dword [0x4c0968]
mov dword [esp - 0x2c], edi
push esi
call eax
push esi
mov edi, eax
mov dword [esp - 0x34], ecx
call fcn.00490c60
add esp, 4
cmp dword [ebp - 0x14], 2
pop esi
mov ebx, ebx
pop ebx
jbe 0x416315
push dword [ebp - 0x18]
mov esi, esi
call fcn.00490c60
add esp, 4
cmp dword [ebp - 8], 2
jbe 0x41632a
mov edi, edi
push dword [ebp - 0xc]
call fcn.00490c60
add esp, 4
xchg ebp, ebp
cmp dword [ebp - 0x24], 2
jbe 0x416343
push dword [ebp - 0x28]
mov dword [esp - 0x30], 0x650adee9
call fcn.00490c60
add esp, 4
cmp edi, 0xffffffff
je 0x416455
mov esp, esp
lea esp, [esp]
test byte [ebp - 0x480], 0x10
jne 0x416420
lea eax, [ebp - 0x230]
mov edi, edi
push eax
lea eax, [ebp - 0x688]
nop
mov dword [esp - 4], 0x53e6a995
mov esi, esi
xor dword [esp - 4], 0x3997691f
sub dword [esp - 4], 0x40b3201b
xor dword [esp - 4], 0x7d2ff4c7
sub dword [esp - 4], 0xa8a827b
mov esi, esi
add dword [esp - 4], 0x6bfa008
sub dword [esp - 4], 0x50c67131
sub esp, 4
mov esi, esi
push eax
call fcn.00491620
lea eax, [ebp - 0x454]
mov dword [esp - 0xc], 0x2bf9777b
push eax
lea eax, [ebp - 0x688]
sub esp, 4
mov dword [esp], 0x27a6f75f
mov ebx, ebx
xor dword [esp], 0x1c980e5a
add dword [esp], 0x3ee217ee
sub dword [esp], 0x55f7e559
sub dword [esp], 0x24292a96
mov dword [esp - 0x3c], edi
push eax
call fcn.004914e0
add esp, 0x18
lea eax, [ebp - 0x688]
mov dword [esp - 0x24], esi
push eax
mov eax, dword [0x4c0a20]
xor eax, dword [0x4c0968]
call eax
mov dword [esp - 0x18], 0x22b3d94e
lea eax, [ebp - 0x480]
push eax
mov eax, dword [0x4c0a60]
xor eax, dword [0x4c0968]
mov dword [esp - 0x1c], ebp
push edi
call eax
test eax, eax
jne 0x416352
mov ebp, ebp
mov eax, dword [0x4c0a68]
xor eax, dword [0x4c0968]
push edi
call eax
mov dword [esp - 0x30], edx
pop edi
mov esp, ebp
pop ebp
mov dword [esp - 0xc], edx
ret