Function at 0x10004030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 0x38]
push esi
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], ebx
push edi
mov ecx, dword [edx]
mov dword [eax + 0x20], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov ecx, dword [edx + 0x18]
mov dword [ebx], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x3c], ecx
mov eax, ebx
mov ebx, 0x10
nop dword [eax]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
ror edx, 0x12
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
add edi, ebx
inc ebx
mov dword [eax + 4], edi
cmp ebx, 0x210
jb 0x100040b0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov ecx, dword [eax + 0x800]
mov dword [eax], ecx
mov ecx, dword [eax + 0x804]
mov dword [eax + 4], ecx
mov ecx, dword [eax + 0x808]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0x80c]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x810]
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x814]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x818]
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x81c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x820]
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x824]
mov dword [eax + 0x24], ecx
mov ecx, dword [eax + 0x828]
mov dword [eax + 0x28], ecx
mov ecx, dword [eax + 0x82c]
mov dword [eax + 0x2c], ecx
mov ecx, dword [eax + 0x830]
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x834]
mov dword [eax + 0x34], ecx
mov ecx, dword [eax + 0x838]
mov dword [eax + 0x38], ecx
mov ecx, dword [eax + 0x83c]
mov dword [eax + 0x3c], ecx
mov eax, 0x10
nop word [eax + eax]
mov edx, dword [ebx]
lea ebx, [ebx + 4]
mov esi, dword [ebx - 0x38]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
ror ecx, 7
mov edx, esi
ror edx, 0x12
xor ecx, edx
shr esi, 3
xor ecx, esi
add ecx, 0x200
add ecx, edi
add ecx, dword [ebx - 0x3c]
add ecx, dword [ebx - 0x18]
add ecx, eax
inc eax
mov dword [ebx + 4], ecx
cmp eax, 0x400
jb 0x10004190
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xfc0]
mov dword [eax + 0x1000], ecx
mov ecx, dword [eax + 0xfc4]
mov dword [eax + 0x1004], ecx
mov ecx, dword [eax + 0xfc8]
mov dword [eax + 0x1008], ecx
mov ecx, dword [eax + 0xfcc]
mov dword [eax + 0x100c], ecx
mov ecx, dword [eax + 0xfd0]
mov dword [eax + 0x1010], ecx
mov ecx, dword [eax + 0xfd4]
mov dword [eax + 0x1014], ecx
mov ecx, dword [eax + 0xfd8]
mov dword [eax + 0x1018], ecx
mov ecx, dword [eax + 0xfdc]
mov dword [eax + 0x101c], ecx
mov ecx, dword [eax + 0xfe0]
mov dword [eax + 0x1020], ecx
mov ecx, dword [eax + 0xfe4]
mov dword [eax + 0x1024], ecx
mov ecx, dword [eax + 0xfe8]
mov dword [eax + 0x1028], ecx
mov ecx, dword [eax + 0xfec]
mov dword [eax + 0x102c], ecx
mov ecx, dword [eax + 0xff0]
mov dword [eax + 0x1030], ecx
mov ecx, dword [eax + 0xff4]
mov dword [eax + 0x1034], ecx
mov ecx, dword [eax + 0xff8]
mov dword [eax + 0x1038], ecx
mov ecx, dword [eax + 0xffc]
mov dword [eax + 0x103c], ecx
lea ecx, [eax + 0x1004]
mov dword [ebp - 4], ecx
mov ebx, ecx
mov eax, 0x10
nop dword [eax + eax]
mov edx, dword [ebx + 0x34]
lea ebx, [ebx + 4]
mov esi, dword [ebx - 4]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
ror ecx, 7
mov edx, esi
ror edx, 0x12
xor ecx, edx
shr esi, 3
xor ecx, esi
add ecx, 0x5f0
add ecx, edi
add ecx, dword [ebx + 0x1c]
add ecx, dword [ebx - 8]
add ecx, eax
inc eax
mov dword [ebx + 0x38], ecx
cmp eax, 0x20
jb 0x100042b0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov ecx, dword [eax + 0x1040]
mov dword [eax + 0x1000], ecx
mov ecx, dword [eax + 0x1044]
mov dword [eax + 0x1004], ecx
mov ecx, dword [eax + 0x1048]
mov dword [eax + 0x1008], ecx
mov ecx, dword [eax + 0x104c]
mov dword [eax + 0x100c], ecx
mov ecx, dword [eax + 0x1050]
mov dword [eax + 0x1010], ecx
mov ecx, dword [eax + 0x1054]
mov dword [eax + 0x1014], ecx
mov ecx, dword [eax + 0x1058]
mov dword [eax + 0x1018], ecx
mov ecx, dword [eax + 0x105c]
mov dword [eax + 0x101c], ecx
mov ecx, dword [eax + 0x1060]
mov dword [eax + 0x1020], ecx
mov ecx, dword [eax + 0x1064]
mov dword [eax + 0x1024], ecx
mov ecx, dword [eax + 0x1068]
mov dword [eax + 0x1028], ecx
mov ecx, dword [eax + 0x106c]
mov dword [eax + 0x102c], ecx
mov ecx, dword [eax + 0x1070]
mov dword [eax + 0x1030], ecx
mov ecx, dword [eax + 0x1074]
mov dword [eax + 0x1034], ecx
mov ecx, dword [eax + 0x1078]
mov dword [eax + 0x1038], ecx
mov ecx, dword [eax + 0x107c]
mov dword [eax + 0x103c], ecx
mov eax, 0x10
nop
mov edx, dword [ebx + 0x34]
lea ebx, [ebx + 4]
mov esi, dword [ebx - 4]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
ror ecx, 7
mov edx, esi
ror edx, 0x12
xor ecx, edx
shr esi, 3
xor ecx, esi
add ecx, 0x600
add ecx, edi
add ecx, dword [ebx + 0x1c]
add ecx, dword [ebx - 8]
add ecx, eax
inc eax
mov dword [ebx + 0x38], ecx
cmp eax, 0x400
jb 0x100043c0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 2
mov edx, dword [eax + 0xff4]
mov ecx, edx
mov edi, dword [eax + 4]
mov esi, edi
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov ebx, dword [eax + 8]
mov ecx, edi
xor ecx, edx
and ecx, 0x3ff
add esi, dword [eax + ecx*4 + 0x1000]
add esi, dword [eax + 0xfd8]
add dword [eax], esi
mov esi, ebx
mov edx, dword [eax + 0xff8]
mov ecx, edx
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov ecx, ebx
xor ecx, edx
and ecx, 0x3ff
add esi, dword [eax + ecx*4 + 0x1000]
add esi, edi
mov edi, dword [eax + 0xc]
add esi, dword [eax + 0xfdc]
mov dword [eax + 4], esi
mov esi, edi
mov edx, dword [eax + 0xffc]
mov ecx, edx
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov ecx, edi
xor ecx, edx
mov edx, dword [eax]
and ecx, 0x3ff
add esi, dword [eax + ecx*4 + 0x1000]
add esi, ebx
mov ebx, dword [eax + 0x10]
add esi, dword [eax + 0xfe0]
mov ecx, ebx
mov dword [eax + 8], esi
mov esi, edx
ror esi, 0xa
xor edx, ebx
ror ecx, 0x17
and edx, 0x3ff
xor esi, ecx
add esi, dword [eax + edx*4 + 0x1000]
add esi, dword [eax + 0xfe4]
mov edx, dword [eax + 4]
add esi, edi
mov edi, dword [eax + 0x14]
mov ecx, edi
mov dword [eax + 0xc], esi
mov esi, edx
ror esi, 0xa
xor edx, edi
ror ecx, 0x17
and edx, 0x3ff
xor esi, ecx
mov ecx, dword [eax + 8]
ror ecx, 0xa
add esi, dword [eax + edx*4 + 0x1000]
add esi, dword [eax + 0xfe8]
add esi, ebx
mov ebx, dword [eax + 0x18]
mov dword [eax + 0x10], esi
mov esi, ebx
ror esi, 0x17
xor esi, ecx
mov ecx, ebx
xor ecx, dword [eax + 8]
and ecx, 0x3ff
add esi, dword [eax + ecx*4 + 0x1000]
add esi, dword [eax + 0xfec]
add esi, edi
mov edi, dword [eax + 0x1c]
mov dword [eax + 0x14], esi
mov ecx, dword [eax + 0xc]
mov esi, edi
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov dword [ebp + 8], 0x3f5
mov ecx, edi
xor ecx, dword [eax + 0xc]
and ecx, 0x3ff
add esi, dword [eax + ecx*4 + 0x1000]
add esi, dword [eax + 0xff0]
mov ecx, dword [eax + 0x10]
add esi, ebx
mov ebx, dword [eax + 0x20]
mov dword [eax + 0x18], esi
mov esi, ebx
xor ebx, dword [eax + 0x10]
ror esi, 0x17
and ebx, 0x3ff
ror ecx, 0xa
xor esi, ecx
mov ecx, dword [eax + 0x14]
ror ecx, 0xa
add esi, dword [eax + ebx*4 + 0x1000]
add esi, dword [eax + 0xff4]
mov ebx, dword [eax + 0x24]
add esi, edi
mov dword [eax + 0x1c], esi
mov esi, ebx
ror esi, 0x17
xor esi, ecx
mov ecx, ebx
xor ecx, dword [eax + 0x14]
and ecx, 0x3ff
add esi, dword [eax + ecx*4 + 0x1000]
add esi, dword [eax + 0xff8]
add dword [eax + 0x20], esi
mov esi, dword [eax + 0x28]
mov edi, esi
xor esi, dword [eax + 0x18]
mov ecx, dword [eax + 0x18]
and esi, 0x3ff
ror edi, 0x17
ror ecx, 0xa
xor edi, ecx
add edi, dword [eax + esi*4 + 0x1000]
add edi, ebx
lea ebx, [eax + 0x2c]
add edi, dword [eax + 0xffc]
mov dword [eax + 0x24], edi
nop dword [eax]
mov edi, dword [ebx - 0x10]
lea ebx, [ebx + 4]
mov ecx, dword [ebx - 4]
mov esi, edi
xor edi, dword [ebx - 4]
ror esi, 0xa
and edi, 0x3ff
ror ecx, 0x17
xor esi, ecx
add esi, dword [eax + edi*4 + 0x1000]
add esi, dword [ebx - 0x30]
add dword [ebx - 8], esi
sub dword [ebp + 8], 1
jne 0x100045e0
mov edx, dword [eax + 0xff0]
mov ecx, edx
mov esi, dword [eax]
mov edi, esi
xor esi, edx
ror ecx, 0xa
and esi, 0x3ff
ror edi, 0x17
xor edi, ecx
add edi, dword [eax + esi*4 + 0x1000]
add edi, dword [eax + 0xfd4]
add dword [eax + 0xffc], edi
mov edx, dword [eax + 0x1ff4]
mov ecx, edx
mov edi, dword [eax + 0x1004]
mov esi, edi
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov ebx, dword [eax + 0x1008]
mov ecx, edi
xor ecx, edx
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
add esi, dword [eax + 0x1fd8]
add dword [eax + 0x1000], esi
mov esi, ebx
mov edx, dword [eax + 0x1ff8]
mov ecx, edx
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov ecx, ebx
xor ecx, edx
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
add esi, dword [eax + 0x1fdc]
add esi, edi
mov edi, dword [eax + 0x100c]
mov dword [eax + 0x1004], esi
mov esi, edi
mov edx, dword [eax + 0x1ffc]
mov ecx, edx
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov ecx, edi
xor ecx, edx
mov edx, dword [eax + 0x1000]
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
mov ecx, edx
add esi, ebx
ror ecx, 0xa
add esi, dword [eax + 0x1fe0]
mov ebx, dword [eax + 0x1010]
mov dword [eax + 0x1008], esi
mov esi, ebx
ror esi, 0x17
xor esi, ecx
mov ecx, ebx
xor ecx, edx
mov edx, dword [eax + 0x1004]
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
mov ecx, edx
add esi, edi
ror ecx, 0xa
add esi, dword [eax + 0x1fe4]
mov edi, dword [eax + 0x1014]
mov dword [eax + 0x100c], esi
mov esi, edi
ror esi, 0x17
xor esi, ecx
mov ecx, edi
xor ecx, edx
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
add esi, ebx
add esi, dword [eax + 0x1fe8]
mov dword [eax + 0x1010], esi
mov ebx, dword [eax + 0x1018]
mov esi, ebx
mov edx, dword [eax + 0x1008]
mov ecx, edx
ror esi, 0x17
ror ecx, 0xa
xor esi, ecx
mov dword [ebp + 8], 0x3f5
mov ecx, ebx
xor ecx, edx
mov edx, dword [eax + 0x100c]
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
mov ecx, edx
add esi, edi
ror ecx, 0xa
add esi, dword [eax + 0x1fec]
mov edi, dword [eax + 0x101c]
mov dword [eax + 0x1014], esi
mov esi, edi
ror esi, 0x17
xor esi, ecx
mov ecx, edi
xor ecx, edx
mov edx, dword [eax + 0x1010]
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
mov ecx, edx
add esi, ebx
ror ecx, 0xa
add esi, dword [eax + 0x1ff0]
mov ebx, dword [eax + 0x1020]
mov dword [eax + 0x1018], esi
mov esi, ebx
ror esi, 0x17
xor ebx, edx
mov edx, dword [eax + 0x1014]
xor esi, ecx
and ebx, 0x3ff
mov ecx, edx
ror ecx, 0xa
add esi, dword [eax + ebx*4]
add esi, dword [eax + 0x1ff4]
mov ebx, dword [eax + 0x1024]
add esi, edi
mov dword [eax + 0x101c], esi
mov esi, ebx
ror esi, 0x17
xor esi, ecx
mov ecx, ebx
xor ecx, edx
mov edx, dword [eax + 0x1018]
and ecx, 0x3ff
add esi, dword [eax + ecx*4]
mov ecx, edx
add esi, dword [eax + 0x1ff8]
add dword [eax + 0x1020], esi
mov esi, dword [eax + 0x1028]
mov edi, esi
xor esi, edx
ror edi, 0x17
and esi, 0x3ff
ror ecx, 0xa
xor edi, ecx
add edi, dword [eax + esi*4]
add edi, ebx
lea ebx, [eax + 0x101c]
add edi, dword [eax + 0x1ffc]
mov dword [eax + 0x1024], edi
mov edi, dword [ebx + 0x10]
lea ebx, [ebx + 4]
mov ecx, dword [ebx - 4]
mov esi, edi
xor edi, dword [ebx - 4]
ror esi, 0x17
and edi, 0x3ff
ror ecx, 0xa
xor esi, ecx
add esi, dword [eax + edi*4]
add esi, dword [ebx - 0x20]
add dword [ebx + 8], esi
sub dword [ebp + 8], 1
jne 0x10004841
mov esi, dword [eax + 0x1000]
mov edi, esi
mov edx, dword [eax + 0x1ff0]
mov ecx, edx
xor esi, edx
ror edi, 0x17
and esi, 0x3ff
ror ecx, 0xa
xor edi, ecx
add edi, dword [eax + esi*4]
add edi, dword [eax + 0x1fd4]
add dword [eax + 0x1ffc], edi
sub dword [ebp - 4], 1
jne 0x10004410
mov dword [eax + 0x2080], 0
mov ecx, dword [eax + 0xfc0]
mov dword [eax + 0x2000], ecx
mov ecx, dword [eax + 0xfc4]
mov dword [eax + 0x2004], ecx
mov ecx, dword [eax + 0xfc8]
mov dword [eax + 0x2008], ecx
mov ecx, dword [eax + 0xfcc]
mov dword [eax + 0x200c], ecx
mov ecx, dword [eax + 0xfd0]
mov dword [eax + 0x2010], ecx
mov ecx, dword [eax + 0xfd4]
mov dword [eax + 0x2014], ecx
mov ecx, dword [eax + 0xfd8]
mov dword [eax + 0x2018], ecx
mov ecx, dword [eax + 0xfdc]
mov dword [eax + 0x201c], ecx
mov ecx, dword [eax + 0xfe0]
mov dword [eax + 0x2020], ecx
mov ecx, dword [eax + 0xfe4]
mov dword [eax + 0x2024], ecx
mov ecx, dword [eax + 0xfe8]
mov dword [eax + 0x2028], ecx
mov ecx, dword [eax + 0xfec]
mov dword [eax + 0x202c], ecx
mov ecx, dword [eax + 0xff0]
mov dword [eax + 0x2030], ecx
mov ecx, dword [eax + 0xff4]
mov dword [eax + 0x2034], ecx
mov ecx, dword [eax + 0xff8]
mov dword [eax + 0x2038], ecx
mov ecx, dword [eax + 0xffc]
mov dword [eax + 0x203c], ecx
mov ecx, dword [eax + 0x1fc0]
mov dword [eax + 0x2040], ecx
mov ecx, dword [eax + 0x1fc4]
mov dword [eax + 0x2044], ecx
mov ecx, dword [eax + 0x1fc8]
mov dword [eax + 0x2048], ecx
mov ecx, dword [eax + 0x1fcc]
mov dword [eax + 0x204c], ecx
mov ecx, dword [eax + 0x1fd0]
mov dword [eax + 0x2050], ecx
mov ecx, dword [eax + 0x1fd4]
mov dword [eax + 0x2054], ecx
mov ecx, dword [eax + 0x1fd8]
mov dword [eax + 0x2058], ecx
mov ecx, dword [eax + 0x1fdc]
mov dword [eax + 0x205c], ecx
mov ecx, dword [eax + 0x1fe0]
mov dword [eax + 0x2060], ecx
mov ecx, dword [eax + 0x1fe4]
mov dword [eax + 0x2064], ecx
mov ecx, dword [eax + 0x1fe8]
mov dword [eax + 0x2068], ecx
mov ecx, dword [eax + 0x1fec]
mov dword [eax + 0x206c], ecx
mov ecx, dword [eax + 0x1ff0]
mov dword [eax + 0x2070], ecx
mov ecx, dword [eax + 0x1ff4]
mov dword [eax + 0x2074], ecx
mov ecx, dword [eax + 0x1ff8]
pop edi
mov dword [eax + 0x2078], ecx
mov ecx, dword [eax + 0x1ffc]
pop esi
mov dword [eax + 0x207c], ecx
pop ebx
mov esp, ebp
pop ebp
ret