Function at 0x43f560
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 4], 0x55565768
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x43f5be
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0xc6c61b9f
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x43f590
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 4]
mov eax, dword [0x44ad40]
test eax, eax
je 0x43f61b
xor ecx, ecx
mov edx, dword [0x44ad44]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x84aa3bd1
je 0x43f5f0
inc ecx
cmp eax, ecx
jne 0x43f5e0
jmp 0x43f61b
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43f61b
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push ebp
push dword [esp + 0x40]
push 6
push dword [0x44ad48]
push eax
call fcn.0043cab0
add esp, 0x24
mov esi, eax
mov dword [esp + 4], 0xbcac9eb
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x43f685
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
lea edx, [eax + ecx]
add edx, 0x46a475c0
add eax, 0x46a475c0
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xf8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x43f640
cmp esi, dword [esp + 4]
jne 0x43f812
push dword [esp + 0x14]
call fcn.0043a880
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], 0x55565768
mov byte [esp + 8], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 4
ja 0x43f6f0
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
add edx, 0xc6c61b9f
xor edx, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
add dl, 8
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 5
jb 0x43f6c0
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 4]
mov edx, dword [0x44ad40]
test edx, edx
je 0x43f751
mov eax, ebx
xor edi, edi
mov ebx, dword [0x44ad44]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x84aa3bd1
je 0x43f722
inc edi
cmp edx, edi
jne 0x43f710
mov ebx, eax
jmp 0x43f751
mov edx, dword [ebx + edi*8 + 4]
cmp edx, esi
mov ebx, eax
je 0x43f751
lea esi, [esp + 0x14]
push esi
push ecx
mov eax, dword [esp + 0x14]
push eax
push 0
push ebp
push dword [esp + 0x40]
push 6
push dword [0x44ad48]
push edx
call fcn.0043cab0
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x43f806
test esi, esi
js 0x43f806
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x43f7fb
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
shr edx, 1
mov eax, dword [ebx]
cmp eax, edx
jb 0x43f77e
mov eax, edx
test eax, eax
je 0x43f7f6
mov edx, dword [esp + 0xc]
add edx, 0x10
test al, 1
jne 0x43f796
mov edi, eax
cmp eax, 1
jne 0x43f7c0
jmp 0x43f7f6
mov ebx, eax
not ebx
lea edi, [ebx + eax*2]
movzx ebp, word [edx]
xor ebx, ebx
test bp, bp
setne bl
lea edx, [edx + ebx*2]
mov ebx, dword [esp + 0x38]
mov word [ecx], bp
add ecx, 2
cmp eax, 1
je 0x43f7f6
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
lea ebp, [edx + ebx*2]
mov word [ecx], ax
movzx eax, word [edx + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea edx, [edx*2]
add edx, ebp
mov word [ecx + 2], ax
add ecx, 4
add edi, 0xfffffffe
jne 0x43f7c0
mov ebx, dword [esp + 0x38]
mov word [ecx], 0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
shr eax, 1
mov dword [ebx], eax
push dword [esp + 0xc]
call fcn.0043a960
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret