Function at 0x100031e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10030014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x124], eax
xor edi, edi
mov ebx, dword [eax]
mov dword [ebp - 0x120], ecx
nop dword [eax + eax]
test edi, edi
jne 0x1000322e
cmp dword [ebx + 0x1c], edi
je 0x10003311
mov edx, dword [ebx + 0x14]
cmp edx, 0x40
jb 0x10003311
lea edi, [ebx + 0x30]
jmp 0x10003239
mov eax, dword [edi + 8]
add edi, 0x10
mov edx, dword [ebx + 0x14]
add edi, eax
mov ecx, edi
sub ecx, ebx
add ecx, 0x10
cmp ecx, edx
ja 0x10003311
mov eax, dword [edi + 8]
add eax, ecx
cmp eax, edx
ja 0x10003311
cmp dword [edi], 0
jbe 0x10003210
mov eax, dword [edi + 4]
test eax, 0xc0000
je 0x1000326c
mov dword [edi], 0
jmp 0x10003210
and eax, 0xfff0ffff
mov dword [edi + 4], eax
and eax, 0x70000000
mov dword [ebp - 8], eax
mov eax, edi
nop
test eax, eax
jne 0x1000329a
cmp dword [ebx + 0x1c], eax
je 0x10003210
mov esi, dword [ebx + 0x14]
cmp esi, 0x40
jb 0x10003210
lea eax, [ebx + 0x30]
jmp 0x100032a5
mov ecx, dword [eax + 8]
add eax, 0x10
mov esi, dword [ebx + 0x14]
add eax, ecx
mov edx, eax
sub edx, ebx
add edx, 0x10
cmp edx, esi
ja 0x10003210
mov ecx, dword [eax + 8]
add ecx, edx
cmp ecx, esi
ja 0x10003210
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x10003280
mov edx, dword [eax + 4]
mov ecx, edx
and ecx, 0x70000000
cmp ecx, dword [ebp - 8]
jne 0x10003280
test edx, 0xe0000
jne 0x100032e7
mov dword [eax], 0
jmp 0x10003280
mov dword [edi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x10003303
mov dword [eax], 0
jmp 0x10003210
and ecx, 0xfff0ffff
mov dword [eax + 4], ecx
jmp 0x10003210
push 0x34
push 8
push dword [0x10031d24]
call dword [0x10031a10]
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
je 0x10003579
mov dword [esi + 0x14], 0x30
xor edi, edi
nop word [eax + eax]
test edi, edi
jne 0x1000335e
cmp dword [ebx + 0x1c], edi
je 0x10003410
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x40
jb 0x10003410
lea edi, [ebx + 0x30]
jmp 0x10003369
mov eax, dword [edi + 8]
add edi, 0x10
mov ecx, dword [ebx + 0x14]
add edi, eax
mov eax, edi
sub eax, ebx
add eax, 0x10
cmp eax, ecx
ja 0x10003410
mov edx, dword [edi + 8]
add eax, edx
cmp eax, ecx
ja 0x10003410
cmp dword [edi], 0
jbe 0x10003340
mov eax, dword [esi + 0x14]
lea ecx, [edx + 0x10]
mov dword [ebp - 8], ecx
add eax, ecx
jne 0x100033af
push esi
push eax
push dword [0x10031d24]
call dword [0x10031a20]
xor esi, esi
mov dword [ebp - 0x11c], esi
jmp 0x100033d2
add eax, 4
push eax
push esi
push 8
push dword [0x10031d24]
call dword [0x10031a1c]
test eax, eax
je 0x1000356a
mov esi, eax
mov dword [ebp - 0x11c], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [edi]
add ecx, esi
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
test edx, edx
je 0x10003402
push edx
lea eax, [edi + 0x10]
push eax
lea eax, [ecx + 0x10]
push eax
call fcn.100135b0
add esp, 0xc
inc dword [esi + 0x1c]
mov eax, dword [ebp - 8]
add dword [esi + 0x14], eax
jmp 0x10003340
mov edi, dword [esi + 0x14]
lea eax, [ebp - 8]
push 0xf0000040
push 1
push 0
push 0
push eax
sub edi, 0x30
mov byte [ebp - 0x118], 0
call dword [0x100319b8]
test eax, eax
je 0x1000356a
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [0x10031a54]
cmp eax, 1
jne 0x100034af
push 0
push edi
lea eax, [esi + 0x30]
mov dword [ebp - 0x10], 0x10
push eax
push dword [ebp - 0xc]
call dword [0x10031998]
cmp eax, 1
jne 0x100034a6
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x20]
push eax
push 2
push dword [ebp - 0xc]
call dword [0x10031a64]
cmp eax, 1
jne 0x100034a6
mov eax, dword [ebp - 0x118]
mov ecx, 1
cmp dword [ebp - 0x10], 0x10
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x118], eax
push dword [ebp - 0xc]
call dword [0x10031a7c]
push 0
push dword [ebp - 8]
call dword [0x10031a68]
cmp byte [ebp - 0x118], 0
je 0x1000356a
xor edi, edi
nop dword [eax]
call fcn.10003720
mov ecx, eax
and ecx, 0xffffff00
sub eax, ecx
mov byte [edi + esi], al
inc edi
cmp edi, 0x14
jb 0x100034d0
mov edi, dword [ebp - 0x120]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x118], edx
test edi, edi
je 0x10003538
mov ecx, 1
cmp edx, ecx
jbe 0x10003510
mov al, byte [ecx + esi - 1]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x10003504
mov esi, edi
lea eax, [ebp - 0x114]
mov ecx, 0x40
lea edi, [ebp - 0x114]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x11c]
mov ecx, esi
call fcn.100038f0
add esp, 4
test ebx, ebx
je 0x1000354b
push ebx
push 0
push dword [0x10031d24]
call dword [0x10031a20]
mov eax, dword [ebp - 0x124]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 0x118]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011dc1
mov esp, ebp
pop ebp
ret
push esi
push 0
push dword [0x10031d24]
call dword [0x10031a20]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011dc1
mov esp, ebp
pop ebp
ret