Function at 0x435822
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ebx, dword [esp + 0x5c]
movzx eax, word [ebx]
mov dword [esp + 0x28], 0xc9caadbf
mov byte [esp + 0x2c], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 4
ja 0x435392
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
lea esi, [ecx + 0x46a9a253]
lea edi, [ecx + edx]
add edi, 0x46a9a253
add ecx, 0x53
or ecx, esi
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x14]
add cl, 0x61
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 5
jb 0x435350
xor ecx, ecx
cmp dword [esp + 0x28], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x43ffc4]
mov ebp, dword [ebx + 0x3c]
mov ecx, dword [ebx + ebp]
mov dword [esp + 0x28], 0x4f4e8cb8
mov dword [esp + 0x2c], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 7
ja 0x435400
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 0x28]
add edx, 0xa6c25012
xor edx, esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
add dl, 0xa6
mov esi, dword [esp]
mov byte [esp + esi + 0x28], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 8
jb 0x4353d0
xor edx, edx
cmp ecx, dword [esp + 0x28]
setne dl
xor eax, eax
jmp dword [edx*4 + 0x43ffcc]
mov edi, dword [ebx + ebp + 0x78]
cmp dword [ebx + ebp + 0x7c], 0
sete al
test edi, edi
sete cl
or cl, al
movzx ecx, cl
xor eax, eax
jmp dword [ecx*4 + 0x43ffd4]
mov eax, dword [ebx + edi + 0x20]
add eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [ebx + edi + 0x24]
add eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + edi + 0x1c]
add eax, ebx
mov dword [esp + 0x20], eax
mov ecx, ebx
mov ebx, dword [0x441cf4]
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], edi
jmp dword [eax*4 + 0x43ffdc]
mov eax, edi
mov edi, dword [0x441cf0]
mov eax, dword [ecx + eax + 0x18]
add eax, edi
mov ecx, 0xffffffff
cmp eax, 0x20000000
jae 0x435488
shl eax, 3
mov ecx, eax
push ecx
call fcn.00409540
add esp, 4
mov esi, eax
lea eax, [edi*8]
lea edx, [ebx + edi*8]
cmp esi, ebx
jbe 0x435543
cmp edx, esi
jbe 0x435543
test eax, eax
je 0x43550f
mov ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + eax - 1]
mov byte [esi + eax - 1], dl
movzx edx, byte [ebx + eax - 2]
mov byte [esi + eax - 2], dl
movzx edx, byte [ebx + eax - 3]
mov byte [esi + eax - 3], dl
movzx edx, byte [ebx + eax - 4]
mov byte [esi + eax - 4], dl
movzx edx, byte [ebx + eax - 5]
mov byte [esi + eax - 5], dl
movzx edx, byte [ebx + eax - 6]
mov byte [esi + eax - 6], dl
movzx edx, byte [ebx + eax - 7]
mov byte [esi + eax - 7], dl
movzx edx, byte [ebx + eax - 8]
mov byte [esi + eax - 8], dl
add ecx, 0xfffffff8
mov eax, ecx
jne 0x4354c0
xor eax, eax
test ebx, ebx
sete al
mov edi, dword [esp + 0xc]
jmp dword [eax*4 + 0x43ffe4]
mov eax, dword [ecx + edi + 0x18]
mov ecx, 0xffffffff
cmp eax, 0x20000000
jae 0x435536
shl eax, 3
mov ecx, eax
push ecx
call fcn.00409540
add esp, 4
mov esi, eax
jmp case.0x43556e.1
mov ecx, eax
shr ecx, 2
mov edi, esi
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov edi, esi
add edi, eax
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ebx, dword [0x441cf4]
xor eax, eax
test ebx, ebx
sete al
mov edi, dword [esp + 0xc]
jmp dword [eax*4 + 0x43ffe4]
jmp dword [0x43fff0]
push ebx
call fcn.00409550
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
call fcn.00409550
add esp, 4
jmp dword [0x43fff8]
mov dword [0x441cf4], esi
mov eax, dword [case.0x43556e.9]
nop
nop
nop
nop
nop
nop
jmp eax
xor ecx, ecx
xor eax, eax
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x1c], 0
cmp ecx, dword [ebx + edi + 0x18]
setb al
xor edx, edx
jmp dword [eax*4 + 0x44000c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
movzx eax, word [eax + edx*2]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax*4]
mov dword [0x441cf8], eax
inc edx
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp edx, dword [ebx + ecx + 0x18]
setb al
jmp dword [eax*4 + 0x44000c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov esi, dword [eax + edx*4]
add esi, ebx
mov ecx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
cmp byte [esi + ecx + 1], 0
lea ecx, [ecx + 1]
lea eax, [eax + 1]
jne 0x435630
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xbebabc31
mov word [esp + 0x2c], 0
mov byte [esp + 0x2e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x43569e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 0x28]
add eax, 0xba7ba19f
xor eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0xe5
mov esi, dword [esp]
mov byte [esp + esi + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x435670
mov edi, 0xb14a5e2
test ecx, ecx
je 0x435741
mov esi, dword [esp + 0x28]
mov eax, esi
not eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x10]
cmp ecx, 1
je 0x43571c
and edx, 0xfffffffe
mov ebp, dword [esp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, byte [ebp]
xor eax, edi
mov edi, eax
and edi, dword [esp + 8]
mov ebx, eax
not ebx
and ebx, esi
imul ebx, edi
mov edi, eax
and edi, esi
or eax, esi
imul eax, edi
add eax, ebx
movsx edi, byte [ebp + 1]
add ebp, 2
xor edi, eax
mov eax, edi
and eax, dword [esp + 8]
mov ebx, edi
not ebx
and ebx, esi
imul ebx, eax
mov eax, edi
and eax, esi
or edi, esi
imul edi, eax
add edi, ebx
add edx, 0xfffffffe
jne 0x4356d0
mov ebx, dword [esp + 0x5c]
test cl, 1
je 0x435741
movsx eax, byte [ebp]
xor edi, eax
mov ecx, dword [esp + 8]
and ecx, edi
mov eax, edi
not eax
and eax, esi
imul eax, ecx
mov ecx, edi
and ecx, esi
or edi, esi
imul edi, ecx
add edi, eax
mov eax, edi
xor eax, 0x43ac3278
xor ecx, ecx
or eax, dword [0x441cf8]
sete cl
jmp dword [ecx*4 + 0x440014]
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x4e
setne al
mov edx, dword [esp + 0x18]
jmp dword [eax*4 + 0x44001c]
xor eax, eax
cmp byte [ecx + 1], 0x74
setne al
jmp dword [eax*4 + 0x440024]
jmp dword [0x44002c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x24]
movzx eax, word [eax + edx*2]
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + eax*4]
add ebp, ebx
mov dword [esp + 8], 0xffffffff
xor esi, esi
jmp dword [0x440038]
mov ebx, dword [esp + 0x5c]
jmp dword [edx*4 + 0x440094]
xor eax, eax
cmp esi, 0x20
setl al
jmp dword [eax*4 + 0x44003c]
lea eax, [esi + ebp]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00401000
add esp, 8
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x40]
lea edx, [ecx + ecx]
and edx, 2
mov eax, ecx
xor eax, 0xfffffffe
sub eax, edx
inc eax
mov edx, ecx
not edx
or edx, 0x1000
mov ebx, dword [case.0x43556e.26]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp ebx
xor ebx, ebx
cmp edx, eax
setne bl
mov edx, 1
jmp dword [ebx*4 + 0x440054]
movzx ebx, byte [esp + 0x2e]
xor eax, eax
cmp bl, 0xc2
sete al
jmp dword [eax*4 + 0x44005c]
xor eax, eax
cmp bl, 0xc3
sete al
jmp dword [eax*4 + 0x44006c]
mov byte [esp + 7], bl
mov ebx, ecx
or ebx, 0xfffffff7
inc ebx
mov eax, ecx
xor eax, 8
mov edx, ecx
sub edx, eax
xor eax, eax
cmp edx, ebx
movzx ebx, byte [esp + 7]
mov edx, 1
setne al
jmp dword [eax*4 + 0x440064]
xor eax, eax
cmp bl, 0xb8
sete al
jmp dword [eax*4 + 0x440074]
jmp dword [0x440084]
shr ecx, 2
and ecx, 4
jmp dword [ecx + 0x44008c]
add esi, dword [esp + 0x10]
xor eax, eax
mov ebx, dword [esp + 0x5c]
jmp dword [eax*4 + 0x440094]
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x5c]
jmp dword [eax*4 + 0x440094]
xor eax, eax
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
setne al
jmp dword [eax*4 + 0x44009c]
xor eax, eax
xor edx, edx
cmp eax, dword [0x441cf0]
setb dl
xor ecx, ecx
jmp dword [edx*4 + 0x4400a4]
mov dword [edx + ecx*8 + 4], esi
xor edx, edx
mov al, 1
jmp dword [edx*4 + 0x4400c4]
inc ecx
xor edx, edx
cmp ecx, dword [0x441cf0]
setb dl
jmp dword [edx*4 + 0x4400a4]
mov edx, dword [0x441cf4]
xor ebx, ebx
cmp dword [edx + ecx*8], edi
sete bl
jmp dword [ebx*4 + 0x4400ac]
jmp dword [0x4400bc]
mov edx, 1
jmp dword [edx*4 + 0x4400c4]
and al, 1
movzx eax, al
mov cl, 1
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x5c]
jmp dword [eax*4 + 0x4400cc]
jmp dword [0x4400d4]
mov eax, dword [0x441cf4]
mov ecx, dword [0x441cf0]
lea edx, [ecx + 1]
mov dword [0x441cf0], edx
mov dword [eax + ecx*8], edi
mov dword [eax + ecx*8 + 4], esi
jmp dword [0x4400dc]
mov eax, dword [0x441cf4]
mov ecx, dword [0x441cf0]
lea edx, [ecx + 1]
mov dword [0x441cf0], edx
mov dword [eax + ecx*8], edi
mov dword [eax + ecx*8 + 4], esi
mov eax, dword [0x441cf4]
mov ecx, dword [0x441cf0]
lea edx, [ecx + 1]
mov dword [0x441cf0], edx
mov dword [eax + ecx*8], edi
mov dword [eax + ecx*8 + 4], esi
jmp dword [0x4400dc]
mov edx, dword [esp + 0x18]
inc edx
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp edx, dword [ebx + ecx + 0x18]
setb al
jmp dword [eax*4 + 0x44000c]
inc edx
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp edx, dword [ebx + ecx + 0x18]
setb al
jmp dword [eax*4 + 0x44000c]
mov eax, dword [esp + 0x1c]
and al, 1
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret