Function at 0x43d830
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
xor ecx, ecx
test eax, eax
je 0x43d863
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43d850
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x43d873
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x30]
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x66656463
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xbb
xor cl, byte [esp + eax + 4]
add cl, 0x28
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 4
jne 0x43d890
mov eax, dword [esp + 4]
mov dword [esp + 0x10], 0x18070607
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x6d
xor dl, byte [esp + ecx + 0x10]
add dl, 0x98
mov byte [esp + ecx + 0x10], dl
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
cmp ecx, 4
jb 0x43d8c0
mov ecx, dword [esp + 0x10]
mov dword [esp], 0x66676869
xor edx, edx
nop
nop
nop
mov ebx, edx
add bl, 0x46
xor bl, byte [esp + edx]
add bl, 0xd0
mov byte [esp + edx], bl
inc edx
cmp edx, 4
jne 0x43d8f0
mov ebx, dword [esp]
mov edx, dword [0x4486a8]
test edx, edx
je 0x43d95c
xor ebp, ebp
mov edi, dword [0x4486ac]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0x299a4ecd
je 0x43d930
inc ebp
cmp edx, ebp
jne 0x43d920
jmp 0x43d95c
mov edx, dword [edi + ebp*8 + 4]
cmp edx, ebx
je 0x43d95c
mov ebx, esi
lea esi, [esp + 0xc]
lea edi, [esp + 0x14]
push esi
push eax
push 0
push ecx
push edi
push ebx
push 0x18
push edx
push dword [0x4486b0]
call fcn.0043a9b0
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x1edddcf8
mov eax, 0x524134c3
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x524134c3]
xor ecx, eax
mov edx, ecx
and edx, 0x67
xor ecx, 0xe7
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x524134c3], cl
inc eax
cmp eax, 0x524134c7
jne 0x43d970
cmp ebx, dword [esp]
jne 0x43db09
push dword [esp + 0xc]
call fcn.00438e30
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x44434243
mov edx, 0x5d187709
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0x5d187705]
xor esi, edx
add esi, 0x173c47b7
mov edi, esi
and edi, 1
xor esi, 1
lea ebx, [esi + edi*2]
mov byte [esp + edx - 0x5d187705], bl
inc edx
cmp edx, 0x5d18770d
jne 0x43d9d0
mov edx, dword [esp + 4]
mov dword [esp], 0x66676869
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
add cl, 0x46
xor cl, byte [esp + ebx]
add cl, 0xd0
mov byte [esp + ebx], cl
inc ebx
cmp ebx, 4
jne 0x43da10
mov ebx, dword [esp]
mov ebp, dword [0x4486a8]
test ebp, ebp
je 0x43da83
xor edi, edi
mov esi, dword [0x4486ac]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edi*8], 0x299a4ecd
je 0x43da50
inc edi
cmp ebp, edi
jne 0x43da40
jmp 0x43da83
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
je 0x43da83
lea ecx, [esp + 0xc]
lea esi, [esp + 0x14]
push ecx
push dword [esp + 0xc]
push eax
push edx
push esi
push dword [esp + 0x44]
push 0x18
push ebp
push dword [0x4486b0]
mov esi, eax
call fcn.0043a9b0
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov esi, dword [esp + 0x40]
js 0x43db00
mov edx, dword [esp + 0x38]
test edx, edx
je 0x43da98
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test esi, esi
je 0x43db00
cmp dword [esp + 0x3c], 0
je 0x43dafb
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43daae
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x3c]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [esp + 0x40]
je 0x43dafb
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.00438e70
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret