Function at 0x1005801f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x10058ae3
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x410], 0x1021
mov dword [ebp - 0x40c], 0x2042
mov dword [ebp - 0x408], 0x3063
mov dword [ebp - 0x404], 0x4084
mov dword [ebp - 0x400], 0x50a5
mov dword [ebp - 0x3fc], 0x60c6
mov dword [ebp - 0x3f8], 0x70e7
mov dword [ebp - 0x3f4], 0x8108
mov dword [ebp - 0x3f0], 0x9129
mov dword [ebp - 0x3ec], 0xa14a
mov dword [ebp - 0x3e8], 0xb16b
mov dword [ebp - 0x3e4], 0xc18c
mov dword [ebp - 0x3e0], 0xd1ad
mov dword [ebp - 0x3dc], 0xe1ce
mov dword [ebp - 0x3d8], 0xf1ef
mov dword [ebp - 0x3d4], 0x1231
mov dword [ebp - 0x3d0], 0x210
mov dword [ebp - 0x3cc], 0x3273
mov dword [ebp - 0x3c8], 0x2252
mov dword [ebp - 0x3c4], 0x52b5
mov dword [ebp - 0x3c0], 0x4294
mov dword [ebp - 0x3bc], 0x72f7
mov dword [ebp - 0x3b8], 0x62d6
mov dword [ebp - 0x3b4], 0x9339
mov dword [ebp - 0x3b0], 0x8318
mov dword [ebp - 0x3ac], 0xb37b
mov dword [ebp - 0x3a8], 0xa35a
mov dword [ebp - 0x3a4], 0xd3bd
mov dword [ebp - 0x3a0], 0xc39c
mov dword [ebp - 0x39c], 0xf3ff
mov dword [ebp - 0x398], 0xe3de
mov dword [ebp - 0x394], 0x2462
mov dword [ebp - 0x390], 0x3443
mov dword [ebp - 0x38c], 0x420
mov dword [ebp - 0x388], 0x1401
mov dword [ebp - 0x384], 0x64e6
mov dword [ebp - 0x380], 0x74c7
mov dword [ebp - 0x37c], 0x44a4
mov dword [ebp - 0x378], 0x5485
mov dword [ebp - 0x374], 0xa56a
mov dword [ebp - 0x370], 0xb54b
mov dword [ebp - 0x36c], 0x8528
mov dword [ebp - 0x368], 0x9509
mov dword [ebp - 0x364], 0xe5ee
mov dword [ebp - 0x360], 0xf5cf
mov dword [ebp - 0x35c], 0xc5ac
mov dword [ebp - 0x358], 0xd58d
mov dword [ebp - 0x354], 0x3653
mov dword [ebp - 0x350], 0x2672
mov dword [ebp - 0x34c], 0x1611
mov dword [ebp - 0x348], 0x630
mov dword [ebp - 0x344], 0x76d7
mov dword [ebp - 0x340], 0x66f6
mov dword [ebp - 0x33c], 0x5695
mov dword [ebp - 0x338], 0x46b4
mov dword [ebp - 0x334], 0xb75b
mov dword [ebp - 0x330], 0xa77a
mov dword [ebp - 0x32c], 0x9719
mov dword [ebp - 0x328], 0x8738
mov dword [ebp - 0x324], 0xf7df
mov dword [ebp - 0x320], 0xe7fe
mov dword [ebp - 0x31c], 0xd79d
mov dword [ebp - 0x318], 0xc7bc
mov dword [ebp - 0x314], 0x48c4
mov dword [ebp - 0x310], 0x58e5
mov dword [ebp - 0x30c], 0x6886
mov dword [ebp - 0x308], 0x78a7
mov dword [ebp - 0x304], 0x840
mov dword [ebp - 0x300], 0x1861
mov dword [ebp - 0x2fc], 0x2802
mov dword [ebp - 0x2f8], 0x3823
mov dword [ebp - 0x2f4], 0xc9cc
mov dword [ebp - 0x2f0], 0xd9ed
mov dword [ebp - 0x2ec], 0xe98e
mov dword [ebp - 0x2e8], 0xf9af
mov dword [ebp - 0x2e4], 0x8948
mov dword [ebp - 0x2e0], 0x9969
mov dword [ebp - 0x2dc], 0xa90a
mov dword [ebp - 0x2d8], 0xb92b
mov dword [ebp - 0x2d4], 0x5af5
mov dword [ebp - 0x2d0], 0x4ad4
mov dword [ebp - 0x2cc], 0x7ab7
mov dword [ebp - 0x2c8], 0x6a96
mov dword [ebp - 0x2c4], 0x1a71
mov dword [ebp - 0x2c0], 0xa50
mov dword [ebp - 0x2bc], 0x3a33
mov dword [ebp - 0x2b8], 0x2a12
mov dword [ebp - 0x2b4], 0xdbfd
mov dword [ebp - 0x2b0], 0xcbdc
mov dword [ebp - 0x2ac], 0xfbbf
mov dword [ebp - 0x2a8], 0xeb9e
mov dword [ebp - 0x2a4], 0x9b79
mov dword [ebp - 0x2a0], 0x8b58
mov dword [ebp - 0x29c], 0xbb3b
mov dword [ebp - 0x298], 0xab1a
mov dword [ebp - 0x294], 0x6ca6
mov dword [ebp - 0x290], 0x7c87
mov dword [ebp - 0x28c], 0x4ce4
mov dword [ebp - 0x288], 0x5cc5
mov dword [ebp - 0x284], 0x2c22
mov dword [ebp - 0x280], 0x3c03
mov dword [ebp - 0x27c], 0xc60
mov dword [ebp - 0x278], 0x1c41
mov dword [ebp - 0x274], 0xedae
mov dword [ebp - 0x270], 0xfd8f
mov dword [ebp - 0x26c], 0xcdec
mov dword [ebp - 0x268], 0xddcd
mov dword [ebp - 0x264], 0xad2a
mov dword [ebp - 0x260], 0xbd0b
mov dword [ebp - 0x25c], 0x8d68
mov dword [ebp - 0x258], 0x9d49
mov dword [ebp - 0x254], 0x7e97
mov dword [ebp - 0x250], 0x6eb6
mov dword [ebp - 0x24c], 0x5ed5
mov dword [ebp - 0x248], 0x4ef4
mov dword [ebp - 0x244], 0x3e13
mov dword [ebp - 0x240], 0x2e32
mov dword [ebp - 0x23c], 0x1e51
mov dword [ebp - 0x238], 0xe70
mov dword [ebp - 0x234], 0xff9f
mov dword [ebp - 0x230], 0xefbe
mov dword [ebp - 0x22c], 0xdfdd
mov dword [ebp - 0x228], 0xcffc
mov dword [ebp - 0x224], 0xbf1b
mov dword [ebp - 0x220], 0xaf3a
mov dword [ebp - 0x21c], 0x9f59
mov dword [ebp - 0x218], 0x8f78
mov dword [ebp - 0x214], 0x9188
mov dword [ebp - 0x210], 0x81a9
mov dword [ebp - 0x20c], 0xb1ca
mov dword [ebp - 0x208], 0xa1eb
mov dword [ebp - 0x204], 0xd10c
mov dword [ebp - 0x200], 0xc12d
mov dword [ebp - 0x1fc], 0xf14e
mov dword [ebp - 0x1f8], 0xe16f
mov dword [ebp - 0x1f4], 0x1080
mov dword [ebp - 0x1f0], 0xa1
mov dword [ebp - 0x1ec], 0x30c2
mov dword [ebp - 0x1e8], 0x20e3
mov dword [ebp - 0x1e4], 0x5004
mov dword [ebp - 0x1e0], 0x4025
mov dword [ebp - 0x1dc], 0x7046
mov dword [ebp - 0x1d8], 0x6067
mov dword [ebp - 0x1d4], 0x83b9
mov dword [ebp - 0x1d0], 0x9398
mov dword [ebp - 0x1cc], 0xa3fb
mov dword [ebp - 0x1c8], 0xb3da
mov dword [ebp - 0x1c4], 0xc33d
mov dword [ebp - 0x1c0], 0xd31c
mov dword [ebp - 0x1bc], 0xe37f
mov dword [ebp - 0x1b8], 0xf35e
mov dword [ebp - 0x1b4], 0x2b1
mov dword [ebp - 0x1b0], 0x1290
mov dword [ebp - 0x1ac], 0x22f3
mov dword [ebp - 0x1a8], 0x32d2
mov dword [ebp - 0x1a4], 0x4235
mov dword [ebp - 0x1a0], 0x5214
mov dword [ebp - 0x19c], 0x6277
mov dword [ebp - 0x198], 0x7256
mov dword [ebp - 0x194], 0xb5ea
mov dword [ebp - 0x190], 0xa5cb
mov dword [ebp - 0x18c], 0x95a8
mov dword [ebp - 0x188], 0x8589
mov dword [ebp - 0x184], 0xf56e
mov dword [ebp - 0x180], 0xe54f
mov dword [ebp - 0x17c], 0xd52c
mov dword [ebp - 0x178], 0xc50d
mov dword [ebp - 0x174], 0x34e2
mov dword [ebp - 0x170], 0x24c3
mov dword [ebp - 0x16c], 0x14a0
mov dword [ebp - 0x168], 0x481
mov dword [ebp - 0x164], 0x7466
mov dword [ebp - 0x160], 0x6447
mov dword [ebp - 0x15c], 0x5424
mov dword [ebp - 0x158], 0x4405
mov dword [ebp - 0x154], 0xa7db
mov dword [ebp - 0x150], 0xb7fa
mov dword [ebp - 0x14c], 0x8799
mov dword [ebp - 0x148], 0x97b8
mov dword [ebp - 0x144], 0xe75f
mov dword [ebp - 0x140], 0xf77e
mov dword [ebp - 0x13c], 0xc71d
mov dword [ebp - 0x138], 0xd73c
mov dword [ebp - 0x134], 0x26d3
mov dword [ebp - 0x130], 0x36f2
mov dword [ebp - 0x12c], 0x691
mov dword [ebp - 0x128], 0x16b0
mov dword [ebp - 0x124], 0x6657
mov dword [ebp - 0x120], 0x7676
mov dword [ebp - 0x11c], 0x4615
mov dword [ebp - 0x118], 0x5634
mov dword [ebp - 0x114], 0xd94c
mov dword [ebp - 0x110], 0xc96d
mov dword [ebp - 0x10c], 0xf90e
mov dword [ebp - 0x108], 0xe92f
mov dword [ebp - 0x104], 0x99c8
mov dword [ebp - 0x100], 0x89e9
mov dword [ebp - 0xfc], 0xb98a
mov dword [ebp - 0xf8], 0xa9ab
mov dword [ebp - 0xf4], 0x5844
mov dword [ebp - 0xf0], 0x4865
mov dword [ebp - 0xec], 0x7806
mov dword [ebp - 0xe8], 0x6827
mov dword [ebp - 0xe4], 0x18c0
mov dword [ebp - 0xe0], 0x8e1
mov dword [ebp - 0xdc], 0x3882
mov dword [ebp - 0xd8], 0x28a3
mov dword [ebp - 0xd4], 0xcb7d
mov dword [ebp - 0xd0], 0xdb5c
mov dword [ebp - 0xcc], 0xeb3f
mov dword [ebp - 0xc8], 0xfb1e
mov dword [ebp - 0xc4], 0x8bf9
mov dword [ebp - 0xc0], 0x9bd8
mov dword [ebp - 0xbc], 0xabbb
mov dword [ebp - 0xb8], 0xbb9a
mov dword [ebp - 0xb4], 0x4a75
mov dword [ebp - 0xb0], 0x5a54
mov dword [ebp - 0xac], 0x6a37
mov dword [ebp - 0xa8], 0x7a16
mov dword [ebp - 0xa4], 0xaf1
mov dword [ebp - 0xa0], 0x1ad0
mov dword [ebp - 0x9c], 0x2ab3
mov dword [ebp - 0x98], 0x3a92
mov dword [ebp - 0x94], 0xfd2e
mov dword [ebp - 0x90], 0xed0f
mov dword [ebp - 0x8c], 0xdd6c
mov dword [ebp - 0x88], 0xcd4d
mov dword [ebp - 0x84], 0xbdaa
mov dword [ebp - 0x80], 0xad8b
mov dword [ebp - 0x7c], 0x9de8
mov dword [ebp - 0x78], 0x8dc9
mov dword [ebp - 0x74], 0x7c26
mov dword [ebp - 0x70], 0x6c07
mov dword [ebp - 0x6c], 0x5c64
mov dword [ebp - 0x68], 0x4c45
mov dword [ebp - 0x64], 0x3ca2
mov dword [ebp - 0x60], 0x2c83
mov dword [ebp - 0x5c], 0x1ce0
mov dword [ebp - 0x58], 0xcc1
mov dword [ebp - 0x54], 0xef1f
mov dword [ebp - 0x50], 0xff3e
mov dword [ebp - 0x4c], 0xcf5d
mov dword [ebp - 0x48], 0xdf7c
mov dword [ebp - 0x44], 0xaf9b
mov dword [ebp - 0x40], 0xbfba
mov dword [ebp - 0x3c], 0x8fd9
mov dword [ebp - 0x38], 0x9ff8
mov dword [ebp - 0x34], 0x6e17
mov dword [ebp - 0x30], 0x7e36
mov dword [ebp - 0x2c], 0x4e55
mov dword [ebp - 0x28], 0x5e74
mov dword [ebp - 0x24], 0x2e93
mov dword [ebp - 0x20], 0x3eb2
mov dword [ebp - 0x1c], 0xed1
mov dword [ebp - 0x18], 0x1ef0
mov dword [ebp + 8], esi
xor eax, eax
movzx ecx, byte [eax + 0x10028ae0]
xor edx, edx
mov dl, byte [ebp + 9]
movzx edx, dl
xor ecx, edx
xor edx, edx
mov dh, byte [ebp + 8]
mov cx, word [ebp + ecx*4 - 0x414]
xor cx, dx
inc eax
cmp eax, 0x17
mov dword [ebp + 8], ecx
jl 0x100589e8
mov ebx, dword [fcn.100211b8]
lea eax, [ebp - 0x10]
push esi
push eax
push esi
mov dword [ebp - 0x14], esi
push dword [edi]
mov dword [ebp - 0x10], esi
call ebx
cmp eax, 0xffffffff
jne 0x10058a32
call fcn.1004a7ca
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x43c]
push 0x25
push eax
push dword [edi]
mov dword [ebp - 4], esi
call dword [0x100211b4]
test eax, eax
jne 0x10058a56
call fcn.1004a7ca
jmp 0x10058a62
cmp dword [ebp - 4], 0x25
jne 0x10058ae3
xor eax, eax
cmp eax, esi
jne 0x10058ae3
cmp byte [ebp - 0x438], 0x25
jne 0x10058ae3
mov eax, dword [ebp - 0x437]
cmp eax, esi
je 0x10058ae3
imul eax, eax, 0x134
push eax
mov dword [ebp - 0x10], eax
call fcn.1005bd56
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
je 0x10058ae3
push 0x25
lea ecx, [ebp - 8]
pop eax
mov dword [ebp - 8], esi
push esi
push ecx
push eax
mov dword [ebp - 0xc], eax
push dword [edi]
call ebx
cmp eax, 0xffffffff
jne 0x10058aad
call fcn.1004a7ca
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push esi
push eax
push ebx
mov dword [ebp - 8], esi
push dword [ebp - 4]
push dword [edi]
call dword [0x100211b4]
test eax, eax
jne 0x10058acf
call fcn.1004a7ca
jmp 0x10058ad6
cmp dword [ebp - 8], ebx
jne 0x10058ada
xor eax, eax
cmp eax, esi
je 0x10058aec
push dword [ebp - 4]
call fcn.1005bd10
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
cmp ebx, esi
jbe 0x10058b1b
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ebp + 9]
movzx ecx, byte [eax + ecx]
movzx edx, dl
xor ecx, edx
xor edx, edx
mov dh, byte [ebp + 8]
mov cx, word [ebp + ecx*4 - 0x414]
xor cx, dx
inc eax
cmp eax, ebx
mov dword [ebp + 8], ecx
jb 0x10058af2
push dword [ebp - 4]
call fcn.1005bd10
movzx eax, word [ebp + 8]
pop ecx
jmp 0x10058ae5