Function at 0x437890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
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 + 0x2c], 0x100000
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0x8c8d8a8b
mov dword [esp + 8], 0
mov eax, 0x5cd18762
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x5cd1875e]
lea edx, [eax - 0x5cd18700]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x15
xor ecx, 0x15
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x5cd1875e], cl
inc eax
cmp eax, 0x5cd1876a
jne 0x4378f0
mov eax, dword [esp + 4]
mov ecx, dword [0x44a4ac]
test ecx, ecx
je 0x43797e
xor edx, edx
mov esi, dword [0x44a4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x437950
inc edx
cmp ecx, edx
jne 0x437940
jmp 0x43797e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43797e
lea eax, [esp + 0x2c]
lea edx, [esp + 0x1c]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x44a4b4]
call fcn.00439880
add esp, 0x24
test eax, eax
js 0x4380a2
cmp dword [edi + 4], 0
je 0x438030
mov dword [esp + 0x34], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 4], 0xf9f5fbfc
mov word [esp + 8], 0
mov ecx, 0xd7a7ef2b
mov esi, 0xa1604353
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x10], ecx
movzx eax, byte [esp + ecx + 0x285810d9]
mov ecx, dword [esp + 0x10]
and ecx, eax
mov edi, eax
mov eax, ecx
or eax, 0xfffffffd
mov ebx, ecx
and ebx, 0x3d
lea edx, [eax + 1]
imul edx, ebx
inc al
mul bl
mov byte [esp + 0x18], al
mov eax, edi
add edx, edi
mov ebx, dword [esp + 0x10]
add bl, al
and bl, 1
add bl, al
mov edi, ecx
and edi, 2
add bl, byte [esp + 0x18]
mov eax, ecx
or eax, 2
mov dword [esp + 0x18], eax
imul edi, eax
shr cl, 1
and cl, 1
mov eax, ecx
mul byte [esp + 0x18]
mov ecx, edx
sub ecx, edi
add ecx, dword [esp + 0x10]
add cl, 0x28
xor cl, 1
add cl, bl
add al, al
sub cl, al
add edx, esi
sub edx, edi
and dl, 0xfe
sub cl, dl
movzx eax, cl
mov ecx, dword [esp + 0x10]
add eax, ecx
add al, 0x28
mov byte [esp + ecx + 0x285810d9], al
inc ecx
inc esi
cmp ecx, 0xd7a7ef31
jne 0x4379f0
mov dword [esp + 0x30], 0x7fff
cmp dword [esp + 0x38], 2
je 0x437a9f
mov dword [esp + 0x30], 0
mov eax, 0xfffeffff
je 0x437aab
mov eax, SysReAllocString
mov ecx, dword [esp + 4]
mov edx, ecx
sar edx, 0x1f
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
cmp ecx, eax
mov dword [esp + 0x18], edx
mov eax, edx
sbb eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jae 0x437fb3
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
nop
nop
nop
nop
nop
nop
nop
mov ecx, esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00437410
cmp eax, 0xbfffffff
ja 0x437fb3
test eax, eax
js 0x437f60
cmp dword [esp + 0x60], 0x1000
jne 0x437f60
test byte [esp + 0x5c], 0x66
je 0x437f60
mov ecx, esi
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x44]
mov eax, 0
sbb eax, ebx
jae 0x437cca
mov dword [esp + 4], 0x8c8d8a8b
mov dword [esp + 8], 0
mov eax, 0x5cd18762
nop
movzx ecx, byte [esp + eax - 0x5cd1875e]
lea edx, [eax - 0x5cd18700]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x15
xor ecx, 0x15
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x5cd1875e], cl
inc eax
cmp eax, 0x5cd1876a
jne 0x437b70
mov eax, dword [0x44a4ac]
test eax, eax
je 0x437bfa
mov ecx, dword [esp + 4]
xor edx, edx
mov edi, dword [0x44a4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x16194952
je 0x437bd0
inc edx
cmp eax, edx
jne 0x437bc0
jmp 0x437bfa
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x437bfa
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x44a4b4]
call fcn.00439880
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 4], 0x8c8d8a8b
mov dword [esp + 8], 0
mov eax, 0x5cd18762
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x5cd1875e]
lea edx, [eax - 0x5cd18700]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x15
xor ecx, 0x15
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x5cd1875e], cl
inc eax
cmp eax, 0x5cd1876a
jne 0x437c30
mov eax, dword [esp + 4]
mov ecx, dword [0x44a4ac]
test ecx, ecx
je 0x437cbe
xor edx, edx
mov edi, dword [0x44a4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x437c90
inc edx
cmp ecx, edx
jne 0x437c80
jmp 0x437cbe
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x437cbe
push 4
push 0x3000
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x44a4b4]
call fcn.00439880
add esp, 0x24
test eax, eax
mov ecx, dword [esp + 0x34]
js 0x437fb3
lea eax, [esp + 0x70]
push eax
push ebx
push esi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00437710
test eax, eax
jns 0x437cf1
cmp eax, 0x8000000d
jne 0x437f60
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x437f60
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
call fcn.004380f0
add esp, 0x18
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
cmp esi, eax
mov ebx, dword [esp + 0x14]
je 0x437f4c
mov dword [esp + 0x64], esi
mov ecx, dword [esp]
mov dword [esp + 0x54], eax
jmp 0x437d6f
mov edi, edx
mov edx, dword [esp + 0x38]
mov dword [ebx + edi], edx
mov edx, dword [esp + 0x6c]
mov dword [ebx + edi + 4], edx
add ecx, 8
add esi, 4
cmp esi, eax
je 0x437f11
mov edx, dword [esi]
sub edx, dword [esp + 0x1c]
mov edi, edx
sar edi, 0x1f
add edx, dword [esp + 0x10]
mov dword [esp + 0x38], edx
adc edi, dword [esp + 0x18]
mov dword [esp + 0x6c], edi
mov edx, ecx
sub edx, ebx
cmp ecx, dword [esp + 0x28]
jne 0x437d50
mov dword [esp], ecx
mov dword [esp + 0x24], edx
mov ecx, edx
sar ecx, 3
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x437daf
mov edi, eax
lea eax, [edi*8]
push eax
call fcn.004086b0
add esp, 4
test ebx, ebx
je 0x437ef7
mov dword [esp + 0x28], edi
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], eax
jbe 0x437e8f
cmp ecx, eax
jbe 0x437e8f
test edx, edx
je 0x437ee3
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x58]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x437e28
neg edi
xor edx, edx
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x437e10
add eax, edx
add ecx, edx
add edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x437ee3
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 0x437e40
jmp 0x437ee3
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 ecx, dword [esp + 0x24]
mov edx, ecx
and edx, 0xfffffffc
add eax, edx
add edx, ebx
mov ebx, eax
mov eax, ecx
and eax, 3
mov ecx, eax
shr ecx, 1
mov edi, edx
mov dword [esp], edx
mov dword [esp + 0x68], ebx
mov edi, ebx
mov ebx, dword [esp]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test byte [esp + 0x24], 1
je 0x437ee3
movzx ecx, byte [edx + eax - 1]
mov edx, dword [esp + 0x68]
mov byte [edx + eax - 1], cl
push dword [esp + 0x14]
call fcn.004086c0
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
lea ecx, [eax + edi*8]
mov dword [esp + 0x28], ecx
mov ecx, eax
mov edi, dword [esp + 0x24]
add ecx, edi
mov ebx, eax
mov eax, dword [esp + 0x54]
jmp 0x437d52
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x64]
test eax, eax
mov esi, dword [esp + 0x20]
je 0x437faa
mov dword [esp], ecx
cmp eax, dword [esp + 0x54]
je 0x437fa4
mov dword [esp + 0x14], ebx
push eax
call fcn.004086c0
add esp, 4
mov dword [esp + 4], 0
jmp 0x437f64
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
nop
nop
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov eax, ebx
xor eax, edi
and ebx, edi
mov edi, ecx
xor edi, edx
and ecx, edx
shld ecx, ebx, 1
add ebx, ebx
add ebx, eax
adc ecx, edi
mov dword [esp + 0x10], ebx
cmp ebx, esi
mov dword [esp + 0x18], ecx
sbb ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jb 0x437af0
jmp 0x437fb3
mov dword [esp + 0x14], ebx
jmp 0x437f64
mov dword [esp], ecx
mov dword [esp + 0x14], ebx
jmp 0x437f64
mov dword [esp + 4], 0x8c8d8a8b
mov dword [esp + 8], 0
mov eax, 0x5cd18762
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x5cd1875e]
lea edx, [eax - 0x5cd18700]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x15
xor ecx, 0x15
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x5cd1875e], cl
inc eax
cmp eax, 0x5cd1876a
jne 0x437fd0
mov eax, dword [0x44a4ac]
test eax, eax
je 0x4380a2
mov ecx, dword [esp + 4]
xor edx, edx
mov esi, dword [0x44a4b0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x438078
inc edx
cmp eax, edx
jne 0x438020
jmp 0x4380a2
push 0xbbf966b4
push dword [0x44a4a0]
call fcn.0043ca10
add esp, 8
test eax, eax
je 0x4380af
mov ecx, dword [edi]
test ecx, ecx
je 0x437990
mov dword [esp + 4], 0
lea edx, [esp + 4]
push edx
push ecx
call eax
test eax, eax
je 0x4380bb
cmp dword [esp + 4], 0
je 0x4380bb
mov dword [edi + 4], 3
jmp 0x437990
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x4380a2
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x1c]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x44a4b4]
call fcn.00439880
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 0x437990
lea eax, [esp + 0x48]
push eax
call fcn.0043d1d0
add esp, 4
test al, al
je 0x437990
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x4380e0
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x437990