Function at 0x439140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0x100000
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x787b7a7d
mov byte [esp + 8], 0
mov eax, 0xeb
nop
movzx edx, byte [esp + eax - 0xe7]
lea ecx, [eax - 0x6a48e400]
mov esi, eax
and esi, edx
or ecx, edx
xor ecx, esi
mov edx, ecx
not edx
and edx, 0x98
and ecx, 0x67
sub ecx, edx
inc cl
mov byte [esp + eax - 0xe7], cl
inc eax
cmp eax, 0xf0
jne 0x439190
mov eax, dword [esp + 4]
mov ecx, dword [0x44b030]
test ecx, ecx
je 0x43921e
xor edx, edx
mov esi, dword [0x44b034]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x4391f0
inc edx
cmp ecx, edx
jne 0x4391e0
jmp 0x43921e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43921e
lea eax, [esp + 0x30]
lea edx, [esp + 0x18]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push ecx
push dword [0x44b038]
call fcn.0043b600
add esp, 0x24
test eax, eax
js 0x4398ec
cmp dword [edi + 4], 0
je 0x43987a
mov dword [esp + 0x24], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 4], 0x73737170
mov dword [esp + 8], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 4]
lea edi, [ecx - 0x1ae19eec]
mov edx, 0xeb
sub edx, ecx
xor edx, edi
and edx, esi
xor edx, edi
mov ebx, edx
and ebx, 0x1b
add ebx, ebx
xor edx, 0x64
sub ebx, edx
mov byte [esp + ecx + 4], bl
mov edx, ecx
or edx, 0xc2fa18d5
and ecx, 5
add ecx, edx
add ecx, 0x3d05e72c
cmp ecx, 8
jb 0x439280
mov dword [esp + 0x34], 0x7fff
cmp eax, 2
je 0x4392d5
mov dword [esp + 0x34], 0
mov eax, 0xfffeffff
je 0x4392e1
mov eax, SysReAllocString
mov edx, dword [esp + 4]
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x14], eax
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov eax, ecx
sbb eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
jae 0x4397fd
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0
nop
nop
nop
nop
nop
mov dword [esp + 0x28], edx
mov ecx, edi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x3c]
push edx
call fcn.00438ce0
mov edx, dword [esp + 0x28]
cmp eax, 0xbfffffff
ja 0x4397fd
test eax, eax
js 0x4397c0
cmp dword [esp + 0x5c], 0x1000
jne 0x4397c0
test byte [esp + 0x58], 0x66
je 0x4397c0
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x30], esi
mov ebx, dword [esp + 0x44]
mov eax, 0
sbb eax, ebx
jae 0x4394fe
mov dword [esp + 4], 0x787b7a7d
mov byte [esp + 8], 0
mov eax, 0xeb
nop
movzx edx, byte [esp + eax - 0xe7]
lea ecx, [eax - 0x6a48e400]
mov edi, eax
and edi, edx
or ecx, edx
xor ecx, edi
mov edx, ecx
not edx
and edx, 0x98
and ecx, 0x67
sub ecx, edx
inc cl
mov byte [esp + eax - 0xe7], cl
inc eax
cmp eax, 0xf0
jne 0x4393a0
mov eax, dword [0x44b030]
test eax, eax
je 0x439436
mov ecx, dword [esp + 4]
mov dword [esp + 0x38], ecx
xor edx, edx
mov ecx, dword [0x44b034]
nop
cmp dword [ecx + edx*8], 0x16194952
je 0x43940a
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, eax
jb 0x4393f0
jmp 0x439436
mov eax, dword [ecx + edx*8 + 4]
cmp eax, dword [esp + 0x38]
je 0x439436
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 4
push eax
push dword [0x44b038]
call fcn.0043b600
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], esi
mov dword [esp + 4], 0x787b7a7d
mov byte [esp + 8], 0
mov eax, 0xeb
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0xe7]
lea ecx, [eax - 0x6a48e400]
mov edi, eax
and edi, edx
or ecx, edx
xor ecx, edi
mov edx, ecx
not edx
and edx, 0x98
and ecx, 0x67
sub ecx, edx
inc cl
mov byte [esp + eax - 0xe7], cl
inc eax
cmp eax, 0xf0
jne 0x439460
mov eax, dword [esp + 4]
mov ecx, dword [0x44b030]
test ecx, ecx
je 0x4394ee
xor edx, edx
mov edi, dword [0x44b034]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x4394c0
inc edx
cmp ecx, edx
jne 0x4394b0
jmp 0x4394ee
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x4394ee
push 4
push 0x3000
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 6
push ecx
push dword [0x44b038]
call fcn.0043b600
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
js 0x4397fd
mov ecx, edi
lea eax, [esp + 0x68]
push eax
push ebx
push esi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push edx
call fcn.00438fc0
test eax, eax
jns 0x439524
cmp eax, 0x8000000d
jne 0x4397c0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x4397c0
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
call fcn.00439940
add esp, 0x18
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], ecx
cmp eax, ecx
mov ebx, dword [esp + 0x10]
je 0x4397ab
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp]
jmp 0x4395c8
push dword [esp + 0x10]
call fcn.0040cc90
add esp, 4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ebx, eax
lea eax, [eax + edi*8]
mov dword [esp + 0x20], eax
mov ecx, ebx
mov edi, dword [esp + 0x1c]
add ecx, edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov dword [ebx + edi], esi
mov dword [ebx + edi + 4], eax
add ecx, 8
mov eax, dword [esp + 0x38]
add eax, 4
cmp eax, dword [esp + 0x54]
je 0x43976c
mov dword [esp], ecx
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov esi, ecx
not esi
and esi, eax
not eax
and eax, ecx
mov ecx, dword [esp]
sub esi, eax
mov eax, esi
sar eax, 0x1f
add esi, edx
adc eax, dword [esp + 0x2c]
mov edi, ecx
sub edi, ebx
cmp ecx, dword [esp + 0x20]
jne 0x4395ad
mov dword [esp + 0x64], eax
mov dword [esp + 0x1c], edi
mov ecx, edi
sar ecx, 3
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x439615
mov edi, eax
mov eax, edi
and eax, 8
mov ecx, edi
or ecx, 8
imul ecx, eax
xor eax, 8
mov edx, edi
and edx, 0xfffffff7
imul edx, eax
add ecx, edx
push ecx
call fcn.0040cc80
add esp, 4
test ebx, ebx
je 0x439594
mov dword [esp + 0x20], edi
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
jbe 0x439712
cmp ecx, eax
jbe 0x439712
test edx, edx
je 0x439580
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x50]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x4396a8
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x439690
add eax, edx
add ecx, edx
add edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x439580
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x4396c0
jmp 0x439580
mov ecx, edx
shr ecx, 2
mov dword [esp], ebx
mov edi, eax
mov edx, dword [esp]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, dword [esp + 0x1c]
mov ecx, edx
xor ecx, 3
or edx, 0xfffffffc
and edx, ecx
lea edi, [eax + edx]
add edx, ebx
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x439580
mov eax, dword [esp + 0x1c]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp]
mov byte [edx + eax], cl
jmp 0x439580
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4397ec
mov dword [esp], ecx
cmp eax, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
je 0x4397e6
mov dword [esp + 0x10], ebx
push eax
call fcn.0040cc90
add esp, 4
mov dword [esp + 4], 0
jmp 0x4397c4
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
nop
nop
nop
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
adc eax, dword [esp + 0x4c]
cmp edx, esi
mov dword [esp + 0x2c], eax
sbb eax, dword [esp + 0x34]
jb 0x439320
jmp 0x4397fd
mov dword [esp + 0x10], ebx
jmp 0x4397c4
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
jmp 0x4397c4
mov dword [esp + 4], 0x787b7a7d
mov byte [esp + 8], 0
mov eax, 0xeb
nop
movzx edx, byte [esp + eax - 0xe7]
lea ecx, [eax - 0x6a48e400]
mov esi, eax
and esi, edx
or ecx, edx
xor ecx, esi
mov edx, ecx
not edx
and edx, 0x98
and ecx, 0x67
sub ecx, edx
inc cl
mov byte [esp + eax - 0xe7], cl
inc eax
cmp eax, 0xf0
jne 0x439810
mov eax, dword [0x44b030]
test eax, eax
je 0x4398ec
mov ecx, dword [esp + 4]
xor edx, edx
mov esi, dword [0x44b034]
nop
cmp dword [esi + edx*8], 0x16194952
je 0x4398c2
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, eax
jb 0x439860
jmp 0x4398ec
push 0xbbf966b4
push dword [0x44b024]
call fcn.0043e6d0
add esp, 8
test eax, eax
je 0x4398f9
mov ecx, dword [edi]
test ecx, ecx
je 0x439230
mov dword [esp + 4], 0
lea edx, [esp + 4]
push edx
push ecx
call eax
test eax, eax
je 0x439905
cmp dword [esp + 4], 0
je 0x439905
mov dword [edi + 4], 3
jmp 0x439230
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x4398ec
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 4
push eax
push dword [0x44b038]
call fcn.0043b600
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [edi + 4], 1
jmp 0x439230
lea eax, [esp + 0x48]
push eax
call fcn.0043ee80
add esp, 4
test al, al
je 0x439230
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x43992a
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x439230