Function at 0x100231a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10049200]
xor eax, esp
mov dword [esp + 0x118], eax
cmp dword [esp + 0x130], 0
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x12c]
mov dword [esp], eax
mov eax, dword [esp + 0x138]
push esi
mov dword [esp + 0xc], ecx
lea esi, [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
je 0x1002342a
test edx, edx
je 0x1002342a
movzx eax, word [ecx + 0x28]
mov edx, 0xff
push ebx
push ebp
push edi
cmp ax, dx
je case.0x100232d1.9
lea edx, [esp + 0x1c]
push edx
push eax
push dword [ecx + 0x10]
call fcn.10025290
test eax, eax
js 0x10023405
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov edi, dword [esp + 0x138]
movzx ecx, byte [eax + 1]
lea ebx, [eax + 0x18]
test ecx, ecx
je 0x10023251
mov edx, edi
lea eax, [ebx + 2]
shr edx, 0x10
cmp dl, byte [eax]
je 0x10023251
inc ebp
add eax, 8
cmp ebp, ecx
jb 0x10023245
cmp ebp, ecx
jae case.0x100232d1.9
push 0x100
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x18]
call fcn.10010530
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x100232a9
mov edi, ebp
lea esp, [esp]
lea eax, [esp + 0x124]
push eax
push ebx
push esi
call fcn.1002c630
add esi, eax
add ebx, 8
dec edi
jne 0x10023280
mov edi, dword [esp + 0x138]
lea eax, [esp + 0x11e]
cmp esi, eax
jae 0x100232bb
mov al, byte [esi]
test al, al
je 0x100233ec
cmp al, 0xff
je 0x100233ec
mov eax, dword [esp + 0x1c]
shr edi, 0x18
movzx eax, byte [eax + ebp*8 + 0x1c]
dec eax
cmp eax, 9
ja case.0x100232d1.9
jmp dword [eax*4 + 0x1002344c]
lea eax, [esi + 1]
lea ecx, [esp + 0x124]
cmp eax, ecx
jae case.0x100232d1.2
xor byte [eax], 0x80
lea eax, [esi + 1]
lea ecx, [esp + 0x124]
cmp eax, ecx
jae case.0x100232d1.9
cmp dword [esp + 0x140], 1
jb case.0x100232d1.9
mov al, byte [eax]
xor al, byte [esi]
mov ecx, dword [esp + 0x14]
xor al, 0x7f
mov byte [ecx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [eax], 1
mov eax, 1
mov dword [ecx], eax
xor eax, eax
jmp 0x10023405
mov dl, byte [esi]
xor dl, 0x7f
xor byte [esi + 1], 0x80
jmp 0x10023356
mov dl, byte [esi + 1]
mov al, byte [esi]
and dl, 0x80
neg dl
not al
sbb dl, dl
and dl, 1
dec dl
xor al, dl
and al, 0x80
xor byte [esi + 1], al
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
inc eax
add eax, esi
cmp eax, 0xfa
jae case.0x100232d1.9
cmp dword [esp + 0x140], edi
jb case.0x100232d1.9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ecx, edi
mov dword [eax], edi
test edi, edi
je 0x100233a0
lea esp, [esp]
mov al, byte [esi + 1]
lea esi, [esi + 1]
xor al, dl
lea ecx, [ecx - 1]
mov byte [ecx], al
dec edi
jne 0x10023390
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword [ecx], eax
xor eax, eax
jmp 0x10023405
cmp dword [esp + 0x18], 0xff
jae case.0x100232d1.9
mov ax, word [ebx + 6]
mov ecx, dword [esp + 0x140]
shr ax, 0xf
movzx eax, ax
push eax
movzx eax, byte [ebx + 5]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
push ecx
call fcn.10030370
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
xor eax, eax
jmp 0x10023405
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [eax], 0
mov eax, 0x3ec
mov dword [ecx], 1
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1003de00
add esp, 0x11c
ret 0x1c
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [ecx], eax
jmp 0x10023405
mov ecx, dword [esp + 0x11c]
pop esi
mov dword [eax], 0
xor ecx, esp
xor eax, eax
call fcn.1003de00
add esp, 0x11c
ret 0x1c