Function at 0x1059100
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
mov dword [esp], 0x80b0a0d
mov word [esp + 4], 0
mov ebx, 0x9971d82
mov ecx, 0x7668e27d
nop
nop
nop
nop
nop
movzx edi, byte [esp + ebx - 0x9971d82]
lea edx, [ebx - 0x97fffff]
mov ebp, edx
or ebp, 0xff8b4529
lea esi, [ecx + ebp]
and edx, 0x141886
mov eax, ebx
sub eax, ebp
and eax, 0x934be76
mov ebp, esi
and ebp, 0x36080009
or ebp, eax
xor ebp, edx
xor ebp, 0x4934fe76
and edx, esi
or edx, ebp
xor edx, edi
xor edx, 0xff8b4529
lea eax, [edx + 0x500c6c70]
mov esi, edx
and esi, 1
mov edi, eax
and edi, 0xfe
xor eax, 1
add edx, esi
add edx, 0x500c6c70
add edx, eax
sub edx, edi
mov byte [esp + ebx - 0x9971d82], dl
inc ebx
dec ecx
cmp ebx, 0x9971d88
jne 0x1059130
mov edi, dword [esp]
mov eax, dword [0xefa7f4]
test eax, eax
je 0x10591f6
xor ecx, ecx
mov edx, dword [0xefa7f8]
nop
nop
nop
cmp dword [edx + ecx*8], 0x9abdb589
je 0x10591d0
inc ecx
cmp eax, ecx
jne 0x10591c0
jmp 0x10591f6
mov eax, dword [edx + ecx*8 + 4]
cmp eax, edi
je 0x10591f6
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 5
push 0x10
push eax
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x1c
mov edi, eax
mov dword [esp], 0x317e7f78
mov eax, 0x6df80c95
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x6df80c95]
xor ecx, eax
mov edx, 1
sub edx, ecx
mov esi, 0xe9
sub esi, ecx
and ecx, 1
and edx, 1
and esi, 0xfe
or esi, edx
xor esi, 0xfe
lea ecx, [esi + ecx*2]
mov byte [esp + eax - 0x6df80c95], cl
inc eax
cmp eax, 0x6df80c99
jne 0x1059210
cmp edi, dword [esp]
jne 0x10593d8
push dword [esp + 0xc]
call fcn.01059030
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp], 0x80b0a0d
mov word [esp + 4], 0
mov esi, 0x9971d82
mov edi, 0x7668e27d
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + esi - 0x9971d82]
lea ebp, [esi - 0x97fffff]
mov ebx, ebp
or ebx, 0xff8b4529
lea ecx, [edi + ebx]
and ebp, 0x141886
mov edx, esi
sub edx, ebx
and edx, 0x934be76
mov ebx, ecx
and ebx, 0x36080009
or ebx, edx
xor ebx, ebp
xor ebx, 0x4934fe76
and ebp, ecx
or ebp, ebx
xor ebp, eax
xor ebp, 0xff8b4529
lea eax, [ebp + 0x500c6c70]
mov ecx, ebp
and ecx, 1
mov edx, eax
and edx, 0xfe
xor eax, 1
add ecx, ebp
add ecx, 0x500c6c70
add ecx, eax
sub ecx, edx
mov byte [esp + esi - 0x9971d82], cl
inc esi
dec edi
cmp esi, 0x9971d88
jne 0x1059290
mov edi, dword [esp]
mov edx, dword [0xefa7f4]
test edx, edx
je 0x1059340
xor ecx, ecx
mov esi, dword [0xefa7f8]
mov ebx, dword [esp + 0x2c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + ecx*8], 0x9abdb589
je 0x1059346
inc ecx
cmp edx, ecx
jne 0x1059330
jmp 0x105936e
mov ebx, dword [esp + 0x2c]
jmp 0x105936e
mov edx, dword [esi + ecx*8 + 4]
cmp edx, edi
je 0x105936e
push 0
push dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
push 5
push 0x10
push edx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x1c
mov edi, eax
test edi, edi
js 0x10593cc
mov ecx, dword [esp + 8]
mov esi, dword [ecx]
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [ecx + esi + 0x3c]
add ecx, esi
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, word [edx + esi]
movzx ebp, word [ebx + esi]
test di, di
je 0x10593a5
add esi, 2
cmp di, bp
je 0x1059390
cmp di, bp
je 0x10593b7
mov esi, dword [ecx]
test esi, esi
jne 0x1059380
mov edi, 0xc0000225
jmp 0x10593cc
mov eax, dword [ecx + 0x44]
mov edx, dword [esp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xdc]
mov dword [edx + 0xc], eax
xor edi, edi
push dword [esp + 8]
call fcn.01059070
add esp, 4
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4