Function at 0x43e002
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x1c
ja case.0x43e03e.6
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [ecx + 0x43e219]
jmp dword [eax*4 + 0x43e1fd]
jmp 0x43e1ef
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.0043dd67
add esp, 0xc
mov byte [ebp - 8], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
and eax, 3
cmp eax, 3
jne 0x43e09f
mov ecx, dword [ebp - 8]
and ecx, 0xff
and ecx, 3
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edx*4]
and edx, 0xfffffffc
or edx, ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 8]
and edx, 0xff
test edx, edx
jne 0x43e0b3
xor al, al
jmp 0x43e1f9
jmp 0x43e1ef
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0xff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 1]
xor eax, 0x80
sub eax, 0x80
shl eax, 8
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
test edx, edx
jne case.0x43e03e.3
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
xor ecx, ecx
test ecx, ecx
jne case.0x43e03e.3
cmp dword [ebp - 4], 0
jl 0x43e10b
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
jmp 0x43e112
xor al, al
jmp 0x43e1f9
jmp 0x43e1ef
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
and edx, 0xff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
mov edx, dword [ebp - 4]
add edx, ecx
mov dword [ebp - 4], edx
xor eax, eax
test eax, eax
jne 0x43e120
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
xor edx, edx
test edx, edx
jne 0x43e120
cmp dword [ebp - 4], 0
jne 0x43e1c2
mov eax, dword [ebp - 0xc]
sub eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
and edx, 0xff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
mov edx, dword [ebp - 4]
add edx, ecx
mov dword [ebp - 4], edx
xor eax, eax
test eax, eax
jne 0x43e173
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
xor edx, edx
test edx, edx
jne 0x43e173
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x43e1c6
xor al, al
jmp 0x43e1f9
jmp 0x43e1ef
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
and ecx, 3
test ecx, ecx
jne 0x43e1e0
xor al, al
jmp 0x43e1f9
jmp 0x43e1ef
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
xor al, al
jmp 0x43e1f9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret