Function at 0x43c050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x43c0db
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov eax, dword [esp]
movzx edi, byte [esp + eax + 0x10]
lea eax, [edx - 0x4ee8d9e8]
mov ecx, eax
and ecx, edi
mov esi, eax
xor esi, edi
add edx, 0x18
and edx, edi
or eax, edi
xor eax, esi
mov edi, eax
and edi, edx
xor eax, edx
sub ecx, edi
sub esi, eax
lea eax, [esi + ecx*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x43c090
mov ebx, dword [esp + 0x10]
mov eax, dword [0x44b1ac]
test eax, eax
je 0x43c12c
xor ecx, ecx
mov edx, dword [0x44b1b0]
cmp dword [edx + ecx*8], 0x77defcd
je 0x43c100
inc ecx
cmp eax, ecx
jne 0x43c0f0
jmp 0x43c12c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43c12c
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x44b1b4]
push eax
call fcn.00438da0
add esp, 0x24
mov ebx, eax
cmp ebx, 0xc0000023
jne 0x43c2f2
push dword [esp + 8]
call fcn.00436f20
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xa
ja 0x43c1cc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp]
mov ecx, dword [esp]
movzx ebx, byte [esp + ecx + 0x10]
lea ecx, [esi - 0x4ee8d9e8]
mov edx, ecx
and edx, ebx
mov edi, ecx
xor edi, ebx
add esi, 0x18
and esi, ebx
or ecx, ebx
xor ecx, edi
mov ebx, ecx
and ebx, esi
xor ecx, esi
sub edx, ebx
sub edi, ecx
lea ecx, [edi + edx*2]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x58
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xb
jb 0x43c180
mov edi, dword [ebp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x44b1ac]
test ecx, ecx
je 0x43c202
xor edx, edx
mov esi, dword [0x44b1b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x77defcd
je 0x43c2fc
inc edx
cmp ecx, edx
jne 0x43c1f0
mov esi, dword [esp + 4]
test edi, edi
je 0x43c2e9
test ebx, ebx
js 0x43c2e9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43c2e2
mov ecx, dword [esi + 0xc]
shr ecx, 1
mov edi, dword [edi]
cmp edi, ecx
jb 0x43c22e
mov edi, ecx
test edi, edi
je 0x43c2da
mov dword [esp + 0x24], ebx
mov edx, esi
add edx, 0x10
mov ebx, edi
and ebx, 3
mov dword [esp + 0x28], edi
je 0x43c268
nop
nop
nop
nop
nop
nop
dec edi
movzx esi, word [edx]
xor ecx, ecx
test si, si
setne cl
lea edx, [edx + ecx*2]
mov word [eax], si
add eax, 2
dec ebx
jne 0x43c250
cmp dword [esp + 0x28], 4
mov esi, dword [esp + 4]
mov ebx, dword [esp + 0x24]
jb 0x43c2da
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edx]
xor ebx, ebx
test cx, cx
setne bl
mov word [eax], cx
lea ecx, [edx + ebx*2]
movzx edx, word [edx + ebx*2]
xor ebx, ebx
test dx, dx
setne bl
mov word [eax + 2], dx
lea edx, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [eax + 4], cx
lea ecx, [edx + ebx*2]
movzx esi, word [edx + ebx*2]
xor edx, edx
test si, si
setne dl
lea edx, [ecx + edx*2]
mov word [eax + 6], si
add eax, 8
add edi, 0xfffffffc
jne 0x43c280
mov esi, dword [esp + 4]
mov ebx, dword [esp + 0x24]
mov word [eax], 0
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
shr eax, 1
mov dword [edi], eax
push esi
call fcn.00436ff0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, ebx
mov esi, dword [esp + 4]
je 0x43c206
lea edx, [esp + 8]
push edx
push eax
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x44b1b4]
push ecx
call fcn.00438da0
add esp, 0x24
mov ebx, eax
jmp 0x43c206