Function at 0x43d580
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 + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x43d61f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x10]
lea esi, [eax + 0x54394418]
and esi, edx
lea ecx, [eax + edx]
add ecx, 0x54394418
add eax, 0x18
and eax, edx
add eax, esi
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x58
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x43d5c0
mov ebx, dword [esp + 0x10]
mov eax, dword [0x449c88]
test eax, eax
je 0x43d67c
xor ecx, ecx
mov edx, dword [0x449c8c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x14483c8c
je 0x43d650
inc ecx
cmp eax, ecx
jne 0x43d640
jmp 0x43d67c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43d67c
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449c90]
push eax
call fcn.0043a6a0
add esp, 0x24
mov ebx, eax
mov dword [esp + 0x10], 0xd39091bb
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x43d6eb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x7f0e9dbd]
add eax, 0x43
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x2b
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x43d6b0
cmp ebx, dword [esp + 0x10]
jne 0x43d8d2
push dword [esp + 0x20]
call fcn.00438d50
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xa
ja 0x43d7a0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx esi, byte [esp + edx + 0x10]
lea edi, [ecx + 0x54394418]
and edi, esi
lea edx, [ecx + esi]
add edx, 0x54394418
add ecx, 0x18
and ecx, esi
add ecx, edi
mov esi, edx
not esi
and esi, ecx
not ecx
and ecx, edx
sub ecx, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x58
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
cmp ecx, 0xb
jb 0x43d740
mov esi, dword [ebp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x449c88]
test ecx, ecx
je 0x43d7d2
xor edx, edx
mov edi, dword [0x449c8c]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x14483c8c
je 0x43d8dc
inc edx
cmp ecx, edx
jne 0x43d7c0
mov edi, dword [esp + 8]
test esi, esi
je 0x43d8c9
test ebx, ebx
js 0x43d8c9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43d8c2
mov ecx, dword [edi + 0xc]
shr ecx, 1
mov edx, dword [esi]
cmp edx, ecx
jb 0x43d7fe
mov edx, ecx
test edx, edx
je 0x43d8bd
mov ecx, edi
add ecx, 0x10
mov esi, edx
and esi, 3
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
je 0x43d847
xor edi, edi
nop
nop
nop
nop
movzx ebx, word [ecx]
xor edx, edx
test bx, bx
setne dl
lea ecx, [ecx + edx*2]
mov word [eax], bx
add eax, 2
inc edi
cmp esi, edi
jne 0x43d820
mov edx, dword [esp + 0x28]
sub edx, edi
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 8]
mov esi, dword [ebp + 0x14]
cmp dword [esp + 0x28], 4
jb 0x43d8bd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, word [ecx]
xor ebx, ebx
test si, si
setne bl
mov word [eax], si
lea esi, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [eax + 2], cx
lea ecx, [esi + ebx*2]
movzx esi, word [esi + ebx*2]
xor ebx, ebx
test si, si
setne bl
mov word [eax + 4], si
lea esi, [ecx + ebx*2]
movzx edi, word [ecx + ebx*2]
xor ecx, ecx
test di, di
setne cl
lea ecx, [esi + ecx*2]
mov word [eax + 6], di
add eax, 8
add edx, 0xfffffffc
jne 0x43d860
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 8]
mov esi, dword [ebp + 0x14]
mov word [eax], 0
mov eax, dword [edi + 0xc]
shr eax, 1
mov dword [esi], eax
push edi
call fcn.00438e10
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
mov edi, dword [esp + 8]
je 0x43d7d6
lea edx, [esp + 0x20]
push edx
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449c90]
push ecx
call fcn.0043a6a0
add esp, 0x24
mov ebx, eax
jmp 0x43d7d6