Function at 0x43d560
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 + 8], 0xbcbdbebf
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x43d5e0
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
and edx, 0xf9b45068
xor eax, 0xf9b45068
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x28
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x43d5a0
mov ebx, dword [esp + 8]
mov eax, dword [0x4498e8]
test eax, eax
je 0x43d63c
xor ecx, ecx
mov edx, dword [0x4498ec]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x14483c8c
je 0x43d610
inc ecx
cmp eax, ecx
jne 0x43d600
jmp 0x43d63c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43d63c
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4498f0]
push eax
call fcn.0043a390
add esp, 0x24
mov ebx, eax
mov dword [esp + 8], 0x6baaadc3
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x43d6b0
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x404c251a]
mov edi, ecx
not edi
or edi, edx
and edx, ecx
add edx, edi
neg edx
add eax, edx
add eax, 0x404c2519
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x4a
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x43d670
cmp ebx, dword [esp + 8]
jne 0x43d892
push dword [esp + 0x1c]
call fcn.00438880
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0xbcbdbebf
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xc
ja 0x43d742
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov esi, ecx
and esi, 0xf9b45068
xor ecx, 0xf9b45068
lea ecx, [ecx + esi*2]
lea esi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 4], esi
mov ecx, dword [esp + 4]
add cl, 0x28
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xd
jb 0x43d700
mov esi, dword [ebp + 0x14]
mov ebx, dword [esp + 8]
mov ecx, dword [0x4498e8]
test ecx, ecx
je 0x43d7a4
mov esi, edi
xor edx, edx
mov edi, dword [0x4498ec]
nop
nop
nop
cmp dword [edi + edx*8], 0x14483c8c
je 0x43d775
inc edx
cmp ecx, edx
jne 0x43d760
mov edi, esi
mov esi, dword [ebp + 0x14]
jmp 0x43d7a4
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
mov edi, esi
mov esi, dword [ebp + 0x14]
je 0x43d7a4
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4498f0]
push ecx
call fcn.0043a390
add esp, 0x24
mov ebx, eax
test esi, esi
je 0x43d889
test ebx, ebx
js 0x43d889
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43d882
mov ecx, dword [edi + 0xc]
shr ecx, 1
mov esi, dword [esi]
cmp esi, ecx
jb 0x43d7cc
mov esi, ecx
test esi, esi
je 0x43d87a
mov dword [esp + 0x24], ebx
mov edx, edi
add edx, 0x10
mov ebx, esi
and ebx, 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], esi
je 0x43d808
nop
nop
nop
nop
dec esi
movzx edi, word [edx]
xor ecx, ecx
test di, di
setne cl
lea edx, [edx + ecx*2]
mov word [eax], di
add eax, 2
dec ebx
jne 0x43d7f0
cmp dword [esp + 0x28], 4
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jb 0x43d87a
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 edi, word [edx + ebx*2]
xor edx, edx
test di, di
setne dl
lea edx, [ecx + edx*2]
mov word [eax + 6], di
add eax, 8
add esi, 0xfffffffc
jne 0x43d820
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov word [eax], 0
mov esi, dword [ebp + 0x14]
mov eax, dword [edi + 0xc]
shr eax, 1
mov dword [esi], eax
push edi
call fcn.00438940
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret