Function at 0x439b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
cmp dword [esp + 0x138], 0x10
je 0x43a24e
mov edi, dword [esp + 0x138]
mov dword [esp + 0x28], 0x456c2c
test edi, edi
jle 0x439c18
xor edx, edx
lea esi, [esi]
mov eax, dword [esp + 0x134]
mov esi, dword [esp + 0x28]
movsx ebx, word [eax + edx*2]
movzx edi, byte [esi + edx]
add edx, 1
mov ecx, ebx
sar cx, 8
movsx ecx, cx
movsx esi, word [ecx + ecx + 0x456d80]
movsx eax, word [ecx + ecx + 0x456d82]
shl ecx, 8
sub ebx, ecx
mov ebp, esi
sub eax, esi
shl ebp, 8
imul eax, ebx
add eax, ebp
sar eax, 3
add eax, 1
sar eax, 1
cmp dword [esp + 0x138], edx
mov dword [esp + edi*4 + 0x90], eax
jg 0x439bc0
mov edi, dword [esp + 0x138]
mov dword [esp + 0x48], 0x10000
mov eax, dword [esp + 0x90]
sar edi, 1
neg eax
cmp edi, 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], eax
jle 0x43a269
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 1
lea ebx, [esp + 0x48]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], ebx
nop
lea esi, [esi]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + esi*8 + 0x90]
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x30]
mov eax, edi
imul ebp
lea ebx, [ecx + ecx]
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
sub ebx, eax
cmp dword [esp + 0x2c], 1
mov dword [esi + 0xc], ebx
je 0x439dbc
mov esi, dword [esp + 0x2c]
sub esi, 1
cmp dword [esp + 0x2c], 3
jle 0x43a245
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x28]
mov esi, dword [ebx]
mov edi, dword [ebx - 4]
imul dword [esp + 0x24]
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, dword [esp + 0x18]
add ebp, eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ebp
mov ebp, esi
imul esi
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
sar edx, 1
mov dword [esp + 0x18], eax
mov eax, edi
sub eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
add eax, dword [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [ebx + 4], eax
lea eax, [ecx - 1]
sub ecx, 2
sub ebx, 8
cmp ecx, 2
jg 0x439cd5
mov edi, dword [esp + 0x28]
mov ecx, eax
mov esi, dword [esp + 0x3c]
lea ebx, [esi + ecx*4]
lea esi, [esi]
mov eax, edi
imul dword [ebx - 4]
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
sub ecx, 1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
mov edx, dword [ebx - 8]
sub edx, eax
add dword [ebx], edx
sub ebx, 4
cmp ecx, 1
jg 0x439d80
add dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x34]
sub dword [esp + 0x4c], edi
add dword [esp + 0x30], 4
cmp dword [esp + 0x2c], ecx
jne 0x439c60
mov eax, dword [esp + 0x94]
lea edi, [esp + 0x68]
mov dword [esp + 0x6c], 0x10000
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ecx
neg eax
mov dword [esp + 0x70], eax
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + ebx*8 + 0x94]
mov ebp, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, edi
imul ebp
lea ebx, [ecx + ecx]
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
sub ebx, eax
cmp dword [esp + 0x2c], 1
mov dword [esi + 0xc], ebx
je 0x439f6c
mov esi, dword [esp + 0x2c]
sub esi, 1
cmp dword [esp + 0x2c], 3
jle 0x43a23c
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x28], edi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x28]
mov esi, dword [ebx]
mov edi, dword [ebx - 4]
imul dword [esp + 0x24]
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, dword [esp + 0x18]
add ebp, eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ebp
mov ebp, esi
imul esi
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
sar edx, 1
mov dword [esp + 0x18], eax
mov eax, edi
sub eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
add eax, dword [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [ebx + 4], eax
lea eax, [ecx - 1]
sub ecx, 2
sub ebx, 8
cmp ecx, 2
jg 0x439e80
mov edi, dword [esp + 0x28]
mov ecx, eax
mov esi, dword [esp + 0x38]
lea ebx, [esi + ecx*4]
nop
lea esi, [esi]
mov eax, edi
imul dword [ebx - 4]
shrd eax, edx, 0xf
sar edx, 0xf
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
adc dword [esp + 0x1c], 0
sub ecx, 1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, 1
mov edx, dword [ebx - 8]
sub edx, eax
add dword [ebx], edx
sub ebx, 4
cmp ecx, 1
jg 0x439f30
add dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x34]
sub dword [esp + 0x70], edi
add dword [esp + 0x30], 4
cmp dword [esp + 0x2c], ecx
jne 0x439e05
cmp dword [esp + 0x34], 2
jle 0x43a25b
mov eax, dword [esp + 0x138]
lea ebx, [esp + 0xd0]
xor ebp, ebp
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x48]
lea edx, [ebx + eax*4 - 4]
mov eax, dword [esp + 0x34]
sub eax, 3
shr eax, 1
lea eax, [eax + eax + 2]
mov dword [esp + 0x28], eax
mov eax, edx
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebx + ebp*4 + 4]
add esi, ecx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x38]
mov ebx, dword [esi + ebp*4 + 4]
mov esi, dword [esp + 0x24]
mov edx, ebx
sub edx, edi
mov edi, edx
neg edx
sub edx, dword [esp + 0x2c]
sub edi, dword [esp + 0x2c]
mov dword [esi + ebp*4], edx
add ebp, 2
mov dword [eax], edi
mov edi, dword [esp + 0x3c]
mov esi, dword [edi + ebp*4]
add ecx, esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x24]
mov edx, edi
sub edx, ebx
mov ebx, edx
neg edx
sub edx, dword [esp + 0x2c]
sub ebx, dword [esp + 0x2c]
mov dword [ecx + ebp*4 - 4], edx
mov dword [eax - 4], ebx
sub eax, 8
cmp ebp, dword [esp + 0x28]
jne 0x439fd0
mov ebx, ecx
mov edx, dword [esp + 0x138]
lea eax, [ebp + 1]
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x3c]
sub edx, ebp
lea esi, [edi + eax*4]
mov edi, ebx
lea ebp, [ebx + edx*4 - 4]
jmp 0x43a067
mov edi, dword [esp + 0x24]
add eax, 1
mov ebx, dword [esp + 0x38]
mov edx, dword [esi]
mov ecx, dword [ebx + eax*4]
add edx, dword [esi - 4]
add esi, 4
sub ecx, dword [ebx + eax*4 - 4]
mov ebx, ecx
sub ecx, edx
neg ebx
sub ebx, edx
mov dword [edi + eax*4 - 4], ebx
mov dword [ebp], ecx
sub ebp, 4
cmp dword [esp + 0x34], eax
jg 0x43a060
mov edx, dword [esp + 0x138]
test edx, edx
jle 0x43a19a
mov edi, dword [esp + 0x138]
mov ebp, 0xa
xor esi, esi
lea ebx, [esp + 0xd0]
mov dword [esp + 0x24], ebp
lea esi, [esi]
xor ebp, ebp
xor eax, eax
mov ecx, dword [ebx + eax*4]
mov edx, dword [ebx + eax*4]
sar ecx, 0x1f
xor edx, ecx
sub edx, ecx
cmp edx, ebp
mov ecx, edx
cmovle ecx, ebp
cmovg esi, eax
add eax, 1
cmp eax, edi
mov ebp, ecx
jne 0x43a0c4
sar ebp, 4
add ebp, 1
sar ebp, 1
cmp ebp, 0x7fff
jle 0x43a29f
cmp ebp, 0x27ffe
mov eax, 0x27ffe
mov dword [esp + 4], edi
cmovg ebp, eax
mov dword [esp], ebx
lea ecx, [esi + 1]
imul ecx, ebp
lea eax, [ebp - 0x7fff]
shl eax, 0xe
mov edx, eax
sar ecx, 2
sar edx, 0x1f
idiv ecx
mov edx, 0xffbe
sub edx, eax
mov dword [esp + 8], edx
call fcn.00440ff0
sub dword [esp + 0x24], 1
jne 0x43a0c0
xor eax, eax
mov ecx, dword [esp + 0x130]
mov esi, dword [esp + 0x138]
jmp 0x43a16f
cmp edx, 0xffff8000
jl 0x43a22d
mov edi, edx
shl edx, 5
mov word [ecx + eax*2], di
mov dword [ebx + eax*4], edx
add eax, 1
cmp eax, esi
je 0x43a19a
mov edx, dword [ebx + eax*4]
sar edx, 4
add edx, 1
sar edx, 1
cmp edx, 0x7fff
jle 0x43a150
mov edx, 0xfffe0
mov edi, 0x7fff
mov word [ecx + eax*2], di
mov dword [ebx + eax*4], edx
add eax, 1
cmp eax, esi
jne 0x43a16f
xor ebx, ebx
mov ebp, dword [esp + 0x138]
mov esi, 2
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x130]
lea edi, [esp + 0xd0]
lea esi, [esi]
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0043ee00
cmp eax, 0x1a36d
jg 0x43a222
movzx ecx, byte [esp + 0x24]
mov edx, esi
mov eax, 0x10000
mov dword [esp + 4], ebp
mov dword [esp], edi
shl edx, cl
sub eax, edx
mov dword [esp + 8], eax
call fcn.00440ff0
test ebp, ebp
jle 0x43a216
xor eax, eax
lea esi, [esi]
mov ecx, dword [edi + eax*4]
sar ecx, 4
add ecx, 1
sar ecx, 1
mov word [ebx + eax*2], cx
add eax, 1
cmp eax, ebp
jne 0x43a200
add dword [esp + 0x24], 1
cmp dword [esp + 0x24], 0x10
jne 0x43a1c0
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xfff00000
mov edi, 0xffff8000
jmp 0x43a161
mov ecx, dword [esp + 0x2c]
jmp 0x439f21
mov ecx, dword [esp + 0x2c]
jmp 0x439d76
mov dword [esp + 0x28], 0x456c1c
jmp 0x439bbb
lea ebx, [esp + 0xd0]
xor ebp, ebp
jmp 0x43a03c
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], 0x10000
neg eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x43a092
lea ebx, [esp + 0x48]
lea esi, [esp + 0x6c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], esi
jmp 0x439f88
mov ecx, dword [esp + 0x130]
xor eax, eax
mov esi, dword [esp + 0x138]
nop
mov edx, dword [ebx + eax*4]
sar edx, 4
add edx, 1
sar edx, 1
mov word [ecx + eax*2], dx
add eax, 1
cmp eax, esi
jne 0x43a2b0
jmp 0x43a19a