Function at 0x436460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x584
mov ecx, 0x11
xor eax, eax
push ebx
mov ebx, dword [esp + 0x58c]
push ebp
push esi
mov esi, dword [esp + 0x598]
push edi
lea edi, [esp + 0x4c]
mov edx, esi
rep stosd dword es:[edi], eax
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
mov ebp, dword [esp + eax*4 + 0x4c]
lea eax, [esp + eax*4 + 0x4c]
inc ebp
dec edx
mov dword [eax], ebp
jne 0x436489
cmp dword [esp + 0x4c], esi
jne 0x4364c9
mov ecx, dword [esp + 0x5ac]
mov edx, dword [esp + 0x5b0]
pop edi
pop esi
mov dword [ecx], 0
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
add esp, 0x584
ret
mov edi, dword [esp + 0x5b0]
mov ecx, 1
lea eax, [esp + 0x50]
mov ebp, dword [edi]
mov dword [esp + 0x10], ebp
cmp dword [eax], 0
jne 0x4364ed
inc ecx
add eax, 4
cmp ecx, 0x10
jbe 0x4364df
mov eax, ecx
cmp ebp, ecx
mov dword [esp + 0x20], eax
jae 0x4364fd
mov dword [esp + 0x10], ecx
mov ebp, ecx
mov edx, 0x10
lea esi, [esp + 0x8c]
cmp dword [esi], 0
jne 0x436516
dec edx
sub esi, 4
test edx, edx
jne 0x436509
cmp ebp, edx
mov dword [esp + 0x28], edx
jbe 0x436524
mov dword [esp + 0x10], edx
mov ebp, edx
mov dword [edi], ebp
mov edi, 1
shl edi, cl
cmp ecx, edx
jae 0x436543
lea esi, [esp + ecx*4 + 0x4c]
sub edi, dword [esi]
js 0x43654f
inc ecx
add esi, 4
shl edi, 1
cmp ecx, edx
jb 0x436535
mov ecx, dword [esp + edx*4 + 0x4c]
sub edi, ecx
mov dword [esp + 0x48], edi
jns 0x43655f
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x584
ret
add ecx, edi
mov dword [esp + edx*4 + 0x4c], ecx
xor ecx, ecx
dec edx
mov dword [esp + 0x94], ecx
je 0x436584
xor esi, esi
add ecx, dword [esp + esi + 0x50]
add esi, 4
dec edx
mov dword [esp + esi + 0x94], ecx
jne 0x436573
xor esi, esi
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4365a7
mov edx, dword [esp + ecx*4 + 0x90]
lea ecx, [esp + ecx*4 + 0x90]
mov dword [esp + edx*4 + 0x114], esi
inc edx
mov dword [ecx], edx
mov ecx, dword [esp + 0x59c]
inc esi
cmp esi, ecx
jb 0x436586
lea ecx, [esp + 0x114]
mov ebx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x1c], 0xffffffff
neg ebx
cmp eax, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0x44], esi
jg 0x4368c8
lea edx, [eax - 1]
lea ecx, [esp + eax*4 + 0x4c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov ecx, edx
dec edx
test ecx, ecx
mov dword [esp + 0x38], edx
je 0x4368a3
jmp 0x436618
mov edx, dword [esp + 0x38]
lea ecx, [ebx + ebp]
cmp eax, ecx
jle 0x43673c
inc edx
mov edi, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
add ebx, ebp
inc esi
sub edx, ebx
add edi, ebp
cmp edx, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], ebx
jbe 0x436647
mov edx, ebp
mov ebp, dword [esp + 0x30]
mov ebx, eax
sub ebx, ebp
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x3c]
jbe 0x436685
mov ebp, dword [esp + 0x38]
or ecx, 0xffffffff
mov esi, dword [esp + 0x2c]
sub ecx, ebp
add eax, ecx
inc ebx
cmp ebx, edx
jae 0x436685
mov ecx, dword [esi + 4]
add esi, 4
shl eax, 1
cmp eax, ecx
jbe 0x436685
sub eax, ecx
inc ebx
cmp ebx, edx
jb 0x436672
mov esi, 1
mov ecx, ebx
shl esi, cl
lea edx, [esi + esi*2 + 3]
shl edx, 1
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
test eax, eax
je 0x4368e6
mov ecx, dword [0x510b2c]
lea edx, [ecx + esi + 1]
lea ecx, [eax + 6]
mov dword [0x510b2c], edx
mov edx, dword [esp + 0x5ac]
add eax, 2
mov dword [esp + 0x44], ecx
mov dword [edx], ecx
mov dword [esp + 0x5ac], eax
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
test eax, eax
lea ebp, [esp + eax*4 + 0xd4]
mov dword [ebp], ecx
je 0x436728
mov edx, dword [esp + 0x34]
mov dword [esp + 0x16], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x90], edx
mov eax, dword [esp + 0x10]
add bl, 0x10
mov byte [esp + 0x15], al
sub ecx, eax
mov eax, edx
mov byte [esp + 0x14], bl
shr eax, cl
mov ecx, dword [ebp - 4]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x14]
mov cx, word [esp + 0x18]
mov dword [edx], eax
mov word [edx + 4], cx
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
cmp eax, edi
jg 0x43662a
mov ecx, dword [esp + 0x59c]
mov dl, al
sub dl, bl
mov byte [esp + 0x15], dl
lea edx, [esp + ecx*4 + 0x114]
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jb 0x436761
mov byte [esp + 0x14], 0x63
jmp 0x4367d9
mov edi, dword [ecx]
mov ecx, dword [esp + 0x5a0]
cmp edi, ecx
jae 0x43678c
cmp edi, 0x100
setb cl
add ecx, 0xf
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x24]
mov dx, word [ecx]
mov word [esp + 0x16], dx
jmp 0x4367d2
mov ecx, dword [esp + 0x5a8]
test ecx, ecx
jne 0x4367a5
push 0
call fcn.0047cbc0
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x5a0]
sub edi, ecx
mov ecx, dword [esp + 0x5a8]
shl edi, 1
mov dl, byte [edi + ecx]
mov ecx, dword [esp + 0x5a4]
mov byte [esp + 0x14], dl
mov dx, word [edi + ecx]
mov ecx, dword [esp + 0x24]
mov word [esp + 0x16], dx
add ecx, 4
mov dword [esp + 0x24], ecx
mov ecx, eax
mov eax, dword [esp + 0x34]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x436824
mov edi, dword [esp + 0x44]
lea ecx, [edx + edx*2]
shl ecx, 1
mov dword [esp + 0x3c], ecx
lea ecx, [eax + eax*2]
lea ecx, [edi + ecx*2]
mov ebp, dword [esp + 0x14]
mov edi, ecx
add eax, edx
mov dword [edi], ebp
mov bp, word [esp + 0x18]
mov word [edi + 4], bp
mov ebp, dword [esp + 0x3c]
add ecx, ebp
cmp eax, esi
jb 0x436803
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov eax, 1
shl eax, cl
test edx, eax
je 0x43683f
xor edx, eax
shr eax, 1
test edx, eax
jne 0x436837
mov edi, 1
mov ecx, ebx
xor edx, eax
mov eax, dword [esp + 0x1c]
shl edi, cl
mov ecx, dword [esp + eax*4 + 0x90]
lea eax, [esp + eax*4 + 0x90]
mov dword [esp + 0x34], edx
dec edi
and edi, edx
cmp edi, ecx
je 0x436888
mov edi, dword [esp + 0x1c]
sub ebx, ebp
dec edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov edi, 1
shl edi, cl
mov ecx, dword [eax - 4]
sub eax, 4
dec edi
and edi, edx
cmp edi, ecx
jne 0x436867
mov eax, dword [esp + 0x38]
mov ecx, eax
dec eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
test ecx, ecx
jne 0x436614
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
add ecx, 4
inc eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
inc edx
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], edx
jle 0x4365fd
test edi, edi
je 0x4368d9
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x4368db
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4368fe
mov edx, dword [esp + 0xd4]
push edx
call fcn.00436910
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x584
ret