Function at 0x100a5fd1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
lea edi, [ebp - 0x14c]
mov ecx, 0x53
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 8]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 0x61], 1
mov byte [ebp - 0x6d], 0
mov esi, esp
push 0x14
call dword [sym.imp.msvcr90d.dll_malloc]
add esp, 4
cmp esi, esp
call fcn.1004c4d8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100a5cf0
mov eax, 0xfffffffe
jmp 0x100a630a
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], 0
xor eax, eax
jne 0x100a5cc9
push 0x100
push 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.1004ca7d
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
or ecx, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 0xfffffffe
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
mov eax, 1
test eax, eax
je 0x100a62cf
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x58]
je 0x100a5d53
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
cmp ecx, 1
jne 0x100a5d9e
cmp dword [ebp - 0x20], 0
je 0x100a5d99
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 1
movzx edx, byte [ebp - 0x61]
or ecx, edx
and ecx, 1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
and edx, 0xfffffffe
or edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov byte [ebp - 0x61], 1
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x4c], eax
jmp 0x100a5d33
jmp 0x100a62cf
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0x1d
ja case.0x100a5dd9.1
mov ecx, dword [ebp - 0x148]
movzx edx, byte [ecx + 0x100a6388]
jmp dword [edx*4 + 0x100a6350]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
jmp 0x100a62f2
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 1]
mov edx, dword [ebp - 0x34]
mov byte [edx + ecx], 1
jmp 0x100a62c0
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
lea edx, [ecx*8 - 1]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x100a5e2b
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x100a5e6a
mov eax, dword [ebp - 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp - 8]
and ecx, 0x80000007
jns 0x100a5e54
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 1
shl eax, cl
and edx, eax
je 0x100a5e68
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x100a5e22
jmp 0x100a62c0
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
shl ecx, 3
mov dword [ebp - 8], ecx
jmp 0x100a5e86
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x100a5e9a
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x100a5e7d
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
lea edx, [ecx*8 - 1]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x100a5ebe
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x100a5efd
mov eax, dword [ebp - 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp - 8]
and ecx, 0x80000007
jns 0x100a5ee7
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 1
shl eax, cl
and edx, eax
jne 0x100a5efb
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x100a5eb5
jmp 0x100a62c0
mov dword [ebp - 8], 0
jmp 0x100a5f14
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x100a5f37
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x101087f8]
cmp ecx, 1
jne 0x100a5f35
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x100a5f0b
jmp 0x100a62c0
mov dword [ebp - 8], 0
jmp 0x100a5f4e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x100a5f71
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x101087f8]
cmp ecx, 1
je 0x100a5f6f
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x100a5f45
jmp 0x100a62c0
mov eax, dword [ebp - 0x34]
movsx ecx, byte [eax + 0xa]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 8], 0
jmp 0x100a5f92
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x100a5fa6
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x100a5f89
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 0x40
jne 0x100a5fbc
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x7c]
mov byte [eax + 0xa], cl
jmp 0x100a5fcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 1
je 0x100a5fcc
jmp 0x100a62f2
jmp 0x100a62c0
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
xor eax, eax
jne case.0x100a5dd9.13
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
xor eax, eax
jne case.0x100a5dd9.13
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 8], 0
jle 0x100a6026
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
cmp ecx, 0xf
je 0x100a6041
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
cmp ecx, 0x15
je 0x100a6041
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x100a604a
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x100a604a
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x20], 0
je 0x100a60ad
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax*4 - 4]
cmp edx, dword [ebp - 0x4c]
jne 0x100a60ad
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
xor eax, eax
jne case.0x100a5dd9.15
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
xor eax, eax
jne case.0x100a5dd9.15
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x58]
jae 0x100a61d7
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jne 0x100a618a
mov ecx, dword [0x10105dc4]
imul ecx, ecx, 0x13
cmp dword [ebp - 0x24], ecx
jbe 0x100a6123
mov dword [ebp - 0x144], 0
jmp 0x100a6175
mov edx, dword [ebp - 0x24]
shl edx, 1
shl edx, 2
mov esi, esp
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.msvcr90d.dll_realloc]
add esp, 8
cmp esi, esp
call fcn.1004c4d8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100a6157
mov dword [ebp - 0x148], 0
jmp 0x100a6169
mov ecx, dword [ebp - 0x24]
shl ecx, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x148], 1
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x144], edx
cmp dword [ebp - 0x144], 0
jne 0x100a618a
mov dword [ebp - 0x14c], 0
jmp 0x100a61ac
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14c], 1
cmp dword [ebp - 0x14c], 0
jne 0x100a61d5
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.msvcr90d.dll_free]
add esp, 4
cmp esi, esp
call fcn.1004c4d8
mov eax, 0xfffffffe
jmp 0x100a630a
jmp 0x100a61e6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
movzx eax, byte [ebp - 0x6d]
test eax, eax
je 0x100a622e
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x100a61ee
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x100a61ee
mov byte [ebp - 0x6d], 0
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x100a623c
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x100a623c
cmp dword [ebp - 0x14], 0
jne 0x100a6290
mov eax, dword [ebp - 0x4c]
sub eax, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x6d], 1
jmp case.0x100a5dd9.15
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x4c], eax
jmp 0x100a5d33
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
jmp 0x100a5d33
mov esi, esp
call dword [sym.imp.msvcr90d.dll_abort]
cmp esi, esp
call fcn.1004c4d8
mov byte [ebp - 0x61], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
jmp 0x100a5d33
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
and ecx, 1
movzx edx, byte [ebp - 0x61]
or ecx, edx
and ecx, 1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
and edx, 0xfffffffe
or edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.msvcr90d.dll_free]
add esp, 4
cmp esi, esp
call fcn.1004c4d8
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100a6330]
call fcn.1004c1cc
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x14c
cmp ebp, esp
call fcn.1004c4d8
mov esp, ebp
pop ebp
ret